From 67ed3670c5d2e7d2f0ca7a7978873d02adae9af2 Mon Sep 17 00:00:00 2001
From: Bernd Flemisch <bernd@iws.uni-stuttgart.de>
Date: Fri, 16 Dec 2011 16:37:40 +0000
Subject: [PATCH] CMake: also copy the reference vtus, fix paths

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@7142 2fb0f335-1f38-0410-981e-8018bf24f1b0
---
 CMakeLists.txt | 39 ++++++++++++++++++++++++++-------------
 1 file changed, 26 insertions(+), 13 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d6eae7a889..1882354dac 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -184,25 +184,38 @@ add_subdirectory("tutorial")
 # copy the testing script
 make_directory(util)
 file(COPY util/runTest.sh DESTINATION util)
+file(COPY test/boxmodels/1p/1ptest-reference.vtu DESTINATION test/boxmodels/1p)
+file(COPY test/boxmodels/1p2c/tissue-reference.vtu DESTINATION test/boxmodels/1p2c)
+file(COPY test/boxmodels/2p/lens-reference.vtu DESTINATION test/boxmodels/2p)
+file(COPY test/boxmodels/2pni/injection2pni-reference.vtu DESTINATION test/boxmodels/2pni)
+file(COPY test/boxmodels/2p2c/injection-reference.vtu DESTINATION test/boxmodels/2p2c)
+file(COPY test/boxmodels/2p2cni/waterair-reference.vtu DESTINATION test/boxmodels/2p2cni)
+file(COPY test/boxmodels/MpNc/obstacle-reference.vtu DESTINATION test/boxmodels/MpNc)
+file(COPY test/boxmodels/richards/richardslens-reference.vtu DESTINATION test/boxmodels/richards)
+file(COPY test/decoupled/1p/diffusion-reference.vtu DESTINATION test/decoupled/1p)
+file(COPY test/decoupled/1p/test_1p-reference.vtu DESTINATION test/decoupled/1p)
+file(COPY test/decoupled/2p/test_transport-reference.vtu DESTINATION test/decoupled/2p)
+file(COPY test/decoupled/2p/test_impes-reference.vtu DESTINATION test/decoupled/2p)
+file(COPY test/decoupled/2p2c/test_dec2p2c-reference.vtu DESTINATION test/decoupled/2p2c)
 
 # set up CTest 
 ENABLE_TESTING()
 INCLUDE(CTest)
-ADD_TEST(test_1p util/runTest.sh test/boxmodels/1p/1ptest-reference.vtu test/boxmodels/1p/1ptest-00002.vtu test/boxmodels/1p/test_1p test/boxmodels/1p/grids/test_1p_2d.dgf 1 1)
-add_test(test_1p2c util/runTest.sh test/boxmodels/1p2c/tissue-reference.vtu test/boxmodels/1p2c/tissue-00003.vtu test/boxmodels/1p2c/test_1p2c test/boxmodels/1p2c/grids/test_1p2c.dgf 2e3 1e3)
-add_test(test_2p util/runTest.sh test/boxmodels/2p/lens-reference.vtu test/boxmodels/2p/lens-00010.vtu test/boxmodels/2p/test_2p 3000 250)
-add_test(test_2pni util/runTest.sh test/boxmodels/2pni/injection2pni-reference.vtu test/boxmodels/2pni/injection2pni-00009.vtu test/boxmodels/2pni/test_2pni test/boxmodels/2pni/grids/test_2pni.dgf 1e4 250)
-add_test(test_2p2c util/runTest.sh test/boxmodels/2p2c/injection-reference.vtu test/boxmodels/2p2c/injection-00009.vtu test/boxmodels/2p2c/test_2p2c test/boxmodels/2p2c/grids/test_2p2c.dgf 1e4 250)
-add_test(test_2p2cni util/runTest.sh test/boxmodels/2p2cni/waterair-reference.vtu test/boxmodels/2p2cni/waterair-00011.vtu test/boxmodels/2p2cni/test_2p2cni test/boxmodels/2p2cni/grids/test_2p2cni.dgf 1e4 250)
-add_test(test_MpNc util/runTest.sh test/boxmodels/MpNc/obstacle-reference.vtu test/boxmodels/MpNc/obstacle-00011.vtu test/boxmodels/MpNc/test_MpNc test/boxmodels/MpNc/grids/obstacle_24x16.dgf 1e4 250)
-add_test(test_richards util/runTest.sh test/boxmodels/richards/richardslens-reference.vtu test/boxmodels/richards/richardslens-00009.vtu test/boxmodels/richards/test_richards test/boxmodels/richards/grids/richardslens.dgf 100 10)
+ADD_TEST(test_1p util/runTest.sh test/boxmodels/1p/1ptest-reference.vtu 1ptest-00002.vtu test/boxmodels/1p/test_1p test/boxmodels/1p/grids/test_1p_2d.dgf 1 1)
+add_test(test_1p2c util/runTest.sh test/boxmodels/1p2c/tissue-reference.vtu tissue-00003.vtu test/boxmodels/1p2c/test_1p2c test/boxmodels/1p2c/grids/test_1p2c.dgf 2e3 1e3)
+add_test(test_2p util/runTest.sh test/boxmodels/2p/lens-reference.vtu lens-00010.vtu test/boxmodels/2p/test_2p 3000 250)
+add_test(test_2pni util/runTest.sh test/boxmodels/2pni/injection2pni-reference.vtu injection2pni-00009.vtu test/boxmodels/2pni/test_2pni test/boxmodels/2pni/grids/test_2pni.dgf 1e4 250)
+add_test(test_2p2c util/runTest.sh test/boxmodels/2p2c/injection-reference.vtu injection-00009.vtu test/boxmodels/2p2c/test_2p2c test/boxmodels/2p2c/grids/test_2p2c.dgf 1e4 250)
+add_test(test_2p2cni util/runTest.sh test/boxmodels/2p2cni/waterair-reference.vtu waterair-00011.vtu test/boxmodels/2p2cni/test_2p2cni test/boxmodels/2p2cni/grids/test_2p2cni.dgf 1e4 250)
+add_test(test_MpNc util/runTest.sh test/boxmodels/MpNc/obstacle-reference.vtu obstacle-00011.vtu test/boxmodels/MpNc/test_MpNc test/boxmodels/MpNc/grids/obstacle_24x16.dgf 1e4 250)
+add_test(test_richards util/runTest.sh test/boxmodels/richards/richardslens-reference.vtu richardslens-00009.vtu test/boxmodels/richards/test_richards test/boxmodels/richards/grids/richardslens.dgf 100 10)
 add_test(test_propertysystem test/common/propertysystem/test_propertysystem)
 add_test(test_spline test/common/spline/test_spline)
-add_test(test_diffusion util/runTest.sh test/decoupled/1p/diffusion-reference.vtu test/decoupled/1p/mimeticdiffusion-00001.vtu test/decoupled/1p/test_diffusion 3)
-add_test(test_dec1p util/runTest.sh test/decoupled/1p/test_1p-reference.vtu test/decoupled/1p/test_1p-00001.vtu test/decoupled/1p/test_dec1p 3)
-add_test(test_transport util/runTest.sh test/decoupled/2p/test_transport-reference.vtu test/decoupled/2p/test_transport-00006.vtu test/decoupled/2p/test_transport test/decoupled/2p/grids/test_transport.dgf 1e4)
-add_test(test_impes util/runTest.sh test/decoupled/2p/test_impes-reference.vtu test/decoupled/2p/test_impes-00013.vtu test/decoupled/2p/test_impes 1e7)
-add_test(test_dec2p2c util/runTest.sh test/decoupled/2p/test_dec2p2c-reference.vtu test/decoupled/2p/test_dec2p2c-00021.vtu test/decoupled/2p2c/test_dec2p2c)
+add_test(test_diffusion util/runTest.sh test/decoupled/1p/diffusion-reference.vtu mimeticdiffusion-00001.vtu test/decoupled/1p/test_diffusion 3)
+add_test(test_dec1p util/runTest.sh test/decoupled/1p/test_1p-reference.vtu test_1p-00001.vtu test/decoupled/1p/test_dec1p 3)
+add_test(test_transport util/runTest.sh test/decoupled/2p/test_transport-reference.vtu test_transport-00006.vtu test/decoupled/2p/test_transport test/decoupled/2p/grids/test_transport.dgf 1e4)
+add_test(test_impes util/runTest.sh test/decoupled/2p/test_impes-reference.vtu test_impes-00013.vtu test/decoupled/2p/test_impes 1e7)
+add_test(test_dec2p2c util/runTest.sh test/decoupled/2p2c/test_dec2p2c-reference.vtu test_dec2p2c-00021.vtu test/decoupled/2p2c/test_dec2p2c)
 add_test(test_fluidsystems test/material/fluidsystems/test_fluidsystems)
 add_test(test_fluidsystems test/material/ncpflash/test_ncpflash)
 add_test(tutorial_coupled tutorial/tutorial_coupled 1 1)
-- 
GitLab