diff options
| author | Mark Wielaard <[email protected]> | 2013-04-26 23:44:25 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2013-04-27 00:15:29 +0200 |
| commit | 86be792c727ea0c09d687e76d98739a5af23a803 (patch) | |
| tree | 34066a242bf21a32f43916bdfc069dbc4cb6a6e0 /tests/run-funcscopes.sh | |
| parent | 1704baf67698c269bc81fbaec0483e53d9709702 (diff) | |
Enable automake parallel-tests for make check.
The parallel-tests option was introduced in automake 1.11 and is the
default since automake 1.13. All tests can now be ran in parallel with
make check -j. To enable this all tests are ran in their own temporary
directory so they don't stomp on each others input or output files.
On my machine (4 cores) make check takes ~20 seconds, but now with
make check -j8 takes only ~4 seconds.
ChangeLog:
* configure.ac (AM_INIT_AUTOMAKE): Request parallel-tests.
tests/ChangeLog:
* Makefile.am (installed_TESTS_ENVIRONMENT): Export environment,
remove wrapper.
(TESTS_ENVIRONMENT): Likewise.
(installed_LOG_COMPILER): New variable defining wrapper.
(LOG_COMPILER): Likewise.
* run-*.sh: Fixup location of input and output files.
* test-subr.sh: Create test_dir, pushd to execute test in.
(trap): Remove test_dir.
(testfiles): Use abs_srcdir.
(installed_testrun): Match on abs_builddir or abs_top_builddir.
(self_test_files): Adjust path.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests/run-funcscopes.sh')
| -rwxr-xr-x | tests/run-funcscopes.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run-funcscopes.sh b/tests/run-funcscopes.sh index a0e48c13..d236f5c3 100755 --- a/tests/run-funcscopes.sh +++ b/tests/run-funcscopes.sh @@ -19,7 +19,7 @@ testfiles testfile25 -testrun_compare ./funcscopes -e testfile25 incr <<\EOF +testrun_compare ${abs_builddir}/funcscopes -e testfile25 incr <<\EOF testfile25: 0x8048000 .. 0x8049528 inline-test.c (0x11): 0x8048348 (/home/roland/build/stock-elfutils/inline-test.c:7) .. 0x804834f (/home/roland/build/stock-elfutils/inline-test.c:9) incr (0x2e): 0x8048348 (/home/roland/build/stock-elfutils/inline-test.c:7) .. 0x804834f (/home/roland/build/stock-elfutils/inline-test.c:9) |
