phony.h:
touch phony.h
+### Make sure even numbers are are always recompiled
+
+no_*_?[02468]/obj.g.o: phony.h
+
include ../Makefile.rules
include Makefile.depend
-This directory tests the testsuite, not the deal.II library!
\ No newline at end of file
+This directory tests the testsuite, not the deal.II library!
+
+Things that should be checked for when changing the implementation of
+the test suite:
+
+1. After make clean, first and second run should produce same results
+2. Tests with even number should produce same results as previous odd number
+3. Tests should produce results as indicated by their name
+
+
+
+Remarks on the implementation
+
+The file phony.h is used to make sure compilation is started in EVERY
+run of make for targets with even numbers.
--- /dev/null
+//----------------------------------------------------------------------
+// $Id: reference.cc 13395 2006-07-19 12:45:54Z kanschat $
+// Version: $Name$
+//
+// Copyright (C) 2006 by the deal.II authors
+//
+// This file is subject to QPL and may not be distributed
+// without copyright and license information. Please refer
+// to the file deal.II/doc/license.html for the text and
+// further information on this license.
+//
+//----------------------------------------------------------------------
+
+// A test program that won't compile
+
+#include "phony.h"
+
+int main()
+{
+ not_declared();
+}
//
//----------------------------------------------------------------------
-// A test program that won't run, but produces results
+// A test program runs, but won't produce results
#include <cstdlib>
--- /dev/null
+//----------------------------------------------------------------------
+// $Id: reference.cc 13395 2006-07-19 12:45:54Z kanschat $
+// Version: $Name$
+//
+// Copyright (C) 2006 by the deal.II authors
+//
+// This file is subject to QPL and may not be distributed
+// without copyright and license information. Please refer
+// to the file deal.II/doc/license.html for the text and
+// further information on this license.
+//
+//----------------------------------------------------------------------
+
+// A test program that won't link
+
+#include "phony.h"
+
+void not_implemented();
+
+int main()
+{
+ not_implemented();
+}
--- /dev/null
+//----------------------------------------------------------------------
+// $Id: reference.cc 13395 2006-07-19 12:45:54Z kanschat $
+// Version: $Name$
+//
+// Copyright (C) 2006 by the deal.II authors
+//
+// This file is subject to QPL and may not be distributed
+// without copyright and license information. Please refer
+// to the file deal.II/doc/license.html for the text and
+// further information on this license.
+//
+//----------------------------------------------------------------------
+
+// A test program that won't run and does not produce results
+
+
+#include <cstdlib>
+
+#include "phony.h"
+
+int main()
+{
+ exit(1);
+}
--- /dev/null
+//----------------------------------------------------------------------
+// $Id: reference.cc 13395 2006-07-19 12:45:54Z kanschat $
+// Version: $Name$
+//
+// Copyright (C) 2006 by the deal.II authors
+//
+// This file is subject to QPL and may not be distributed
+// without copyright and license information. Please refer
+// to the file deal.II/doc/license.html for the text and
+// further information on this license.
+//
+//----------------------------------------------------------------------
+
+// A test program that won't run, but produces results
+
+
+#include <cstdlib>
+#include <fstream>
+
+#include "phony.h"
+
+int main()
+{
+ std::ofstream out("no_run_04/output");
+ out << "My output" << std::endl;
+
+ exit(1);
+}