Commit d5f10d52 authored by Jan Möbius's avatar Jan Möbius
Browse files

Added name of object to test results

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13523 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c25b122f
var file = @FILEPLUGIN@.loadObject("@OPENFLIPPER_TEST_FILES@/@TEST_FILE@");
var name = datacontrol.getObjectName(file);
var vertexCount = infomeshobject.vertexCount(file);
var edgeCount = infomeshobject.edgeCount(file);
var faceCount = infomeshobject.faceCount(file);
......@@ -8,6 +9,7 @@ var componentCount = infomeshobject.componentCount(file)
printToFile("@OUTPUT_TEST_DATA_FILE@","Test: @TESTNAME@");
printToFile("@OUTPUT_TEST_DATA_FILE@","Loaded File: @OPENFLIPPER_TEST_FILES@/@TEST_FILE@");
printToFile("@OUTPUT_TEST_DATA_FILE@","OBJECTNAME=",name);
printToFile("@OUTPUT_TEST_DATA_FILE@","VERTEXCOUNT=",vertexCount);
printToFile("@OUTPUT_TEST_DATA_FILE@","EDGECOUNT=",edgeCount);
printToFile("@OUTPUT_TEST_DATA_FILE@","FACECOUNT=",faceCount);
......
......@@ -71,14 +71,21 @@ foreach(loop ${CHECKS})
RESULT ${TESTOUTPUT}
)
# remove whitespace
string(STRIP ${RESULT} RESULT)
#Get value from Info:
string (
REGEX REPLACE
"^.*${loop}=([^\n]*).*$" "\\1"
EXPECTED ${INFOFILE}
)
# remove whitespace
string(STRIP ${EXPECTED} EXPECTED)
if ( NOT ${EXPECTED} EQUAL ${RESULT} )
# Use Stringcompare here
if ( NOT ${EXPECTED} STREQUAL ${RESULT} )
message(WARNING "Mismatching values for ${loop}: EXPECTED ${EXPECTED} but got ${RESULT}!")
set(test_not_successful true)
endif()
......
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