diff options
author | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-02-10 17:16:25 +0100 |
---|---|---|
committer | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-02-10 17:16:25 +0100 |
commit | 1fa5be5e29fb1a7096173be2b76c4b83d8e41b28 (patch) | |
tree | e74eb455164ba03fe4c7ac064f55a9fe5ff1939b /test | |
parent | 5f280f8854de0652f8fb53c6bcf4e63ad189cb0b (diff) | |
download | egawk-1fa5be5e29fb1a7096173be2b76c4b83d8e41b28.tar.gz egawk-1fa5be5e29fb1a7096173be2b76c4b83d8e41b28.tar.bz2 egawk-1fa5be5e29fb1a7096173be2b76c4b83d8e41b28.zip |
All 265 basic test cases pass now.
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 06ea1312..5f36c754 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -31,9 +31,21 @@ execute_process( ) 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}) +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} ) + set(options "") + if(${testcase} STREQUAL lintold) + set(options "--lint-old") + endif() + if(${testcase} STREQUAL defref OR ${testcase} STREQUAL fmtspcl OR + ${testcase} STREQUAL lintwarn OR ${testcase} STREQUAL noeffect OR + ${testcase} STREQUAL nofmtch OR ${testcase} STREQUAL shadow OR + ${testcase} STREQUAL uninit2 OR ${testcase} STREQUAL uninit3 OR + ${testcase} STREQUAL uninit4 OR ${testcase} STREQUAL uninit5 OR + ${testcase} STREQUAL uninitialized) + set(options "--lint") + endif() + + add_test(${testcase} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase} ${options} ) endforeach(testcase) |