From a073621b5dc2865a014821307128a8fdd1d7d992 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Wed, 10 Jan 2018 12:13:28 +0330 Subject: [PATCH] [cmake] Fix tests against latest changes (#690) --- test/shaping/CMakeLists.txt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/test/shaping/CMakeLists.txt b/test/shaping/CMakeLists.txt index e186858b5..bf4aaa5aa 100644 --- a/test/shaping/CMakeLists.txt +++ b/test/shaping/CMakeLists.txt @@ -1,10 +1,18 @@ if (HB_BUILD_UTILS) - file (READ "${CMAKE_CURRENT_SOURCE_DIR}/Makefile.am" MAKEFILEAM) - extract_make_variable (TESTS ${MAKEFILEAM}) + file (READ "${CMAKE_CURRENT_SOURCE_DIR}/data/in-house/Makefile.am" INHOUSE) + extract_make_variable (TESTS ${INHOUSE}) + foreach (test IN ITEMS ${TESTS}) + message(${CMAKE_CURRENT_SOURCE_DIR}/data/in-house) + add_test (NAME ${test} + COMMAND python run-tests.py $ "data/in-house/${test}" + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) + endforeach () + file (READ "${CMAKE_CURRENT_SOURCE_DIR}/data/text-rendering-tests/Makefile.am" TEXTRENDERING) + extract_make_variable (TESTS ${TEXTRENDERING}) foreach (test IN ITEMS ${TESTS}) add_test (NAME ${test} - COMMAND python run-tests.py $ "${test}" + COMMAND python run-tests.py $ "data/text-rendering-tests/${test}" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) endforeach () endif ()