https://svn.lrde.epita.fr/svn/oln/trunk/milena
Index: ChangeLog
from Roland Levillain <roland(a)lrde.epita.fr>
Move norm-related tests to their own directory.
* tests/norm/: New directory.
* tests/l1.cc, tests/l2.cc, tests/linfty.cc: Move...
* tests/norm/l1.cc, tests/norm/l2.cc, tests/norm/linfty.cc:
...here.
* tests/tests.mk: ...here (new file).
* tests/Makefile.am: Move general purpose, test-related
variables...
* tests/norm/Makefile.am: New.
Makefile.am | 14 ++------------
norm/Makefile.am | 14 ++++++++++++++
tests.mk | 12 ++++++++++++
3 files changed, 28 insertions(+), 12 deletions(-)
Index: tests/Makefile.am
--- tests/Makefile.am (revision 1420)
+++ tests/Makefile.am (working copy)
@@ -1,18 +1,8 @@
## Process this file through Automake to create Makefile.in -*- Makefile -*-
-## FIXME: Revamp (see Olena 0.11's test suite).
-
-AM_CPPFLAGS = -I$(top_srcdir)/milena
-
-# FIXME: Add
-#
-# AM_CXXFLAGS = $(CXXFLAGS_STRICT) $(CXXFLAGS_DEBUG)
-#
-# when oln.m4 is available in the distribution, instead of using the
-# set-by-hand TESTS_CXXFLAGS.
-TESTS_CXXFLAGS = @TESTS_CXXFLAGS@
-AM_CXXFLAGS = $(TESTS_CXXFLAGS)
+include $(top_srcdir)/milena/tests/tests.mk
+SUBDIRS = norm
check_PROGRAMS = \
accu_all \
Index: tests/tests.mk
--- tests/tests.mk (revision 0)
+++ tests/tests.mk (revision 0)
@@ -0,0 +1,12 @@
+## FIXME: Revamp (see Olena 0.11's test suite).
+
+AM_CPPFLAGS = -I$(top_srcdir)/milena
+
+# FIXME: Add
+#
+# AM_CXXFLAGS = $(CXXFLAGS_STRICT) $(CXXFLAGS_DEBUG)
+#
+# when oln.m4 is available in the distribution, instead of using the
+# set-by-hand TESTS_CXXFLAGS.
+TESTS_CXXFLAGS = @TESTS_CXXFLAGS@
+AM_CXXFLAGS = $(TESTS_CXXFLAGS)
Index: tests/norm/Makefile.am
--- tests/norm/Makefile.am (revision 0)
+++ tests/norm/Makefile.am (revision 0)
@@ -0,0 +1,14 @@
+## Process this file through Automake to create Makefile.in -*- Makefile -*-
+
+include $(top_srcdir)/milena/tests/tests.mk
+
+check_PROGRAMS = \
+ l1 \
+ l2 \
+ linfty
+
+l1_SOURCES = l1.cc
+l2_SOURCES = l2.cc
+linfty_SOURCES = linfty.cc
+
+TESTS = $(check_PROGRAMS)