+2013-04-27 Mark Wielaard <mjw@redhat.com>
+
+ * run-alldts.sh: Add testfile-alldts to tempfiles.
+ * run-elf_cntl_gelf_getshdr.sh: Add test_shdr.out to tempfiles.
+ * run-macro-test.sh: Add readelf.macros.out to tempfiles.
+ * run-strip-reloc.sh: Add readelf.out, readelf.out1, readelf.out2
+ and out.stripped1, out.debug1, out.stripped2, out.debug2 to tempfiles.
+
2013-04-26 Mark Wielaard <mjw@redhat.com>
* Makefile.am (installed_TESTS_ENVIRONMENT): Export environment,
. $srcdir/test-subr.sh
+tempfiles testfile-alldts
+
# This will produce "testfile-alldts" file
testrun ${abs_builddir}/alldts
FILTER 0xdeadbeef
EOF
-rm -f testfile-alldts
-
exit 0
. $srcdir/test-subr.sh
+tempfiles test_shdr.out
+
# However we open the elf file, the shdrs should be the same.
testrun ${abs_builddir}/test-elf_cntl_gelf_getshdr READ ${abs_builddir}/test-elf_cntl_gelf_getshdr \
> test_shdr.out
testrun_compare ${abs_builddir}/test-elf_cntl_gelf_getshdr FDREAD ${abs_builddir}/test-elf_cntl_gelf_getshdr \
< test_shdr.out
-
-rm -f test_shdr.out
# gcc -gstrict-dwarf -gdwarf-4 -g3 -o testfile-macinfo macro.c
testfiles testfile-macinfo testfile-macros
+tempfiles readelf.macros.out
status=0
GNU_macros (sec_offset) 0
EOF
-rm -f readelf.macros.out
-
exit $status
testfiles hello_i386.ko hello_x86_64.ko hello_ppc64.ko hello_s390.ko
+tempfiles readelf.out readelf.out1 readelf.out2
+tempfiles out.stripped1 out.debug1 out.stripped2 out.debug2
+
status=0
runtest() {
infile=$1
testrun_compare cat readelf.out1 < readelf.out2 ||
{ echo "*** failure readelf -w compare $infile"; status=1; }
-
- rm -f $outfile1 $debugfile1 $outfile2 $debugfile2 readelf.out*
}
# Most simple hello world kernel module for various architectures.