eda6a5ea80
For the API tests, output the test programs at $(TOP_BUILDDIR) so that the freshly-built DLLs will be available for the test programs. For those that are run through the Python wrapper scripts, use ${PYTHON_EXECUTABLE} instead of plain 'python' in case the Python interpreter is not in the PATH.
18 lines
776 B
CMake
18 lines
776 B
CMake
if (HB_BUILD_UTILS)
|
|
file (READ "${CMAKE_CURRENT_SOURCE_DIR}/data/in-house/Makefile.sources" INHOUSE)
|
|
extract_make_variable (TESTS ${INHOUSE})
|
|
foreach (test IN ITEMS ${TESTS})
|
|
add_test (NAME ${test}
|
|
COMMAND "${PYTHON_EXECUTABLE}" run-tests.py $<TARGET_FILE:hb-shape> "data/in-house/${test}"
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
|
endforeach ()
|
|
|
|
file (READ "${CMAKE_CURRENT_SOURCE_DIR}/data/text-rendering-tests/Makefile.sources" TEXTRENDERING)
|
|
extract_make_variable (TESTS ${TEXTRENDERING})
|
|
foreach (test IN ITEMS ${TESTS})
|
|
add_test (NAME ${test}
|
|
COMMAND "${PYTHON_EXECUTABLE}" run-tests.py $<TARGET_FILE:hb-shape> "data/text-rendering-tests/${test}"
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
|
endforeach ()
|
|
endif ()
|