Add more advanced round-trip test target that runs decompiled output back

through the originating Python compiler (Linux only for now)
This commit is contained in:
Michael Hansen
2016-08-30 20:18:29 -07:00
parent 4b55e0bcea
commit def5d90a9d
5 changed files with 182 additions and 0 deletions

View File

@@ -65,7 +65,13 @@ if(POLICY CMP0037)
# Don't complain about adding a target named "test"
cmake_policy(SET CMP0037 OLD)
endif()
add_custom_target(test "${CMAKE_CURRENT_SOURCE_DIR}/pycdc_test.sh"
"${CMAKE_CURRENT_SOURCE_DIR}/tests"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
add_dependencies(test pycdc)
add_custom_target(rt_test "${CMAKE_CURRENT_SOURCE_DIR}/pycdc_rt_test.sh"
"${CMAKE_CURRENT_BINARY_DIR}/tests"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
add_dependencies(rt_test test)