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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user