]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: make tests to run parallel
authorSami Kerola <kerolasa@iki.fi>
Sun, 16 Feb 2014 23:54:15 +0000 (23:54 +0000)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Feb 2014 14:01:02 +0000 (15:01 +0100)
commit40e6f7a06355cba0305e987ca6536b212e0718cf
tree641cc4f0cafd1abb18d54be86389495111372fca
parent67ef06d71d503a5f0cd1fe8d4dccc31adc5d2831
tests: make tests to run parallel

Unarguably this change makes test output to be more messy, but when I
compare run time tells with clear numbers parallel is quicker.  For me
the quickness is important factor.  Running test suite always after a
change is preferrably quick, and if something is indicated to be broken
it is ok to spend time in drilling down what happen.

$ time ./tests/run.sh --parallel=5
[...]
real    1m48.037s

Same without parallelization.

$ time ./tests/run.sh
real    3m16.687s

The default is changed to be parallel, where job count is same as number
of CPUs.

[kzak@redhat.com: - propagate --parallel into function.sh
                  - don't use extra title for non-parallel execution
                  - disable by default]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/functions.sh
tests/run.sh