From f066b11f8d1455cd0f3e89ded2e269b5db02169c Mon Sep 17 00:00:00 2001 From: kanschat Date: Thu, 14 Sep 2006 16:23:20 +0000 Subject: [PATCH] Final round of tests. The result of the last test is reported wrongly because phony.h has been touched again at this point. git-svn-id: https://svn.dealii.org/trunk@13903 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/test/no_diff_01.cc | 2 ++ tests/test/no_diff_02.cc | 22 ++++++++++++++++++++++ tests/test/no_diff_04.cc | 26 ++++++++++++++++++++++++++ tests/test/ok_02.cc | 26 ++++++++++++++++++++++++++ tests/test/ok_02/cmp/generic | 1 + 5 files changed, 77 insertions(+) create mode 100644 tests/test/no_diff_02.cc create mode 100644 tests/test/no_diff_04.cc create mode 100644 tests/test/ok_02.cc create mode 100644 tests/test/ok_02/cmp/generic diff --git a/tests/test/no_diff_01.cc b/tests/test/no_diff_01.cc index 2179f84a71..c2ae1fa9c2 100644 --- a/tests/test/no_diff_01.cc +++ b/tests/test/no_diff_01.cc @@ -17,6 +17,8 @@ #include #include +#include "phony.h" + int main() { } diff --git a/tests/test/no_diff_02.cc b/tests/test/no_diff_02.cc new file mode 100644 index 0000000000..2179f84a71 --- /dev/null +++ b/tests/test/no_diff_02.cc @@ -0,0 +1,22 @@ +//---------------------------------------------------------------------- +// $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 runs, but won't produce results + + +#include +#include + +int main() +{ +} diff --git a/tests/test/no_diff_04.cc b/tests/test/no_diff_04.cc new file mode 100644 index 0000000000..643d7e70da --- /dev/null +++ b/tests/test/no_diff_04.cc @@ -0,0 +1,26 @@ +//---------------------------------------------------------------------- +// $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 produces wrong results + + +#include +#include + +#include "phony.h" + +int main() +{ + std::ofstream out("no_diff_04/output"); + out << "My output" << std::endl; +} diff --git a/tests/test/ok_02.cc b/tests/test/ok_02.cc new file mode 100644 index 0000000000..3018ed1d07 --- /dev/null +++ b/tests/test/ok_02.cc @@ -0,0 +1,26 @@ +//---------------------------------------------------------------------- +// $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 produces correct results + + +#include +#include + +#include "phony.h" + +int main() +{ + std::ofstream out("ok_02/output"); + out << "My output" << std::endl; +} diff --git a/tests/test/ok_02/cmp/generic b/tests/test/ok_02/cmp/generic new file mode 100644 index 0000000000..09f017120d --- /dev/null +++ b/tests/test/ok_02/cmp/generic @@ -0,0 +1 @@ +My output -- 2.39.5