]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: allow test options to be overridden by env
authorRuediger Meier <ruediger.meier@ga-group.nl>
Sat, 10 May 2014 00:00:53 +0000 (02:00 +0200)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Sat, 10 May 2014 03:56:43 +0000 (05:56 +0200)
commiteac40eb009fe818040c8e3fc4af216bef58e15a5
treebca2e189c7535de84230d7613a7f0313abbf472f
parentd9a9ff09b80b4dcbdd266c7a7830d61491da674a
tests: allow test options to be overridden by env

Specially for automated builds the user may want to have some
fine granulated influence like

export TS_OPT_libmount_verbose="yes"
export TS_OPT_ipcs_fake="yes"
export TS_OPT_ipcs_limits2_fake="no"
if <big endian> then
  export TS_OPT_hexdump_fake="yes"
fi
make check

Even for interactive developers this could be useful for example to
debug just one particuar test while having a regular run with stress:

TS_OPT_script_verbose="yes" \
TS_OPT_script_memcheck="yes" \
../tests/run.sh --parallel=256 --srcdir=.. --builddir=. --nonroot

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests/functions.sh