Commit Graph

8 Commits

Author SHA1 Message Date
Richard W.M. Jones
6d32773e81 tests: Run the tests in parallel.
Before this change the tests ran in about 12m34 and afterwards in
about 6m20, although the real change is more dramatic if you only run
tests from the tests/ subdirectory (as language tests still run serially).

This breaks valgrinding for now, which I intend to fix properly later.
2021-03-18 16:28:55 +00:00
Richard W.M. Jones
58ecca0432 tests: discard: Remove dubious use of "/dev/urandom" as a Device parameter.
This API docs don't state that this is permitted.
2017-08-08 17:50:23 +01:00
Pino Toscano
d98c9c0e0b Fix shebang in perl scripts
Instead of hardcoding the location of perl (assuming it is installed in
/usr), use /usr/bin/env to run it, and thus picking it from $PATH.
This makes it possible to run these scripts also on installations with
perl in a different prefix than /usr.

Also, given that we want enable warnings on scripts, turn the -w
previously in shebang to explicit "use warnings;" in scripts which
didn't have it before.
2015-10-05 15:43:35 +02:00
Richard W.M. Jones
bae2134aef tests/discard: sync before close isn't necessary.
However we should be calling shutdown, since we're writing to the disk
and need to catch qemu errors.
2014-03-14 13:20:22 +00:00
Richard W.M. Jones
55730f6118 Revert "tests: fstrim: Remount the disk."
This reverts commit accf1b66aa.
2014-03-14 13:19:42 +00:00
Richard W.M. Jones
accf1b66aa tests: fstrim: Remount the disk.
This makes fstrim work.  It's not clear why exactly.
2014-03-14 10:09:47 +00:00
Richard W.M. Jones
9b883d3c3e tests/discard: Ensure a significant number of blocks are freed up on the host.
It's reasonable to expect megabytes will be freed up and given back to
the host.  Previously we just tested that at least 1 block was
released.  This test checks that at least 1000 blocks are released
(since stat(2) returns blocks of 512 bytes: 512 bytes * 1000 = approx 0.5 MB).
2014-03-14 09:42:31 +00:00
Richard W.M. Jones
a9fc09366a tests: Add tests of discard support.
Test that blkdiscard, -o discard, and fstrim work in reality, end-to-end.
2014-03-13 10:38:40 +00:00