diff options
author | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-02-09 19:55:07 +0100 |
---|---|---|
committer | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-02-09 19:55:07 +0100 |
commit | 251fa761931520336e19fb09af583954a6f481ce (patch) | |
tree | 0d5c594801cfdb4e1fdf42744bdc7917b2e699a6 /test | |
parent | dac059baf5518edf195c873db91eb42af6551586 (diff) | |
download | egawk-251fa761931520336e19fb09af583954a6f481ce.tar.gz egawk-251fa761931520336e19fb09af583954a6f481ce.tar.bz2 egawk-251fa761931520336e19fb09af583954a6f481ce.zip |
A slightly better but still crude approach at getting many tests to run. More than 90% of the basic tests pass now.
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1b7c4173..06ea1312 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -24,9 +24,16 @@ ## process this file with CMake to produce Makefile -set(BASIC_TESTS addcomma anchgsub arrayparm arrayprm2 arrayprm3 arrayref arrymem1 arryref2 arryref3 arryref4 arryref5) +execute_process( + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ + COMMAND awk /:$/ Maketests + OUTPUT_VARIABLE BASIC_TESTS +) -foreach(testcase ${BASIC_TESTS}) +string(REGEX REPLACE "Gt-dummy:\n" "" BASIC_TESTS ${BASIC_TESTS}) +string(REGEX REPLACE ":" "" BASIC_TESTS ${BASIC_TESTS}) +string(REGEX REPLACE "\n" ";" BASIC_TESTS ${BASIC_TESTS}) +foreach(testcase ${BASIC_TESTS} ) add_test(${testcase} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase} ) endforeach(testcase) |