aboutsummaryrefslogtreecommitdiff
path: root/test/CMakeLists.txt
blob: 6761317aa975d4618fba662545e1de358b1dee40 (plain)
  1. # To get verbose output: cmake --build build --target "test" -- ARGS='-V'
  2. if (WIN32)
  3. file(TO_NATIVE_PATH ${CMAKE_BINARY_DIR}/src WIN_DLL_DIR)
  4. set_tests_properties(api_test PROPERTIES
  5. ENVIRONMENT "PATH=${WIN_DLL_DIR};$ENV{PATH}"
  6. )
  7. endif(WIN32)
  8. add_test(spectest_library
  9. python "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" "--no-normalize" "--spec"
  10. "${CMAKE_SOURCE_DIR}/spec.txt" "--library-dir" "${CMAKE_BINARY_DIR}/src"
  11. )
  12. add_test(pathological_tests_library
  13. python "${CMAKE_CURRENT_SOURCE_DIR}/pathological_tests.py"
  14. "--library-dir" "${CMAKE_BINARY_DIR}/src"
  15. )
  16. add_test(NAME api_test COMMAND api_test)
  17. add_test(spectest_executable
  18. python "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" "--no-normalize" "--spec" "${CMAKE_SOURCE_DIR}/spec.txt" "--program" "${CMAKE_BINARY_DIR}/src/cmark"
  19. )