Commit Graph

24 Commits

Author SHA1 Message Date
Sami Kerola 40e6f7a063 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>
2014-02-17 15:01:02 +01:00
Sami Kerola e130ce53ce tests: avoid executing dirname(1) command
Bash parameter expansion does the same thing.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2014-02-17 13:55:41 +01:00
Karel Zak 35cf827870 libblkid: support LIBBLKID_DEBUG= only
... the BLKID_DEBUG= is not more supported.

Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-09 12:52:09 +02:00
Karel Zak 76041e708d libblkid: fix DBG()
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-09 12:44:02 +02:00
Karel Zak 72c9217951 tests: unset *_DEBUG variables
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-12-10 13:43:11 +01:00
Karel Zak 1b03e2cd33 tests: make compatible with autotools
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>
2012-08-03 21:24:51 +02:00
Karel Zak b5606aada4 tests: check for 'make check'
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-30 18:00:33 +02:00
Karel Zak 21d1fa53f1 tests: tiny change in output header
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-18 13:14:43 +02:00
Karel Zak 0269fcbb34 tests: add --memcheck to
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-06 16:32:29 +01:00
Karel Zak 949cf64bbc tests: fix options evaluation, add support for optional tests
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 13:20:24 +01:00
Karel Zak d3b24397df remove -ng from some files
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-01 22:06:15 +01:00
Karel Zak 601d12fb10 rename util-linux-ng back to util-linux
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-30 11:41:59 +01:00
Karel Zak 396b8c0f9f tests: fix -regex in run.sh
Reported-by: Scott James Remnant <scott@ubuntu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-04-29 15:51:32 +02:00
Karel Zak a02f320d4b tests: fix TS_* paths
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11 23:30:14 +01:00
Karel Zak a1be90bba4 tests: add ./run.sh <component>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11 23:27:55 +01:00
Karel Zak d42bbae57d tests: add support for subdirs to basic test functions
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11 23:27:55 +01:00
Karel Zak c986042898 tests: add warning "For development purpose only."
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-08-08 00:42:29 +02:00
Karel Zak 92f2c23e68 tests: add license notices, change from gplv2-only to gplv2-or-later
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>
2007-07-23 14:31:14 +02:00
Mike Frysinger d6ca1ec176 tests: use relative paths when sourcing files
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>
2007-07-23 13:55:36 +02:00
Karel Zak 57a917d630 tests: add ts_log and --verbose support
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-05-18 15:34:28 +02:00
Karel Zak 5b0d01d619 tests: add return code
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-28 01:24:15 +01:00
Karel Zak b30cd7eed5 ipcs: add new tests for ipcs limits
The tests check if data from kernel and from the ipcs command are same.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-04 14:53:57 +01:00
Karel Zak 97cdb3cb5c ipcs: add regression test for output headers
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-04 14:41:29 +01:00
Karel Zak e83446da1a tests: add basic infrastructure for regression tests
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>
2007-01-04 14:23:48 +01:00