toon-members
[Top][All Lists]
Advanced

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

[Toon-members] TooN Makefile.in


From: Edward Rosten
Subject: [Toon-members] TooN Makefile.in
Date: Wed, 23 Sep 2009 20:38:09 +0000

CVSROOT:        /cvsroot/toon
Module name:    TooN
Changes by:     Edward Rosten <edrosten>        09/09/23 20:38:09

Modified files:
        .              : Makefile.in 

Log message:
        Regression tests.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/Makefile.in?cvsroot=toon&r1=1.11&r2=1.12

Patches:
Index: Makefile.in
===================================================================
RCS file: /cvsroot/toon/TooN/Makefile.in,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- Makefile.in 27 Aug 2009 17:31:56 -0000      1.11
+++ Makefile.in 23 Sep 2009 20:38:09 -0000      1.12
@@ -34,3 +34,31 @@
 
 docs:
        doxygen 
+
+
+TESTS=invert slice
+
+
+TEST_RESULT=$(TESTS:%=regressions/%.result)
+TEST_FILES=$(TESTS:%=regressions/%.out) $(TESTS:%=regressions/%.test) 
$(TEST_RESULT)
+
+testclean:
+       rm -f $(TEST_FILES)
+
+test:regressions/results
+       @cat regressions/results
+
+regressions/results:$(TEST_RESULT)
+       cat $(TEST_RESULT) > regressions/results
+
+.PRECIOUS: regressions/%.out regressions/%.test
+
+regressions/%.test: regressions/%.cc
+       $(CXX) -I. $< -o $@ -llapack -DTOON_INITIALIZE_SNAN 
+       
+regressions/%.out: regressions/%.test
+       $< > $@ || ( echo Crash!!! > $@ )
+
+regressions/%.result: regressions/%.out
+       awk -vname=$* -f numdiff.awk -vf1=$< -vf2=regressions/$*.txt > $@       
+       




reply via email to

[Prev in Thread] Current Thread [Next in Thread]