aboutsummaryrefslogtreecommitdiff
path: root/0.4.0/test/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to '0.4.0/test/Makefile.am')
-rw-r--r--0.4.0/test/Makefile.am25
1 files changed, 25 insertions, 0 deletions
diff --git a/0.4.0/test/Makefile.am b/0.4.0/test/Makefile.am
new file mode 100644
index 0000000..6d7aff8
--- /dev/null
+++ b/0.4.0/test/Makefile.am
@@ -0,0 +1,25 @@
+CLEANFILES = *~ gmon.out *.gcov *.gcno *.gcda
+MAINTAINERCLEANFILES = Makefile.in
+AM_CXXFLAGS = -I$(top_srcdir)
+EXTRA_DIST = run_test.sh
+
+libtest_a_SOURCES = \
+ test_framework.cc \
+ test_framework.hh \
+ test_runner.cc \
+ test_runner.hh
+
+XFAIL_TESTS = test_fail_TEST
+TESTS = test_pass_TEST $(XFAIL_TESTS)
+
+TESTS_ENVIRONMENT = env TEST_SCRIPT_DIR="$(srcdir)/" bash $(top_srcdir)/test/run_test.sh
+check_LIBRARIES = libtest.a
+check_PROGRAMS = $(TESTS) $(XFAIL_TESTS)
+check_SCRIPTS = run_test.sh
+
+test_pass_TEST_SOURCES = test_pass_TEST.cc
+test_pass_TEST_LDADD = libtest.a
+
+test_fail_TEST_SOURCES = test_fail_TEST.cc
+test_fail_TEST_LDADD = libtest.a
+