Commit bf3b41dc authored by Jan Möbius's avatar Jan Möbius

Smoother test added

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12888 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2095669e
......@@ -5,9 +5,8 @@ if(BUILD_TESTING)
# ========================================================================
# Copy required files
# ========================================================================
#configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CTest2JUnit.py
# ${CMAKE_BINARY_DIR}/tests/CTest2JUnit.py COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/smoother_test_script.ofs
${CMAKE_BINARY_DIR}/tests/Plugin-Smoother/smoother_test_script.ofs @ONLY )
# ========================================================================
# ========================================================================
......@@ -20,7 +19,7 @@ if(BUILD_TESTING)
# that pretend to be scriptable without ui are correct and the core
# can start
# ========================================================================
ADD_TEST(SmootherTest ${OPENFLIPPER_EXECUTABLE} -b -c )
ADD_TEST(SmootherTest ${OPENFLIPPER_EXECUTABLE} -b )
# Timeout after 60 seconds if we havean endless loop
# Should be run serial to avoid collisons with other instances
......@@ -32,6 +31,31 @@ if(BUILD_TESTING)
PROCESSORS 1
)
# set( test_cmd ${OPENFLIPPER_EXECUTABLE} )
# set( args "-b -c" )
# add_test( createExprTest_1
# ${CMAKE_COMMAND}
# -D test_cmd=${test_cmd}
# -D test_args:string=${args}
# -D output_blessed=${CMAKE_SOURCE_DIR}/util/test/test1.h
# -D output_test=${CMAKE_BINARY_DIR}/util/test1.h
# -P ${CMAKE_SOURCE_DIR}/tests/run_test_compare.cmake
# )
set( test_cmd ${OPENFLIPPER_EXECUTABLE} )
set( args "-c -b smoother_test_script.ofs" )
add_test( SmootherResult
${CMAKE_COMMAND}
-D test_cmd=${test_cmd}
-D test_args:string=${args}
-D md5=d41d8cd98f00b204e9800998ecf8427e
-D output_test=${OPENFLIPPER_TEST_RESULTS}/smoother_test_result.obj
-P ${CMAKE_SOURCE_DIR}/tests/run_test_md5.cmake
)
......
var cube = fileoff.loadObject("@OPENFLIPPER_TEST_FILES@/cube1.off");
print("Loaded file")
smoother.smooth(cube,10,"tangential","C1");
print("Smoothed")
fileobj.saveObject(cube,"@OPENFLIPPER_TEST_RESULTS@/smoother_test_result.obj");
print("Written")
core.exitApplication();
Markdown is supported
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