summaryrefslogtreecommitdiffstats
path: root/tests/Makefile.am
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-10-03 18:22:32 (GMT)
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-10-03 18:22:32 (GMT)
commitb60d8d3ef2dee991cab7e953c963e46136a92733 (patch)
tree890313aac2ec02d5552d616d9d294fcffd17228a /tests/Makefile.am
parentdf7806f98294c29fa8aa8d71fcf1ef3d728a46d9 (diff)
downloadpatchelf-b60d8d3ef2dee991cab7e953c963e46136a92733.zip
patchelf-b60d8d3ef2dee991cab7e953c963e46136a92733.tar.gz
patchelf-b60d8d3ef2dee991cab7e953c963e46136a92733.tar.bz2
* Add a test for programs that crash when .dynstr etc. are moved.
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r--tests/Makefile.am21
1 files changed, 15 insertions, 6 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index c0c2252..c19f9aa 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,9 +1,7 @@
-check_PROGRAMS = main simple
+check_PROGRAMS = main simple big-dynstr
-TESTS = plain-run.sh shrink.sh set-interpreter-short.sh \
- set-interpreter-long.sh set-rpath.sh no-rpath.sh $(XFAIL_TESTS)
-
-XFAIL_TESTS = plain-fail.sh
+TESTS = plain-fail.sh plain-run.sh shrink.sh set-interpreter-short.sh \
+ set-interpreter-long.sh set-rpath.sh no-rpath.sh big-dynstr.sh
simple_SOURCES = simple.c
@@ -27,8 +25,19 @@ libbar.so: bar.o
bar.o: bar.c
$(CC) -fpic -o bar.o -c bar.c
+
+big_dynstr_SOURCES = big-dynstr.c
+
+big-dynstr: big-dynstr.o libfoo.so
+ LD_LIBRARY_PATH=. gcc -o big-dynstr big-dynstr.o -L . -lfoo
+
+big-dynstr.c: main.c
+ cat main.c > big-dynstr.c
+ for i in $$(seq 1 2000); do echo "void f$$i(void) { };" >> big-dynstr.c; done
+
+
clean-local:
- $(RM) *.o libfoo.so libbar.so main
+ $(RM) *.o libfoo.so libbar.so main big-dynstr big-dynstr.c
EXTRA_DIST = main.c foo.c bar.c no-rpath $(TESTS)