summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
Commit message (Collapse)AuthorAgeFilesLines
* tests: auto-enable ASAN option if necessaryKarel Zak2019-04-241-1/+15
| | | | | | | | Let's detect ASAN LDFLAGS in top level Makefile to make sure we call tests with --memcheck-asan if build-system has been configured with --enable-asan. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add --noskip-commandsKarel Zak2019-03-051-0/+2
| | | | | | | The default is SKIP missing commands on --use-system-commands, but with --noskip-commands the test will FAIL. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add --use-system-commandsKarel Zak2019-03-041-13/+20
| | | | | | | | | | | | | This change allows to use commands from $PATH rather than from $top_builddir. There two basic use cases: * check differences between installed and git version run.sh --use-system-command --show-diff * check system binaries by upstream tests (for example tests from src.rpm package) Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: move stderr redirection out from test expressionSami Kerola2018-05-281-1/+1
| | | | | | | | | | | | | Fix shellcheck error. if ! [ "$paraller_jobs" -ge 0 2>/dev/null ]; then ^-- SC1009: The mentioned parser error was in this if expression. ^-- SC1073: Couldn't parse this test expression. ^-- SC1072: Expected test to end here (don't wrap commands in []/[[]]). Fix any mentioned problems and try again. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: handle xargs errors and invalid argsRuediger Meier2018-03-191-2/+12
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* travis: use parallel root checksRuediger Meier2018-03-071-2/+15
| | | | | | Also improve CPU count detection for tests. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add lock on shared resources (e.g. scsi_debug)Karel Zak2017-12-061-0/+2
| | | | | | | The patch enables flock for scsi_debug to avoid collision between tests. The patch also adds ./run.sh --nolocks to disable this feature. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --enable-asan and --memcheck-asan for testsKarel Zak2017-11-231-0/+2
| | | | | | | | | The command ./configure --enable-asan adds -fsanitize=address to the compiler command line. In the regression tests leaks detection is disabled by default. You have to use --memcheck-asan on test command line to enable. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: rename --memcheck to --memcheck-valgrindKarel Zak2017-11-231-11/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add --show-diffKarel Zak2017-02-161-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: Allow running a single test case from tests/run.shFilipe Brandenburger2016-08-101-1/+1
| | | | | | Tested by running `tests/run.sh libmount/optstr` successfully. Signed-off-by: Filipe Brandenburger <filbranden@google.com>
* tests: make chrt test more debug-ableKarel Zak2016-07-111-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add option --parsableRuediger Meier2016-03-051-14/+8Star
| | | | | | | | | | This is to force the one-line results also for non-parallel case. We are using it for travis auto-build and on other build farms. Moreover you can set this (and any other) option globally by env which is the only way to pass it to make distcheck. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: portable usage of find commandRuediger Meier2016-02-181-2/+9
| | | | | | | | - use dot instead of skipping search-path - avoid -perm /a+x - avoid -path Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: fix run.sh --parallel=1Ruediger Meier2016-01-051-2/+1Star
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add --exclude=<list> for run.shKarel Zak2015-03-251-0/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add --skip-loopdevsKarel Zak2015-03-171-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: Spelling fixesVille Skyttä2014-11-181-1/+1
| | | | | Signed-off-by: Ville Skyttä <ville.skytta@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: run tests in deterministic orderRuediger Meier2014-05-271-0/+1
| | | | | | | Not really needed but it makes debugging of existing build logs much more easier. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* lib/tt.c: Goodbye!Ondrej Oprala2014-04-031-1/+1
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* tests: getting paraller_jobs more robustRuediger Meier2014-03-291-1/+10
| | | | | | | | | | | | This patch fixes several issues: 1. lscpu may not exist on all systems. 2. Option -b is not always available but we can skip it because it's the documented default for -p. 3. Some old lscpu versions print --help output to stdout in case of error. So in case 2. it would count all the help lines as CPUs, which could be really bad on slow single core machines. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: return error if failures file not usableRuediger Meier2014-03-131-1/+1
| | | | | | In past this could happen when doing make distcheck. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: write tests/failures to build- instead of srcdirRuediger Meier2014-03-131-4/+4
| | | | | | | All other test output goes to builddir too and moreover "make distcheck" complains about writing to it's read-only srcdir. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: make tests to run parallelSami Kerola2014-02-171-13/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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: avoid executing dirname(1) commandSami Kerola2014-02-171-1/+1
| | | | | | Bash parameter expansion does the same thing. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libblkid: support LIBBLKID_DEBUG= onlyKarel Zak2013-04-091-1/+0Star
| | | | | | ... the BLKID_DEBUG= is not more supported. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix DBG()Karel Zak2013-04-091-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: unset *_DEBUG variablesKarel Zak2012-12-101-0/+4
| | | | | Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: make compatible with autotoolsKarel Zak2012-08-031-10/+48
| | | | | | | | | | | | | | | | The command 'make check' is called from 'make distcheck' (which is used to generate official util-linux tarballs). It means that tests/ stuff has to be compatible with autotools and differentiate between source and build directories. * remove run-nonroot.sh (merged into run.sh * remove commands.sh.in * all tests and top level run.sh accept --builddir and --srcdir command line options * functions.sh modified to use $top_builddir/tests for output files Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: check for 'make check'Karel Zak2012-07-301-0/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: tiny change in output headerKarel Zak2012-04-181-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add --memcheck toKarel Zak2012-02-061-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix options evaluation, add support for optional testsKarel Zak2011-11-031-15/+38
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* remove -ng from some filesKarel Zak2010-12-011-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* rename util-linux-ng back to util-linuxKarel Zak2010-11-301-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix -regex in run.shKarel Zak2009-04-291-2/+2
| | | | | Reported-by: Scott James Remnant <scott@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix TS_* pathsKarel Zak2009-02-111-5/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add ./run.sh <component>Karel Zak2009-02-111-1/+18
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add support for subdirs to basic test functionsKarel Zak2009-02-111-5/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add warning "For development purpose only."Karel Zak2007-08-081-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add license notices, change from gplv2-only to gplv2-or-laterKarel Zak2007-07-231-0/+15
| | | | | | | The previous "gplv2-only" was copy&past mistake. This re-licensing is correct -- there is not any other contributor to this code. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use relative paths when sourcing filesMike Frysinger2007-07-231-1/+1
| | | | | | | | | The "." command will search $PATH before $PWD if the argument specified contains no path qualifiers which can cause problems if you happen to have something in $PATH named the same. The attached patch changes all of the ". <foo>" in the tests subdir. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tests: add ts_log and --verbose supportKarel Zak2007-05-181-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add return codeKarel Zak2007-01-281-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ipcs: add new tests for ipcs limitsKarel Zak2007-01-041-1/+1
| | | | | | The tests check if data from kernel and from the ipcs command are same. Signed-off-by: Karel Zak <kzak@redhat.com>
* ipcs: add regression test for output headersKarel Zak2007-01-041-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add basic infrastructure for regression testsKarel Zak2007-01-041-0/+25
The patch adds tests/ directory with simple regression tests infrastructure. Also, it adds the "ts-mount-paths" test that testing if all defined paths (fstab, mtab, locks) are still same. Signed-off-by: Karel Zak <kzak@redhat.com>