aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJuergen Kahrs <Juergen.Kahrs@googlemail.com>2013-05-09 18:48:29 +0200
committerJuergen Kahrs <Juergen.Kahrs@googlemail.com>2013-05-09 18:48:29 +0200
commitf002cb87a7ec02f311c75ad5c0d9e31cf7519aa1 (patch)
tree6894696a07274ff139c99309b5dc22c566e84636 /test
parent56e0891a41a9b151c9dfe7665401ba5950ac2f91 (diff)
downloadegawk-f002cb87a7ec02f311c75ad5c0d9e31cf7519aa1.tar.gz
egawk-f002cb87a7ec02f311c75ad5c0d9e31cf7519aa1.tar.bz2
egawk-f002cb87a7ec02f311c75ad5c0d9e31cf7519aa1.zip
New function simple_test_case simplifies test case execution.
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt16
1 files changed, 1 insertions, 15 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 564eb776..3aceece9 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -40,21 +40,7 @@ foreach(testgroup ${ALL_GROUPS} )
string(REGEX REPLACE "[\\\n\t]" "" ONE_GROUP "${ONE_GROUP}")
string(REGEX REPLACE " " ";" ONE_GROUP "${ONE_GROUP}")
# Use each name of a test case to start a script that executes the test case.
- # Some test cases are special, treat them accordingly.
foreach(testcase ${ONE_GROUP} )
- set(options "")
- if(${testcase} STREQUAL lintold)
- set(options "--lint-old")
- elseif(
- ${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("${testgroup}.${testcase}" ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase}${file_suffix} ${options} )
+ add_test("${testgroup}.${testcase}" ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase}${file_suffix} )
endforeach(testcase)
-
endforeach(testgroup)