summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorivmai <ivmai>2010-03-23 08:53:03 +0100
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:53 +0200
commit9c4172ecaa580948bf6414fc7b5c823aeb5d0423 (patch)
treeee1da0b18bda76e6e36072cd9e331f889dd769c6 /tests
parentafdbc3481b3e950283d5bdad70a3d9eb48a377a0 (diff)
2010-03-23 Ivan Maidanski <ivmai@mail.ru> (really Dave Korn)
* Makefile.am (check_LTLIBRARIES): Initialise to empty. * tests/tests.am (TESTS, check_PROGRAMS): Add staticrootstest. * tests/tests.am (staticrootstest_SOURCES, staticrootstest_LDADD, libstaticrootslib_la_SOURCES, libstaticrootslib_la_LIBADD, libstaticrootslib_la_LDFLAGS, libstaticrootslib_la_DEPENDENCIES): Define. * tests/tests.am (check_LTLIBRARIES): Add libstaticrootslib.la. * .cvsignore: Ignore libstaticrootslib.la. * Makefile.in: Regenerate.
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.am14
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/tests.am b/tests/tests.am
index 9ad3c74..b655c2b 100644
--- a/tests/tests.am
+++ b/tests/tests.am
@@ -10,12 +10,11 @@
# modified is included with the above copyright notice.
-## FIXME: trace_test doesn't work on macosx 10.3
+## FIXME: trace_test doesn't work on macosx 10.3
## gcc -g -O2 -o .libs/tracetest trace_test.o ../.libs/libgc.dylib -lpthread
## ld: Undefined symbols:
## _GC_generate_random_backtrace
-
# Common libs to _LDADD for all tests.
test_ldadd = $(top_builddir)/libgc.la $(EXTRA_TEST_LIBS)
@@ -46,6 +45,16 @@ check_PROGRAMS += hugetest
hugetest_SOURCES = tests/huge_test.c
hugetest_LDADD = $(test_ldadd)
+TESTS += staticrootstest$(EXEEXT)
+check_PROGRAMS += staticrootstest
+staticrootstest_SOURCES = tests/staticrootstest.c
+staticrootstest_LDADD = $(test_ldadd) libstaticrootslib.la
+check_LTLIBRARIES += libstaticrootslib.la
+libstaticrootslib_la_SOURCES = tests/staticrootslib.c
+libstaticrootslib_la_LIBADD = $(test_ldadd)
+libstaticrootslib_la_LDFLAGS = -version-info 1:3:0 -no-undefined -rpath /nowhere
+libstaticrootslib_la_DEPENDENCIES = $(top_builddir)/libgc.la
+
if KEEP_BACK_PTRS
TESTS += tracetest$(EXEEXT)
check_PROGRAMS += tracetest
@@ -70,4 +79,3 @@ else
test_cpp_LDADD = libgccpp.la $(test_ldadd)
endif
endif
-