summaryrefslogtreecommitdiffstats
path: root/tests/test-subr.sh
Commit message (Collapse)AuthorAgeFilesLines
* tests: Always print reason when skipping test.Mark Wielaard2015-06-051-2/+2
| | | | | | Make sure the reason a test is SKIPPED is added to the test-suite.log. Signed-off-by: Mark Wielaard <[email protected]>
* tests: Reduce the total number of self-test files and add ET_REL files.Mark Wielaard2014-01-201-4/+7
| | | | | | | | | | | | | | Some self tests would run for a really long time (especially under valgrind) because we included all libebl backends in the list (there are 12 backends). Now only test two explicitly. Also there were no ET_REL files in the self test file list. So add two ET_REL files. The total number of self test files is now 12. run-nm-self.sh would run 4 * 3 * 3 * 22 = 792 tests (on all self test files). Reduce the number of different files to test to 3 (one ET_EXEC, one ET_DYN and one ET_REL file). Reducing the number of test runs to 99. Signed-off-by: Mark Wielaard <[email protected]>
* tests: Don't use pushd or popd, just use cd to change working directory.Mark Wielaard2013-04-291-2/+2
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* tests: Tests that override EXIT (0) trap need to cleanup themselves.Mark Wielaard2013-04-291-2/+8
| | | | | | | | Since trap handlers don't nest tests that install their own EXIT (0) trap handler need to cleanup themselves. Add an exit_cleanup helper function to test-subr.sh that can be used by run-native-test.sh to exit cleanly. Signed-off-by: Mark Wielaard <[email protected]>
* Enable automake parallel-tests for make check.Mark Wielaard2013-04-271-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]>
* Add configure --enable-valgrind option to run all tests under valgrind.Mark Wielaard2012-10-011-3/+3
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* tests: Add run-nm-self.sh and run-readelf-self.sh tests.Mark Wielaard2012-08-031-2/+16
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* tests: Introduce testrun_on_self, use it in run-elflint-self.shMark Wielaard2012-08-031-0/+19
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Update name, license and contributor policy.Mark Wielaard2012-06-051-18/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change name from "Red Hat elfutils" to "elfutils". * Update license of standalone tools and test from GPLv2 to GPLv3+. * Change license of libraries from GPLv2+exception to GPLv2/LGPLv3+. * Add Developer Certificate of Origin based contributor policy. top-level: - COPYING: Upgraded from GPLv2 to GPLv3. - CONTRIBUTING, COPYING-GPLv2, COPYING-LGPLv3: New files. - NEWS: Added note about new contribution and license policy. - Makefile.am: Updated to GPLv3, added new files to EXTRA_DIST. - configure.ac: Update to GPLv3, changed AC_INIT name to 'elfutils'. backends, lib, libasm, libcpu, libdw, libdwfl, libebl, libelf: - All files updated to GPLv2/LGPLv3+. Except some very small files (<5 lines) which didn't have any headers at all before, the linker .maps files and the libcpu/defs files which only contain data and libelf/elf.h which comes from glibc and is under LGPLv2+. config: - elfutils.spec.in: Add new License: headers and new %doc files. - Update all license headers to GPLv2/LGPLv3+ for files used by libs. src, tests: - All files updated to GPLv3+. Except for the test bz2 data files, the linker maps and script files and some very small files (<5 lines) that don't have any headers. Signed-off-by: Richard Fontana <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
* test-subr.sh: Add ${libdir}/elfutils to LD_LIBRARY_PATH.Roland McGrath2012-02-211-2/+3
|
* src/Roland McGrath2008-12-031-1/+4
| | | | | | | 2008-12-02 Roland McGrath <[email protected]> * readelf.c (count_dwflmod, process_file): Don't presume encoding of nonzero OFFSET argument to dwfl_getmodules.
* 2007-10-23 Roland McGrath <[email protected]>Roland McGrath2007-10-231-2/+2
| | | | | | * linux-kernel-modules.c (report_kernel_archive): Reorder the kernel module to appear first.
* Fix FSF address. No exception for libdwarf.Ulrich Drepper2006-04-041-1/+1
|
* propagate from branch 'com.redhat.elfutils.roland.pending' (head ↵Ulrich Drepper2006-04-041-8/+21
| | | | | | 4f8fc821345feef58624f0aa5b470d4827577d8c) to branch 'com.redhat.elfutils' (head 76e26cb54695fd3b21ee8fb5be3036bd68200633)
* 2005-11-18 Roland McGrath <[email protected]>Roland McGrath2005-11-181-1/+1
| | | | | | | | | | | | * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable. tests/ 2005-11-18 Roland McGrath <[email protected]> * test-subr.sh (installed_testrun): Treat /usr/lib64 like /usr/lib. * test-wrapper.sh: Likewise.
* 2005-11-17 Roland McGrath <[email protected]>Roland McGrath2005-11-181-2/+7
| | | | | | | | | * Makefile.am (installed_TESTS_ENVIRONMENT): Set libdir, bindir in environment for test-wrapper.sh. * test-wrapper.sh: Set LD_LIBRARY_PATH from ${libdir} if not /usr/lib. * test-subr.sh (installed_testrun): Likewise. Use explicit path in ${bindir}.
* 2005-11-15 Roland McGrath <[email protected]>Roland McGrath2005-11-161-0/+91
* configure.ac: Add --enable-tests-rpath option. tests/ 2005-11-15 Roland McGrath <[email protected]> * Makefile.am (BUILD_RPATH): New variable. [TESTS_RPATH] (AM_LDFLAGS): Pass -rpath option using that value. (tests_rpath): New variable. (installcheck-local): Pass it to test-wrapper.sh. * test-wrapper.sh: In "installed" format, take yes/no value for elfutils_tests_rpath, which export. When running a test binary for installcheck, exit 77. * test-subr.sh (installed_testrun): When running a test binary for installcheck, exit 77 if $elfutils_tests_rpath = yes.