summaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2010-07-06 22:54:16 (GMT)
committerMarius Kintel <marius@kintel.net>2010-10-31 00:42:36 (GMT)
commit9642787a2710324be48d99505a83f0d1f9f83a90 (patch)
treee5d504870d68c63f7c8c96eca5a05fb25db9c56c /tests/CMakeLists.txt
parentf61ae3f51596b3bc4ac30f81a26a8ba80e118bc3 (diff)
Regression test system
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644
index 0000000..c15c24c
--- /dev/null
+++ b/tests/CMakeLists.txt
@@ -0,0 +1,14 @@
+cmake_minimum_required(VERSION 2.8)
+project(tests)
+
+enable_testing()
+
+# Find all scad files
+file(GLOB SCAD_FILES ${CMAKE_SOURCE_DIR}/../testdata/scad/*.scad)
+
+# Add dumptest tests to CTest
+set(DUMPTEST_CMD ${CMAKE_SOURCE_DIR}/../test-code/dumptest)
+foreach (SCADFILE ${SCAD_FILES})
+ get_filename_component(TEST ${SCADFILE} NAME_WE)
+ add_test(${TEST} ${tests_SOURCE_DIR}/test_cmdline_tool.py ${DUMPTEST_CMD} ${SCADFILE})
+endforeach()
contact: Jan Huwald // Impressum