summaryrefslogtreecommitdiffstats
path: root/tests/Makefile.am
diff options
context:
space:
mode:
authorVincent Danjean <Vincent.Danjean@ens-lyon.org>2012-07-11 08:09:24 (GMT)
committerVincent Danjean <Vincent.Danjean@ens-lyon.org>2012-07-11 08:10:32 (GMT)
commitc4220eaf0f552cfd68148ddefd6455ff2ce0e08c (patch)
treebae99a44f587ccb2f9d3803b8efd6f5e169be0e6 /tests/Makefile.am
parente49720cb6ff6a2adcf6e5ea68c1f9d29e8f527c9 (diff)
downloadpatchelf-c4220eaf0f552cfd68148ddefd6455ff2ce0e08c.zip
patchelf-c4220eaf0f552cfd68148ddefd6455ff2ce0e08c.tar.gz
patchelf-c4220eaf0f552cfd68148ddefd6455ff2ce0e08c.tar.bz2
rewrite no-rpath test
* compile locally this test in the no-rpath test * add tests for prebuilt no-rpath binaries on various ELF platforms => ia64 does not work, probably a bug in patchelf. Marking it as XFAIL for now
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r--tests/Makefile.am40
1 files changed, 36 insertions, 4 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 9a38df6..fb98023 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,15 +1,43 @@
-check_PROGRAMS = simple main main-scoped big-dynstr
+check_PROGRAMS = simple main main-scoped big-dynstr no-rpath
-TESTS = plain-fail.sh plain-run.sh shrink-rpath.sh set-interpreter-short.sh \
+no_rpath_arch_TESTS = \
+ no-rpath-amd64.sh \
+ no-rpath-armel.sh \
+ no-rpath-armhf.sh \
+ no-rpath-hurd-i386.sh \
+ no-rpath-i386.sh \
+ no-rpath-ia64.sh \
+ no-rpath-kfreebsd-amd64.sh \
+ no-rpath-kfreebsd-i386.sh \
+ no-rpath-mips.sh \
+ no-rpath-mipsel.sh \
+ no-rpath-powerpc.sh \
+ no-rpath-s390.sh \
+ no-rpath-sh4.sh \
+ no-rpath-sparc.sh
+
+XFAIL_TESTS = no-rpath-ia64.sh
+
+src_TESTS = \
+ plain-fail.sh plain-run.sh shrink-rpath.sh set-interpreter-short.sh \
set-interpreter-long.sh set-rpath.sh no-rpath.sh big-dynstr.sh \
set-rpath-library.sh
-EXTRA_DIST = no-rpath $(TESTS)
+
+build_TESTS = \
+ $(no_rpath_arch_TESTS)
+
+TESTS= $(src_TESTS) $(build_TESTS)
+
+EXTRA_DIST = no-rpath-prebuild $(src_TESTS) no-rpath-prebuild.sh
TESTS_ENVIRONMENT = PATCHELF_DEBUG=1
+$(no_rpath_arch_TESTS): no-rpath-prebuild.sh
+ @ln -s $< $@
+
CLEANFILES = big-dynstr.c
clean-local:
- $(RM) -r scratch
+ $(RM) -r scratch $(no_rpath_arch_TESTS)
# by default, use -fpic to compile
AM_CFLAGS = -fpic
@@ -62,3 +90,7 @@ libbar_so_LDFLAGS = $(LDFLAGS_sharedlib) -Wl,-rpath,`pwd`/no-such-path
libbar_scoped_so_SOURCES = bar.c
libbar_scoped_so_LDFLAGS = $(LDFLAGS_sharedlib)
+no_rpath_SOURCES = no-rpath.c
+# no -fpic for no-rpath.o
+no_rpath_CFLAGS =
+