]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a test that is guaranteed to run successfully.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 26 Feb 2010 05:52:47 +0000 (05:52 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 26 Feb 2010 05:52:47 +0000 (05:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@20699 0785d39b-7218-0410-832d-ea1e28bc413d

tests/a-framework/Makefile [new file with mode: 0644]
tests/a-framework/run.cc [new file with mode: 0644]
tests/a-framework/run/cmp/generic [new file with mode: 0644]

diff --git a/tests/a-framework/Makefile b/tests/a-framework/Makefile
new file mode 100644 (file)
index 0000000..b54ccd4
--- /dev/null
@@ -0,0 +1,39 @@
+############################################################
+# Makefile,v 1.15 2002/06/13 12:51:13 hartmann Exp
+# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by the deal.II authors
+############################################################
+
+############################################################
+# Include general settings for including DEAL libraries
+############################################################
+
+include ../Makefile.paths
+include $D/common/Make.global_options
+debug-mode = on
+
+libraries = $(lib-deal2-1d.g) \
+            $(lib-deal2-2d.g) \
+            $(lib-deal2-3d.g) \
+            $(lib-lac.g)  \
+            $(lib-base.g)
+
+default: run-tests
+
+############################################################
+
+tests_x = run compile link fail
+
+# from above list of regular expressions, generate the real set of
+# tests
+expand = $(shell echo $(addsuffix .cc,$(1)) \
+           | $(PERL) -pi -e 's/\.cc//g;')
+tests = $(call expand,$(tests_x))
+
+############################################################
+
+
+include ../Makefile.rules
+include Makefile.depend
+include Makefile.tests
+
+.PHONY: default
diff --git a/tests/a-framework/run.cc b/tests/a-framework/run.cc
new file mode 100644 (file)
index 0000000..e658de3
--- /dev/null
@@ -0,0 +1,30 @@
+//----------------------------  timer.cc  ---------------------------
+//    $Id$
+//    Version: $Name$ 
+//
+//    Copyright (C) 2010by 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.
+//
+//----------------------------  timer.cc  ---------------------------
+
+
+// test the testsuite framework. this test is supposed to run successfully
+
+#include "../tests.h"
+#include <base/logstream.h>
+#include <fstream>
+
+
+int main ()
+{
+  std::ofstream logfile("run/output");
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+
+  deallog << "OK" << std::endl;
+}
+
diff --git a/tests/a-framework/run/cmp/generic b/tests/a-framework/run/cmp/generic
new file mode 100644 (file)
index 0000000..0fd8fc1
--- /dev/null
@@ -0,0 +1,2 @@
+
+DEAL::OK

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.