diff options
author | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-02-09 00:29:55 +0100 |
---|---|---|
committer | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-02-09 00:29:55 +0100 |
commit | 4522cf0e0ff06a7eecde480505bf8c2591bf5fa3 (patch) | |
tree | 3825fb182c843514d04ffc470297724c58dec08a /test | |
parent | a8e112a6707877ce24f9560104d157409942b957 (diff) | |
download | egawk-4522cf0e0ff06a7eecde480505bf8c2591bf5fa3.tar.gz egawk-4522cf0e0ff06a7eecde480505bf8c2591bf5fa3.tar.bz2 egawk-4522cf0e0ff06a7eecde480505bf8c2591bf5fa3.zip |
Target 'check' replaced by target 'test' because CMake's test automation works that way. A few test cases already inserted, a significant amount fails.
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index d54aad1f..1b7c4173 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -24,11 +24,9 @@ ## process this file with CMake to produce Makefile -add_custom_target(check) -add_custom_command( - TARGET check - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - COMMAND ${CMAKE_BINARY_DIR}/gawk -f addcomma.awk < addcomma.in > _addcomma 2>&1 || echo EXIT CODE: $$? >>_$@ - COMMAND cmp addcomma.ok _addcomma && rm -f _addcomma -) +set(BASIC_TESTS addcomma anchgsub arrayparm arrayprm2 arrayprm3 arrayref arrymem1 arryref2 arryref3 arryref4 arryref5) + +foreach(testcase ${BASIC_TESTS}) + add_test(${testcase} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase} ) +endforeach(testcase) |