From 1fa5be5e29fb1a7096173be2b76c4b83d8e41b28 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sun, 10 Feb 2013 17:16:25 +0100 Subject: All 265 basic test cases pass now. --- test/CMakeLists.txt | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'test') 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) -- cgit v1.2.3