Commit efa3e6b2 authored by Thomas Fetzer's avatar Thomas Fetzer
Browse files

[ctest]

the result file which is to be compared will now be deleted at the
beginning of the test to make sure that the latest results file is
compared
fixed typos in fuzzycompare

reviewed by gruenich


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@13442 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent a1d585b0
......@@ -13,7 +13,7 @@ def isFuzzyEqualNode(node1, node2, absolute, relative):
print 'The name of the node differs in ', node1.tagName, ' and ', node2.tagName
return False
if sorted(node1.attributes.items()) != sorted(node2.attributes.items()):
print 'Attributs differ in node ', node1.tagName
print 'Attributes differ in node ', node1.tagName
return False
if len(node1.childNodes) != len(node2.childNodes):
print 'Number of children differs in node ', node1.tagName
......@@ -46,7 +46,7 @@ def isFuzzyEqualText(text1, text2, absolute, relative):
return False
return True
# main programm
# main program
# handle arguments and print help message
parser = argparse.ArgumentParser(description='Fuzzy compare of two VTK\
(Visualization Toolkit) files. The files are accepted if for every\
......
......@@ -18,6 +18,7 @@ REFERENCE_RESULT="$2"
TEST_RESULT="$3"
TEST_BINARY="$4"
TEST_ARGS="${@:5:100}"
rm -fv $TEST_RESULT
# make sure we have at least 3 parameters
if test "$#" -lt 4; then
......
......@@ -16,5 +16,6 @@ add_dumux_test(test_2cnistokes2p2cni_2pm test_2cnistokes2p2cni test_2cnistokes2p
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/2cnistokes2p2cni-pm-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/2p2cni-00004.vtu
echo "test_2cnistokes2p2cni_pm"
${CMAKE_CURRENT_BINARY_DIR}/test_2cnistokes2p2cni
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_2cnistokes2p2cni_reference.input
)
\ No newline at end of file
......@@ -16,5 +16,6 @@ add_dumux_test(test_2cstokes2p2c_2pm test_2cstokes2p2c test_2cstokes2p2c.cc
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/2cstokes2p2c-pm-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/2p2c-00007.vtu
echo "test_2cstokes2p2c_pm"
${CMAKE_CURRENT_BINARY_DIR}/test_2cstokes2p2c
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_2cstokes2p2c_reference.input
)
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment