From: Wolfgang Bangerth Date: Fri, 26 Feb 2010 06:00:53 +0000 (+0000) Subject: Add complete set of tests. X-Git-Tag: v8.0.0~6394 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95ecaa2f450882da94425e43fd4c41fc442df021;p=dealii.git Add complete set of tests. git-svn-id: https://svn.dealii.org/trunk@20703 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/a-framework/Makefile b/tests/a-framework/Makefile index b54ccd4a71..e1317c8d3e 100644 --- a/tests/a-framework/Makefile +++ b/tests/a-framework/Makefile @@ -21,7 +21,7 @@ default: run-tests ############################################################ -tests_x = run compile link fail +tests_x = run miscompare compile link fail # from above list of regular expressions, generate the real set of # tests diff --git a/tests/a-framework/compile.cc b/tests/a-framework/compile.cc index ab1e65162c..d5ffde8c14 100644 --- a/tests/a-framework/compile.cc +++ b/tests/a-framework/compile.cc @@ -12,14 +12,16 @@ //---------------------------- timer.cc --------------------------- -// test the testsuite framework. this test is supposed to compile successfully -// but not run +// test the testsuite framework. this test is supposed to compile +// successfully but not link #include "../tests.h" #include #include #include +void function_that_does_not_exist (); + int main () { @@ -27,7 +29,7 @@ int main () deallog.attach(logfile); deallog.depth_console(0); - std::abort (); + function_that_does_not_exist (); deallog << "OK" << std::endl; } diff --git a/tests/a-framework/fail.cc b/tests/a-framework/fail.cc new file mode 100644 index 0000000000..33aa1f0506 --- /dev/null +++ b/tests/a-framework/fail.cc @@ -0,0 +1,34 @@ +//---------------------------- 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 compile and link +// successfully but not run + +#include "../tests.h" +#include +#include +#include + + +int main () +{ + std::ofstream logfile("fail/output"); + deallog.attach(logfile); + deallog.depth_console(0); + + compile error; + + deallog << "OK" << std::endl; +} + diff --git a/tests/a-framework/fail/cmp/generic b/tests/a-framework/fail/cmp/generic new file mode 100644 index 0000000000..0fd8fc12f0 --- /dev/null +++ b/tests/a-framework/fail/cmp/generic @@ -0,0 +1,2 @@ + +DEAL::OK diff --git a/tests/a-framework/link.cc b/tests/a-framework/link.cc new file mode 100644 index 0000000000..cdabfa9a28 --- /dev/null +++ b/tests/a-framework/link.cc @@ -0,0 +1,34 @@ +//---------------------------- 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 compile and link +// successfully but not run + +#include "../tests.h" +#include +#include +#include + + +int main () +{ + std::ofstream logfile("link/output"); + deallog.attach(logfile); + deallog.depth_console(0); + + std::abort (); + + deallog << "OK" << std::endl; +} + diff --git a/tests/a-framework/link/cmp/generic b/tests/a-framework/link/cmp/generic new file mode 100644 index 0000000000..0fd8fc12f0 --- /dev/null +++ b/tests/a-framework/link/cmp/generic @@ -0,0 +1,2 @@ + +DEAL::OK diff --git a/tests/a-framework/miscompare.cc b/tests/a-framework/miscompare.cc index 475dab4385..183ea6773f 100644 --- a/tests/a-framework/miscompare.cc +++ b/tests/a-framework/miscompare.cc @@ -27,8 +27,6 @@ int main () deallog.attach(logfile); deallog.depth_console(0); - std::abort (); - deallog << "FAIL!" << std::endl; }