• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1if (HB_BUILD_UTILS)
2  file (READ "${CMAKE_CURRENT_SOURCE_DIR}/data/in-house/Makefile.sources" INHOUSE)
3  extract_make_variable (TESTS ${INHOUSE})
4  foreach (test IN ITEMS ${TESTS})
5    add_test (NAME ${test}
6      COMMAND "${PYTHON_EXECUTABLE}" run-tests.py $<TARGET_FILE:hb-shape> "data/in-house/${test}"
7      WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
8    set_property (TEST ${test} PROPERTY SKIP_RETURN_CODE 77)
9  endforeach ()
10
11  file (READ "${CMAKE_CURRENT_SOURCE_DIR}/data/aots/Makefile.sources" INHOUSE)
12  extract_make_variable (TESTS ${INHOUSE})
13  foreach (test IN ITEMS ${TESTS})
14    add_test (NAME ${test}
15      COMMAND "${PYTHON_EXECUTABLE}" run-tests.py $<TARGET_FILE:hb-shape> "data/aots/${test}"
16      WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
17    set_property (TEST ${test} PROPERTY SKIP_RETURN_CODE 77)
18  endforeach ()
19
20  file (READ "${CMAKE_CURRENT_SOURCE_DIR}/data/text-rendering-tests/Makefile.sources" TEXTRENDERING)
21  extract_make_variable (TESTS ${TEXTRENDERING})
22  foreach (test IN ITEMS ${TESTS})
23    add_test (NAME ${test}
24      COMMAND "${PYTHON_EXECUTABLE}" run-tests.py $<TARGET_FILE:hb-shape> "data/text-rendering-tests/${test}"
25      WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
26    set_property (TEST ${test} PROPERTY SKIP_RETURN_CODE 77)
27  endforeach ()
28endif ()
29