[beast: 2/17] TESTS: move tests/suite1 into tests/Makefile.sub



commit c58e8fe5bb80ce85e2db505842ff19fe047217e3
Author: Tim Janik <timj gnu org>
Date:   Sun Oct 15 14:27:23 2017 +0200

    TESTS: move tests/suite1 into tests/Makefile.sub
    
    Signed-off-by: Tim Janik <timj gnu org>

 Makefile.am        |    3 +++
 tests/Makefile.am  |    6 ------
 tests/Makefile.sub |   34 ++++++++++++++++++++++++++++++++++
 3 files changed, 37 insertions(+), 6 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index addbd5d..f2031bd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -215,3 +215,6 @@ am__CONFIG_DISTCLEAN_FILES =        \
        config\.cache           \
        configure\.lineno       \
        config\.status\.lineno
+
+# == tests/ ==
+include tests/Makefile.sub
diff --git a/tests/Makefile.am b/tests/Makefile.am
index dc52e21..0c12d93 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -24,12 +24,6 @@ generated: clean-generated $(GENERATED)
 noinst_PROGRAMS = $(ALLTESTS)
 progs_ldadd     = ../bse/libbse-@MAJOR@.la $(LIBBSE_LIBS)
 
-# == suite1 ==
-noinst_PROGRAMS        += suite1
-TAPTESTS        += suite1
-suite1_SOURCES   = suite1-main.cc suite1-randomhash.cc
-suite1_LDADD     = ../sfi/libsfi-@MAJOR@.la $(LIBBSE_LIBS)
-
 # testwavechunk
 TAPTESTS             += testwavechunk
 SLOWTESTS            += testwavechunk
diff --git a/tests/Makefile.sub b/tests/Makefile.sub
new file mode 100644
index 0000000..d9373e4
--- /dev/null
+++ b/tests/Makefile.sub
@@ -0,0 +1,34 @@
+# BEAST tests/
+
+NOINST_TESTS     =
+TESTS_CLEANFILES = $(NOINST_TESTS)
+noinst_PROGRAMS += $(NOINST_TESTS)
+
+# == clean-tests ==
+clean-tests:
+       rm -f $(TESTS_CLEANFILES) tests/*.$(OBJEXT)
+clean-local: clean-tests
+.PHONY: clean-tests
+
+# == check-tests ==
+tests_check_TARGETS =
+check-tests: $(tests_check_TARGETS)
+check-local: check-tests
+.PHONY: check-tests
+
+# == installcheck-tests ==
+installcheck-tests:
+installcheck-local: installcheck-tests
+.PHONY: installcheck-tests
+
+# == suite1 ==
+NOINST_TESTS         += tests/suite1
+tests_suite1_LDADD    = sfi/libsfi-@MAJOR@.la $(LIBBSE_LIBS)
+tests_suite1_CXXFLAGS = $(SFI_CPPFLAGS) $(RAPICORN_CFLAGS)
+tests_suite1_SOURCES = \
+       tests/suite1-main.cc \
+       tests/suite1-randomhash.cc
+tests_suite1_CHECK: tests/suite1 ; $(QTEST) tests/suite1
+tests_check_TARGETS += tests_suite1_CHECK
+
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]