diff options
author | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-04-29 18:14:06 +0200 |
---|---|---|
committer | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-04-29 18:14:06 +0200 |
commit | b6dbba36f373166e14cad2767b89d0331b8ac77c (patch) | |
tree | 7396f47f6a02285463507cea399d1a155b6bb30d /test | |
parent | 291ff169ddc21abd09e1b46c69eddd56edd31899 (diff) | |
download | egawk-b6dbba36f373166e14cad2767b89d0331b8ac77c.tar.gz egawk-b6dbba36f373166e14cad2767b89d0331b8ac77c.tar.bz2 egawk-b6dbba36f373166e14cad2767b89d0331b8ac77c.zip |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
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) |