diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2011-07-26 20:24:04 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2011-07-26 20:24:04 +0400 |
commit | 483278295142421b2f8794e3c900ac2490439450 (patch) | |
tree | 869c3a5bf0c064e5ba53ea136b0eae48d4b536ef /tests/tests.am | |
parent | 64040040407b11d8740516fad2438109e7f22c02 (diff) | |
download | bdwgc-483278295142421b2f8794e3c900ac2490439450.tar.gz |
gc7.0alpha3 tarball importgc7_0alpha3
Diffstat (limited to 'tests/tests.am')
-rw-r--r-- | tests/tests.am | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/tests/tests.am b/tests/tests.am new file mode 100644 index 00000000..defd592c --- /dev/null +++ b/tests/tests.am @@ -0,0 +1,60 @@ +# +# +# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED +# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. +# +# Permission is hereby granted to use or copy this program +# for any purpose, provided the above notices are retained on all copies. +# Permission to modify the code and to distribute modified code is granted, +# provided the above notices are retained, and a notice that the code was +# modified is included with the above copyright notice. + + +## FIXME: trace_test don't works 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 \ + $(THREADLIBS) $(UNWINDLIBS) $(EXTRA_TEST_LIBS) + + + +TESTS += gctest +check_PROGRAMS += gctest +gctest_SOURCES = tests/test.c +gctest_LDADD = $(test_ldadd) +gctest_DEPENDENCIES = $(top_builddir)/libgc.la + +TESTS += leaktest +check_PROGRAMS += leaktest +leaktest_SOURCES = tests/leak_test.c +leaktest_LDADD = $(test_ldadd) + +TESTS += middletest +check_PROGRAMS += middletest +middletest_SOURCES = tests/middle.c +middletest_LDADD = $(test_ldadd) + +#TESTS += tracetest +#check_PROGRAMS += tracetest +#tracetest_SOURCES = tests/trace_test.c +#tracetest_LDADD = $(test_ldadd) + +if THREADS +TESTS += threadleaktest +check_PROGRAMS += threadleaktest +threadleaktest_SOURCES = tests/thread_leak_test.c +threadleaktest_LDADD = $(test_ldadd) +endif + +if CPLUSPLUS +TESTS += test_cpp +check_PROGRAMS += test_cpp +test_cpp_SOURCES = tests/test_cpp.cc +test_cpp_LDADD = libgccpp.la $(test_ldadd) +endif + |