summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
Commit message (Collapse)AuthorAgeFilesLines
* 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>