From: Wolfgang Bangerth Date: Fri, 26 Feb 2010 05:52:47 +0000 (+0000) Subject: Add a test that is guaranteed to run successfully. X-Git-Tag: v8.0.0~6398 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=356ddee4dcfcc8874e32288633d52c07040e0098;p=dealii.git Add a test that is guaranteed to run successfully. git-svn-id: https://svn.dealii.org/trunk@20699 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/a-framework/Makefile b/tests/a-framework/Makefile new file mode 100644 index 0000000000..b54ccd4a71 --- /dev/null +++ b/tests/a-framework/Makefile @@ -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 index 0000000000..e658de31ed --- /dev/null +++ b/tests/a-framework/run.cc @@ -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 +#include + + +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 index 0000000000..0fd8fc12f0 --- /dev/null +++ b/tests/a-framework/run/cmp/generic @@ -0,0 +1,2 @@ + +DEAL::OK