From b6dbba36f373166e14cad2767b89d0331b8ac77c Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Mon, 29 Apr 2013 18:14:06 +0200 Subject: When building with a native MinGW for Win32 it is now possible to run a 'make test'; only 90% of the basic test cases pass. --- test/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 96008d55..14d75f65 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -24,6 +24,10 @@ ## process this file with CMake to produce Makefile +if(WIN32) + set(SHELL_PREFIX "C:\\MinGW\\msys\\1.0\\bin\\sh") +endif() + file(READ ${CMAKE_CURRENT_SOURCE_DIR}/Maketests BASIC_TESTS) string(REGEX REPLACE "^Gt-dummy:\n" "" BASIC_TESTS "${BASIC_TESTS}") string(REGEX MATCHALL "[a-zA-Z0-9_]+:\n" BASIC_TESTS "${BASIC_TESTS}") @@ -42,6 +46,6 @@ foreach(testcase ${BASIC_TESTS} ) set(options "--lint") endif() - add_test(${testcase} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase} ${options} ) + add_test(${testcase} ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase} ${options} ) endforeach(testcase) -- cgit v1.2.3