From 2dce17ca688920d26694336de74ebd7bcfc0aa20 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Fri, 8 Feb 2013 09:21:10 +0100 Subject: Added test/CMakeLists.txt and doc/CMakeLists.txt with FSF header. --- test/CMakeLists.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 test/CMakeLists.txt (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 00000000..2ed72205 --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,26 @@ +# +# test/CMakeLists.txt --- CMake input file for gawk +# +# Copyright (C) 2013 +# the Free Software Foundation, Inc. +# +# This file is part of GAWK, the GNU implementation of the +# AWK Programming Language. +# +# GAWK is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# GAWK is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# + +## process this file with CMake to produce Makefile + -- cgit v1.2.3 From a8e112a6707877ce24f9560104d157409942b957 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Fri, 8 Feb 2013 22:22:30 +0100 Subject: New target 'check' is a very crude first step toward testing that will soon disappear. --- test/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2ed72205..d54aad1f 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -24,3 +24,11 @@ ## 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 +) + -- cgit v1.2.3 From 4522cf0e0ff06a7eecde480505bf8c2591bf5fa3 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sat, 9 Feb 2013 00:29:55 +0100 Subject: Target 'check' replaced by target 'test' because CMake's test automation works that way. A few test cases already inserted, a significant amount fails. --- test/CMakeLists.txt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'test') 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) -- cgit v1.2.3 From 251fa761931520336e19fb09af583954a6f481ce Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sat, 9 Feb 2013 19:55:07 +0100 Subject: A slightly better but still crude approach at getting many tests to run. More than 90% of the basic tests pass now. --- test/CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'test') 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) -- cgit v1.2.3 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 From 74db9f3cb12c4c45487b8646473daad7d0df641f Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sun, 28 Apr 2013 19:23:08 +0200 Subject: On Win32 platforms a native build with MinGW works now. --- test/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 5f36c754..ba1cc5c6 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -30,8 +30,8 @@ execute_process( OUTPUT_VARIABLE BASIC_TESTS ) -string(REGEX REPLACE "Gt-dummy:\n" "" BASIC_TESTS ${BASIC_TESTS}) -string(REGEX REPLACE ":\n" ";" BASIC_TESTS ${BASIC_TESTS}) +string(REGEX REPLACE "Gt-dummy:\n" "" BASIC_TESTS "${BASIC_TESTS}") +string(REGEX REPLACE ":\n" ";" BASIC_TESTS "${BASIC_TESTS}") foreach(testcase ${BASIC_TESTS} ) set(options "") if(${testcase} STREQUAL lintold) -- cgit v1.2.3 From 291ff169ddc21abd09e1b46c69eddd56edd31899 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Mon, 29 Apr 2013 17:18:13 +0200 Subject: The list of tests is now generated with functions supplied by CMake; an awk interpreter is not needed any more. --- test/CMakeLists.txt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ba1cc5c6..96008d55 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -24,14 +24,10 @@ ## process this file with CMake to produce Makefile -execute_process( - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ - COMMAND awk /:$/ Maketests - OUTPUT_VARIABLE BASIC_TESTS -) - -string(REGEX REPLACE "Gt-dummy:\n" "" BASIC_TESTS "${BASIC_TESTS}") -string(REGEX REPLACE ":\n" ";" BASIC_TESTS "${BASIC_TESTS}") +file(READ ${CMAKE_CURRENT_SOURCE_DIR}/Maketests BASIC_TESTS) +string(REGEX REPLACE "^Gt-dummy:\n" "" BASIC_TESTS "${BASIC_TESTS}") +string(REGEX MATCHALL "[a-zA-Z0-9_]+:\n" BASIC_TESTS "${BASIC_TESTS}") +string(REGEX REPLACE ":\n" "" BASIC_TESTS "${BASIC_TESTS}") foreach(testcase ${BASIC_TESTS} ) set(options "") if(${testcase} STREQUAL lintold) -- cgit v1.2.3 From b6dbba36f373166e14cad2767b89d0331b8ac77c Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Mon, 29 Apr 2013 18:14:06 +0200 Subject: When building with a native MinGW for Win32 it is now possible to run a 'make test'; only 90% of the basic test cases pass. --- test/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 96008d55..14d75f65 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -24,6 +24,10 @@ ## process this file with CMake to produce Makefile +if(WIN32) + set(SHELL_PREFIX "C:\\MinGW\\msys\\1.0\\bin\\sh") +endif() + file(READ ${CMAKE_CURRENT_SOURCE_DIR}/Maketests BASIC_TESTS) string(REGEX REPLACE "^Gt-dummy:\n" "" BASIC_TESTS "${BASIC_TESTS}") string(REGEX MATCHALL "[a-zA-Z0-9_]+:\n" BASIC_TESTS "${BASIC_TESTS}") @@ -42,6 +46,6 @@ foreach(testcase ${BASIC_TESTS} ) set(options "--lint") endif() - add_test(${testcase} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase} ${options} ) + add_test(${testcase} ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase} ${options} ) endforeach(testcase) -- cgit v1.2.3 From ea2b78528d646e4d60a8e8a13d40db2e1b03feac Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Fri, 3 May 2013 18:10:45 +0200 Subject: Test case execution is not controlled by test/Gentests any more but by test/Makefile.am. --- test/CMakeLists.txt | 55 +++++++++++++++++++++++++++++++++++------------------ 1 file changed, 36 insertions(+), 19 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 14d75f65..cdd3ed8b 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -28,24 +28,41 @@ if(WIN32) set(SHELL_PREFIX "C:\\MinGW\\msys\\1.0\\bin\\sh") endif() -file(READ ${CMAKE_CURRENT_SOURCE_DIR}/Maketests BASIC_TESTS) -string(REGEX REPLACE "^Gt-dummy:\n" "" BASIC_TESTS "${BASIC_TESTS}") -string(REGEX MATCHALL "[a-zA-Z0-9_]+:\n" BASIC_TESTS "${BASIC_TESTS}") -string(REGEX REPLACE ":\n" "" BASIC_TESTS "${BASIC_TESTS}") -foreach(testcase ${BASIC_TESTS} ) - 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() +file(READ ${CMAKE_CURRENT_SOURCE_DIR}/Makefile.am ALL_TESTS) +string(REGEX MATCHALL "[A-Z_]*_TESTS " ALL_TESTS "${ALL_TESTS}") +string(REGEX REPLACE "_TESTS " ";" ALL_TESTS "${ALL_TESTS}") +foreach(testgroup ${ALL_TESTS} ) + file(READ ${CMAKE_CURRENT_SOURCE_DIR}/Makefile.am ONE_GROUP) + string(REGEX MATCH "${testgroup}_TESTS = [a-z0-9_ \\\n\t]*" ONE_GROUP "${ONE_GROUP}") + string(REGEX REPLACE "${testgroup}_TESTS = " "" ONE_GROUP "${ONE_GROUP}") + string(REGEX REPLACE "[\\\n\t]" "" ONE_GROUP "${ONE_GROUP}") + string(REGEX REPLACE " " ";" ONE_GROUP "${ONE_GROUP}") + foreach(testcase ${ONE_GROUP} ) + 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} ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase} ${options} ) -endforeach(testcase) + # Check for test cases that cause a "hang" in test case execution. + # Each of them has to be analysed until all of them disappear from this list. + if(${testcase} STREQUAL getline2 OR ${testcase} STREQUAL litoct OR + ${testcase} STREQUAL nonl OR ${testcase} STREQUAL poundbang OR + ${testcase} STREQUAL beginfile1 OR ${testcase} STREQUAL manyfiles OR + ${testcase} STREQUAL rsstart2 OR ${testcase} STREQUAL strftime OR + ${testcase} STREQUAL readdir + ) + add_test(${testcase} ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase}_FAILS ${options} ) + else() + add_test(${testcase} ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase} ${options} ) + endif() + endforeach(testcase) +endforeach(testgroup) -- cgit v1.2.3 From 3ac1e3fcac5919fcac6b5653e2ee6488ed69808b Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Fri, 3 May 2013 20:02:24 +0200 Subject: 377 test cases, 84 fail, sorted out test cases that hang and test cases that fail. --- test/CMakeLists.txt | 85 +++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 67 insertions(+), 18 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index cdd3ed8b..72aae562 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -28,41 +28,90 @@ if(WIN32) set(SHELL_PREFIX "C:\\MinGW\\msys\\1.0\\bin\\sh") endif() -file(READ ${CMAKE_CURRENT_SOURCE_DIR}/Makefile.am ALL_TESTS) -string(REGEX MATCHALL "[A-Z_]*_TESTS " ALL_TESTS "${ALL_TESTS}") -string(REGEX REPLACE "_TESTS " ";" ALL_TESTS "${ALL_TESTS}") -foreach(testgroup ${ALL_TESTS} ) +# Find the names of the groups of tests in Makefile.am. +file(READ ${CMAKE_CURRENT_SOURCE_DIR}/Makefile.am ALL_GROUPS) +string(REGEX MATCHALL "[A-Z_]*_TESTS " ALL_GROUPS "${ALL_GROUPS}") +string(REGEX REPLACE "_TESTS " ";" ALL_GROUPS "${ALL_GROUPS}") +# For each group of test cases, search through Makefile.am and find the test cases. +foreach(testgroup ${ALL_GROUPS} ) file(READ ${CMAKE_CURRENT_SOURCE_DIR}/Makefile.am ONE_GROUP) string(REGEX MATCH "${testgroup}_TESTS = [a-z0-9_ \\\n\t]*" ONE_GROUP "${ONE_GROUP}") string(REGEX REPLACE "${testgroup}_TESTS = " "" ONE_GROUP "${ONE_GROUP}") 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 "") + set(suffix "") if(${testcase} STREQUAL lintold) set(options "--lint-old") + add_test(${testcase} ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase} ${options} ) 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 + 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() - # Check for test cases that cause a "hang" in test case execution. # Each of them has to be analysed until all of them disappear from this list. - if(${testcase} STREQUAL getline2 OR ${testcase} STREQUAL litoct OR - ${testcase} STREQUAL nonl OR ${testcase} STREQUAL poundbang OR - ${testcase} STREQUAL beginfile1 OR ${testcase} STREQUAL manyfiles OR - ${testcase} STREQUAL rsstart2 OR ${testcase} STREQUAL strftime OR + elseif( + ${testcase} STREQUAL getline2 OR ${testcase} STREQUAL litoct OR + ${testcase} STREQUAL nonl OR ${testcase} STREQUAL poundbang OR + ${testcase} STREQUAL beginfile1 OR ${testcase} STREQUAL manyfiles OR + ${testcase} STREQUAL rsstart2 OR ${testcase} STREQUAL strftime OR ${testcase} STREQUAL readdir ) - add_test(${testcase} ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase}_FAILS ${options} ) - else() - add_test(${testcase} ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase} ${options} ) + set(suffix "_HANGS") + # These are the test cases that fail. + # Some of them may reveal genuine bugs. + # Most of them need fail because they need to be invoked with a special parameter. + elseif( + ${testcase} STREQUAL argarray OR ${testcase} STREQUAL argtest OR + ${testcase} STREQUAL arynocls OR ${testcase} STREQUAL _awkpath OR + ${testcase} STREQUAL badargs OR ${testcase} STREQUAL _beginfile2 OR + ${testcase} STREQUAL binmode1 OR ${testcase} STREQUAL _charasbytes OR + ${testcase} STREQUAL colonwarn OR ${testcase} STREQUAL _compare OR + ${testcase} STREQUAL devfd OR ${testcase} STREQUAL _devfd1 OR + ${testcase} STREQUAL devfd2 OR ${testcase} STREQUAL _dumpvars OR + ${testcase} STREQUAL exit OR ${testcase} STREQUAL _exitval1 OR + ${testcase} STREQUAL fflush OR ${testcase} STREQUAL _fmtspcl OR + ${testcase} STREQUAL fsspcoln OR ${testcase} STREQUAL _fts OR + ${testcase} STREQUAL gsubtst3 OR ${testcase} STREQUAL _incdupe OR + ${testcase} STREQUAL incdupe2 OR ${testcase} STREQUAL _incdupe3 OR + ${testcase} STREQUAL incdupe4 OR ${testcase} STREQUAL _incdupe5 OR + ${testcase} STREQUAL incdupe6 OR ${testcase} STREQUAL _incdupe7 OR + ${testcase} STREQUAL include2 OR ${testcase} STREQUAL _inetdayt OR + ${testcase} STREQUAL inetdayu OR ${testcase} STREQUAL _inetecht OR + ${testcase} STREQUAL inetechu OR ${testcase} STREQUAL _inftest OR + ${testcase} STREQUAL inplace1 OR ${testcase} STREQUAL _inplace2 OR + ${testcase} STREQUAL inplace3 OR ${testcase} STREQUAL _jarebug OR + ${testcase} STREQUAL leaddig OR ${testcase} STREQUAL _localenl OR + ${testcase} STREQUAL mbfw1 OR ${testcase} STREQUAL _mbprintf1 OR + ${testcase} STREQUAL messages OR ${testcase} STREQUAL _mmap8k OR + ${testcase} STREQUAL mpfrbigint OR ${testcase} STREQUAL _mpfrexprange OR + ${testcase} STREQUAL mpfrnr OR ${testcase} STREQUAL _mpfrrnd OR + ${testcase} STREQUAL next OR ${testcase} STREQUAL _nofile OR + ${testcase} STREQUAL nondec2 OR ${testcase} STREQUAL _nors OR + ${testcase} STREQUAL ordchr2 OR ${testcase} STREQUAL _pid OR + ${testcase} STREQUAL pipeio2 OR ${testcase} STREQUAL _posix2008sub OR + ${testcase} STREQUAL printf0 OR ${testcase} STREQUAL _printfbad2 OR + ${testcase} STREQUAL profile1 OR ${testcase} STREQUAL _profile2 OR + ${testcase} STREQUAL profile3 OR ${testcase} STREQUAL _readfile OR + ${testcase} STREQUAL redfilnm OR ${testcase} STREQUAL _regtest OR + ${testcase} STREQUAL rsnulbig OR ${testcase} STREQUAL _rsnulbig2 OR + ${testcase} STREQUAL rsstart3 OR ${testcase} STREQUAL _rtlen OR + ${testcase} STREQUAL rtlen01 OR ${testcase} STREQUAL _rtlenmb OR + ${testcase} STREQUAL space OR ${testcase} STREQUAL _strftlng OR + ${testcase} STREQUAL symtab6 OR ${testcase} STREQUAL _symtab8 OR + ${testcase} STREQUAL testext + ) + set(suffix "_FAILS") endif() + + add_test(${testcase} ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase}${suffix} ${options} ) endforeach(testcase) endforeach(testgroup) -- cgit v1.2.3 From 6e8392351cfc4c8f489feac3c07edeacfe6d8949 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Fri, 3 May 2013 20:27:04 +0200 Subject: Corrected some typos and formatting. --- test/CMakeLists.txt | 79 ++++++++++++++++++++++++++--------------------------- 1 file changed, 39 insertions(+), 40 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 72aae562..8e0eb391 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -46,9 +46,8 @@ foreach(testgroup ${ALL_GROUPS} ) set(suffix "") if(${testcase} STREQUAL lintold) set(options "--lint-old") - add_test(${testcase} ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase} ${options} ) - endif() - if(${testcase} STREQUAL defref OR ${testcase} STREQUAL fmtspcl OR + 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 @@ -67,45 +66,45 @@ foreach(testgroup ${ALL_GROUPS} ) set(suffix "_HANGS") # These are the test cases that fail. # Some of them may reveal genuine bugs. - # Most of them need fail because they need to be invoked with a special parameter. + # Most of them fail because they need to be invoked with a special parameter. elseif( ${testcase} STREQUAL argarray OR ${testcase} STREQUAL argtest OR - ${testcase} STREQUAL arynocls OR ${testcase} STREQUAL _awkpath OR - ${testcase} STREQUAL badargs OR ${testcase} STREQUAL _beginfile2 OR - ${testcase} STREQUAL binmode1 OR ${testcase} STREQUAL _charasbytes OR - ${testcase} STREQUAL colonwarn OR ${testcase} STREQUAL _compare OR - ${testcase} STREQUAL devfd OR ${testcase} STREQUAL _devfd1 OR - ${testcase} STREQUAL devfd2 OR ${testcase} STREQUAL _dumpvars OR - ${testcase} STREQUAL exit OR ${testcase} STREQUAL _exitval1 OR - ${testcase} STREQUAL fflush OR ${testcase} STREQUAL _fmtspcl OR - ${testcase} STREQUAL fsspcoln OR ${testcase} STREQUAL _fts OR - ${testcase} STREQUAL gsubtst3 OR ${testcase} STREQUAL _incdupe OR - ${testcase} STREQUAL incdupe2 OR ${testcase} STREQUAL _incdupe3 OR - ${testcase} STREQUAL incdupe4 OR ${testcase} STREQUAL _incdupe5 OR - ${testcase} STREQUAL incdupe6 OR ${testcase} STREQUAL _incdupe7 OR - ${testcase} STREQUAL include2 OR ${testcase} STREQUAL _inetdayt OR - ${testcase} STREQUAL inetdayu OR ${testcase} STREQUAL _inetecht OR - ${testcase} STREQUAL inetechu OR ${testcase} STREQUAL _inftest OR - ${testcase} STREQUAL inplace1 OR ${testcase} STREQUAL _inplace2 OR - ${testcase} STREQUAL inplace3 OR ${testcase} STREQUAL _jarebug OR - ${testcase} STREQUAL leaddig OR ${testcase} STREQUAL _localenl OR - ${testcase} STREQUAL mbfw1 OR ${testcase} STREQUAL _mbprintf1 OR - ${testcase} STREQUAL messages OR ${testcase} STREQUAL _mmap8k OR - ${testcase} STREQUAL mpfrbigint OR ${testcase} STREQUAL _mpfrexprange OR - ${testcase} STREQUAL mpfrnr OR ${testcase} STREQUAL _mpfrrnd OR - ${testcase} STREQUAL next OR ${testcase} STREQUAL _nofile OR - ${testcase} STREQUAL nondec2 OR ${testcase} STREQUAL _nors OR - ${testcase} STREQUAL ordchr2 OR ${testcase} STREQUAL _pid OR - ${testcase} STREQUAL pipeio2 OR ${testcase} STREQUAL _posix2008sub OR - ${testcase} STREQUAL printf0 OR ${testcase} STREQUAL _printfbad2 OR - ${testcase} STREQUAL profile1 OR ${testcase} STREQUAL _profile2 OR - ${testcase} STREQUAL profile3 OR ${testcase} STREQUAL _readfile OR - ${testcase} STREQUAL redfilnm OR ${testcase} STREQUAL _regtest OR - ${testcase} STREQUAL rsnulbig OR ${testcase} STREQUAL _rsnulbig2 OR - ${testcase} STREQUAL rsstart3 OR ${testcase} STREQUAL _rtlen OR - ${testcase} STREQUAL rtlen01 OR ${testcase} STREQUAL _rtlenmb OR - ${testcase} STREQUAL space OR ${testcase} STREQUAL _strftlng OR - ${testcase} STREQUAL symtab6 OR ${testcase} STREQUAL _symtab8 OR + ${testcase} STREQUAL arynocls OR ${testcase} STREQUAL awkpath OR + ${testcase} STREQUAL badargs OR ${testcase} STREQUAL beginfile2 OR + ${testcase} STREQUAL binmode1 OR ${testcase} STREQUAL charasbytes OR + ${testcase} STREQUAL colonwarn OR ${testcase} STREQUAL compare OR + ${testcase} STREQUAL devfd OR ${testcase} STREQUAL devfd1 OR + ${testcase} STREQUAL devfd2 OR ${testcase} STREQUAL dumpvars OR + ${testcase} STREQUAL exit OR ${testcase} STREQUAL exitval1 OR + ${testcase} STREQUAL fflush OR ${testcase} STREQUAL fmtspcl OR + ${testcase} STREQUAL fsspcoln OR ${testcase} STREQUAL fts OR + ${testcase} STREQUAL gsubtst3 OR ${testcase} STREQUAL incdupe OR + ${testcase} STREQUAL incdupe2 OR ${testcase} STREQUAL incdupe3 OR + ${testcase} STREQUAL incdupe4 OR ${testcase} STREQUAL incdupe5 OR + ${testcase} STREQUAL incdupe6 OR ${testcase} STREQUAL incdupe7 OR + ${testcase} STREQUAL include2 OR ${testcase} STREQUAL inetdayt OR + ${testcase} STREQUAL inetdayu OR ${testcase} STREQUAL inetecht OR + ${testcase} STREQUAL inetechu OR ${testcase} STREQUAL inftest OR + ${testcase} STREQUAL inplace1 OR ${testcase} STREQUAL inplace2 OR + ${testcase} STREQUAL inplace3 OR ${testcase} STREQUAL jarebug OR + ${testcase} STREQUAL leaddig OR ${testcase} STREQUAL localenl OR + ${testcase} STREQUAL mbfw1 OR ${testcase} STREQUAL mbprintf1 OR + ${testcase} STREQUAL messages OR ${testcase} STREQUAL mmap8k OR + ${testcase} STREQUAL mpfrbigint OR ${testcase} STREQUAL mpfrexprange OR + ${testcase} STREQUAL mpfrnr OR ${testcase} STREQUAL mpfrrnd OR + ${testcase} STREQUAL next OR ${testcase} STREQUAL nofile OR + ${testcase} STREQUAL nondec2 OR ${testcase} STREQUAL nors OR + ${testcase} STREQUAL ordchr2 OR ${testcase} STREQUAL pid OR + ${testcase} STREQUAL pipeio2 OR ${testcase} STREQUAL posix2008sub OR + ${testcase} STREQUAL printf0 OR ${testcase} STREQUAL printfbad2 OR + ${testcase} STREQUAL profile1 OR ${testcase} STREQUAL profile2 OR + ${testcase} STREQUAL profile3 OR ${testcase} STREQUAL readfile OR + ${testcase} STREQUAL redfilnm OR ${testcase} STREQUAL regtest OR + ${testcase} STREQUAL rsnulbig OR ${testcase} STREQUAL rsnulbig2 OR + ${testcase} STREQUAL rsstart3 OR ${testcase} STREQUAL rtlen OR + ${testcase} STREQUAL rtlen01 OR ${testcase} STREQUAL rtlenmb OR + ${testcase} STREQUAL space OR ${testcase} STREQUAL strftlng OR + ${testcase} STREQUAL symtab6 OR ${testcase} STREQUAL symtab8 OR ${testcase} STREQUAL testext ) set(suffix "_FAILS") -- cgit v1.2.3 From 582c08d3795cec69eae28f9513c65d21ad0a13e8 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sat, 4 May 2013 12:02:15 +0200 Subject: Non-standard test cases like testext shall be implemented as shell functions. --- test/CMakeLists.txt | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 8e0eb391..6b085e08 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -43,11 +43,11 @@ foreach(testgroup ${ALL_GROUPS} ) # Some test cases are special, treat them accordingly. foreach(testcase ${ONE_GROUP} ) set(options "") - set(suffix "") + set(file_suffix "") if(${testcase} STREQUAL lintold) set(options "--lint-old") elseif( - ${testcase} STREQUAL defref OR ${testcase} STREQUAL fmtspcl OR + ${testcase} STREQUAL defref 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 @@ -63,7 +63,7 @@ foreach(testgroup ${ALL_GROUPS} ) ${testcase} STREQUAL rsstart2 OR ${testcase} STREQUAL strftime OR ${testcase} STREQUAL readdir ) - set(suffix "_HANGS") + set(file_suffix "_HANGS") # These are the test cases that fail. # Some of them may reveal genuine bugs. # Most of them fail because they need to be invoked with a special parameter. @@ -104,13 +104,16 @@ foreach(testgroup ${ALL_GROUPS} ) ${testcase} STREQUAL rsstart3 OR ${testcase} STREQUAL rtlen OR ${testcase} STREQUAL rtlen01 OR ${testcase} STREQUAL rtlenmb OR ${testcase} STREQUAL space OR ${testcase} STREQUAL strftlng OR - ${testcase} STREQUAL symtab6 OR ${testcase} STREQUAL symtab8 OR - ${testcase} STREQUAL testext + ${testcase} STREQUAL symtab6 OR ${testcase} STREQUAL symtab8 ) - set(suffix "_FAILS") + set(file_suffix "_FAILS") endif() - add_test(${testcase} ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase}${suffix} ${options} ) + if ("${file_suffix}" STREQUAL "") + add_test("${testgroup}.${testcase}" ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase}${file_suffix} ${options} ) + else() + message(STATUS "Skipping test case ${testgroup}.${testcase}") + endif() endforeach(testcase) endforeach(testgroup) -- cgit v1.2.3 From e081fb5a615104d2ac8ec6b193ce3106950a3bbb Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sat, 4 May 2013 16:37:29 +0200 Subject: All SHLIB test cases are implemented now and pass on Linux. With MinGW only 6 of them pass. --- test/CMakeLists.txt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 6b085e08..0c99de79 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -60,8 +60,7 @@ foreach(testgroup ${ALL_GROUPS} ) ${testcase} STREQUAL getline2 OR ${testcase} STREQUAL litoct OR ${testcase} STREQUAL nonl OR ${testcase} STREQUAL poundbang OR ${testcase} STREQUAL beginfile1 OR ${testcase} STREQUAL manyfiles OR - ${testcase} STREQUAL rsstart2 OR ${testcase} STREQUAL strftime OR - ${testcase} STREQUAL readdir + ${testcase} STREQUAL rsstart2 OR ${testcase} STREQUAL strftime ) set(file_suffix "_HANGS") # These are the test cases that fail. @@ -77,7 +76,7 @@ foreach(testgroup ${ALL_GROUPS} ) ${testcase} STREQUAL devfd2 OR ${testcase} STREQUAL dumpvars OR ${testcase} STREQUAL exit OR ${testcase} STREQUAL exitval1 OR ${testcase} STREQUAL fflush OR ${testcase} STREQUAL fmtspcl OR - ${testcase} STREQUAL fsspcoln OR ${testcase} STREQUAL fts OR + ${testcase} STREQUAL fsspcoln OR ${testcase} STREQUAL gsubtst3 OR ${testcase} STREQUAL incdupe OR ${testcase} STREQUAL incdupe2 OR ${testcase} STREQUAL incdupe3 OR ${testcase} STREQUAL incdupe4 OR ${testcase} STREQUAL incdupe5 OR @@ -85,8 +84,7 @@ foreach(testgroup ${ALL_GROUPS} ) ${testcase} STREQUAL include2 OR ${testcase} STREQUAL inetdayt OR ${testcase} STREQUAL inetdayu OR ${testcase} STREQUAL inetecht OR ${testcase} STREQUAL inetechu OR ${testcase} STREQUAL inftest OR - ${testcase} STREQUAL inplace1 OR ${testcase} STREQUAL inplace2 OR - ${testcase} STREQUAL inplace3 OR ${testcase} STREQUAL jarebug OR + ${testcase} STREQUAL jarebug OR ${testcase} STREQUAL leaddig OR ${testcase} STREQUAL localenl OR ${testcase} STREQUAL mbfw1 OR ${testcase} STREQUAL mbprintf1 OR ${testcase} STREQUAL messages OR ${testcase} STREQUAL mmap8k OR @@ -94,11 +92,11 @@ foreach(testgroup ${ALL_GROUPS} ) ${testcase} STREQUAL mpfrnr OR ${testcase} STREQUAL mpfrrnd OR ${testcase} STREQUAL next OR ${testcase} STREQUAL nofile OR ${testcase} STREQUAL nondec2 OR ${testcase} STREQUAL nors OR - ${testcase} STREQUAL ordchr2 OR ${testcase} STREQUAL pid OR + ${testcase} STREQUAL pid OR ${testcase} STREQUAL pipeio2 OR ${testcase} STREQUAL posix2008sub OR ${testcase} STREQUAL printf0 OR ${testcase} STREQUAL printfbad2 OR ${testcase} STREQUAL profile1 OR ${testcase} STREQUAL profile2 OR - ${testcase} STREQUAL profile3 OR ${testcase} STREQUAL readfile OR + ${testcase} STREQUAL profile3 OR ${testcase} STREQUAL redfilnm OR ${testcase} STREQUAL regtest OR ${testcase} STREQUAL rsnulbig OR ${testcase} STREQUAL rsnulbig2 OR ${testcase} STREQUAL rsstart3 OR ${testcase} STREQUAL rtlen OR -- cgit v1.2.3 From bbbdcd5cec911cdef6e8e82c6000b10dabafacae Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sat, 4 May 2013 19:48:44 +0200 Subject: All non-standard test cases that caused a hang are now in and pass; (altogether 309 out of 377 pass). --- test/CMakeLists.txt | 9 --------- 1 file changed, 9 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 0c99de79..9f1c751b 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -54,15 +54,6 @@ foreach(testgroup ${ALL_GROUPS} ) ${testcase} STREQUAL uninit4 OR ${testcase} STREQUAL uninit5 OR ${testcase} STREQUAL uninitialized) set(options "--lint") - # Check for test cases that cause a "hang" in test case execution. - # Each of them has to be analysed until all of them disappear from this list. - elseif( - ${testcase} STREQUAL getline2 OR ${testcase} STREQUAL litoct OR - ${testcase} STREQUAL nonl OR ${testcase} STREQUAL poundbang OR - ${testcase} STREQUAL beginfile1 OR ${testcase} STREQUAL manyfiles OR - ${testcase} STREQUAL rsstart2 OR ${testcase} STREQUAL strftime - ) - set(file_suffix "_HANGS") # These are the test cases that fail. # Some of them may reveal genuine bugs. # Most of them fail because they need to be invoked with a special parameter. -- cgit v1.2.3 From 6855adcdcb8fd310b298043ace84f0cc9133c517 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sun, 5 May 2013 12:26:02 +0200 Subject: Replaced some $$ with $. All MPFR test cases pass now, on Linux and with MinGW. --- test/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 9f1c751b..39ec0b9f 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -47,7 +47,7 @@ foreach(testgroup ${ALL_GROUPS} ) if(${testcase} STREQUAL lintold) set(options "--lint-old") elseif( - ${testcase} STREQUAL defref OR + ${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 @@ -79,11 +79,9 @@ foreach(testgroup ${ALL_GROUPS} ) ${testcase} STREQUAL leaddig OR ${testcase} STREQUAL localenl OR ${testcase} STREQUAL mbfw1 OR ${testcase} STREQUAL mbprintf1 OR ${testcase} STREQUAL messages OR ${testcase} STREQUAL mmap8k OR - ${testcase} STREQUAL mpfrbigint OR ${testcase} STREQUAL mpfrexprange OR - ${testcase} STREQUAL mpfrnr OR ${testcase} STREQUAL mpfrrnd OR ${testcase} STREQUAL next OR ${testcase} STREQUAL nofile OR ${testcase} STREQUAL nondec2 OR ${testcase} STREQUAL nors OR - ${testcase} STREQUAL pid OR + ${testcase} STREQUAL pid OR ${testcase} STREQUAL pipeio2 OR ${testcase} STREQUAL posix2008sub OR ${testcase} STREQUAL printf0 OR ${testcase} STREQUAL printfbad2 OR ${testcase} STREQUAL profile1 OR ${testcase} STREQUAL profile2 OR -- cgit v1.2.3 From f6f37055efd53b08e22001776c6e223de78d7f54 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sun, 5 May 2013 13:11:56 +0200 Subject: All EXT and INET test cases pass now. --- test/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 39ec0b9f..17040c36 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -72,9 +72,7 @@ foreach(testgroup ${ALL_GROUPS} ) ${testcase} STREQUAL incdupe2 OR ${testcase} STREQUAL incdupe3 OR ${testcase} STREQUAL incdupe4 OR ${testcase} STREQUAL incdupe5 OR ${testcase} STREQUAL incdupe6 OR ${testcase} STREQUAL incdupe7 OR - ${testcase} STREQUAL include2 OR ${testcase} STREQUAL inetdayt OR - ${testcase} STREQUAL inetdayu OR ${testcase} STREQUAL inetecht OR - ${testcase} STREQUAL inetechu OR ${testcase} STREQUAL inftest OR + ${testcase} STREQUAL include2 OR ${testcase} STREQUAL jarebug OR ${testcase} STREQUAL leaddig OR ${testcase} STREQUAL localenl OR ${testcase} STREQUAL mbfw1 OR ${testcase} STREQUAL mbprintf1 OR @@ -86,7 +84,7 @@ foreach(testgroup ${ALL_GROUPS} ) ${testcase} STREQUAL printf0 OR ${testcase} STREQUAL printfbad2 OR ${testcase} STREQUAL profile1 OR ${testcase} STREQUAL profile2 OR ${testcase} STREQUAL profile3 OR - ${testcase} STREQUAL redfilnm OR ${testcase} STREQUAL regtest OR + ${testcase} STREQUAL redfilnm OR ${testcase} STREQUAL rsnulbig OR ${testcase} STREQUAL rsnulbig2 OR ${testcase} STREQUAL rsstart3 OR ${testcase} STREQUAL rtlen OR ${testcase} STREQUAL rtlen01 OR ${testcase} STREQUAL rtlenmb OR -- cgit v1.2.3 From 42100bbb008a4aa6088b77285777283e49339ae1 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sun, 5 May 2013 15:56:08 +0200 Subject: All LOCALE_CHARSET test cases are in now and found a bug in multi-byte characters with FIELDWIDTHS. --- test/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 17040c36..218c6590 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -73,9 +73,7 @@ foreach(testgroup ${ALL_GROUPS} ) ${testcase} STREQUAL incdupe4 OR ${testcase} STREQUAL incdupe5 OR ${testcase} STREQUAL incdupe6 OR ${testcase} STREQUAL incdupe7 OR ${testcase} STREQUAL include2 OR - ${testcase} STREQUAL jarebug OR ${testcase} STREQUAL leaddig OR ${testcase} STREQUAL localenl OR - ${testcase} STREQUAL mbfw1 OR ${testcase} STREQUAL mbprintf1 OR ${testcase} STREQUAL messages OR ${testcase} STREQUAL mmap8k OR ${testcase} STREQUAL next OR ${testcase} STREQUAL nofile OR ${testcase} STREQUAL nondec2 OR ${testcase} STREQUAL nors OR @@ -87,7 +85,7 @@ foreach(testgroup ${ALL_GROUPS} ) ${testcase} STREQUAL redfilnm OR ${testcase} STREQUAL rsnulbig OR ${testcase} STREQUAL rsnulbig2 OR ${testcase} STREQUAL rsstart3 OR ${testcase} STREQUAL rtlen OR - ${testcase} STREQUAL rtlen01 OR ${testcase} STREQUAL rtlenmb OR + ${testcase} STREQUAL rtlen01 OR ${testcase} STREQUAL space OR ${testcase} STREQUAL strftlng OR ${testcase} STREQUAL symtab6 OR ${testcase} STREQUAL symtab8 ) -- cgit v1.2.3 From 188e4c22845855953c24b9ac26a86320371e1482 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sun, 5 May 2013 17:04:38 +0200 Subject: All UNIX test cases are in now. --- test/CMakeLists.txt | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 218c6590..4d5cf86c 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -66,27 +66,24 @@ foreach(testgroup ${ALL_GROUPS} ) ${testcase} STREQUAL devfd OR ${testcase} STREQUAL devfd1 OR ${testcase} STREQUAL devfd2 OR ${testcase} STREQUAL dumpvars OR ${testcase} STREQUAL exit OR ${testcase} STREQUAL exitval1 OR - ${testcase} STREQUAL fflush OR ${testcase} STREQUAL fmtspcl OR + ${testcase} STREQUAL fmtspcl OR ${testcase} STREQUAL fsspcoln OR ${testcase} STREQUAL gsubtst3 OR ${testcase} STREQUAL incdupe OR ${testcase} STREQUAL incdupe2 OR ${testcase} STREQUAL incdupe3 OR ${testcase} STREQUAL incdupe4 OR ${testcase} STREQUAL incdupe5 OR ${testcase} STREQUAL incdupe6 OR ${testcase} STREQUAL incdupe7 OR ${testcase} STREQUAL include2 OR - ${testcase} STREQUAL leaddig OR ${testcase} STREQUAL localenl OR + ${testcase} STREQUAL leaddig OR ${testcase} STREQUAL messages OR ${testcase} STREQUAL mmap8k OR ${testcase} STREQUAL next OR ${testcase} STREQUAL nofile OR ${testcase} STREQUAL nondec2 OR ${testcase} STREQUAL nors OR - ${testcase} STREQUAL pid OR - ${testcase} STREQUAL pipeio2 OR ${testcase} STREQUAL posix2008sub OR + ${testcase} STREQUAL posix2008sub OR ${testcase} STREQUAL printf0 OR ${testcase} STREQUAL printfbad2 OR ${testcase} STREQUAL profile1 OR ${testcase} STREQUAL profile2 OR ${testcase} STREQUAL profile3 OR ${testcase} STREQUAL redfilnm OR ${testcase} STREQUAL rsnulbig OR ${testcase} STREQUAL rsnulbig2 OR - ${testcase} STREQUAL rsstart3 OR ${testcase} STREQUAL rtlen OR - ${testcase} STREQUAL rtlen01 OR - ${testcase} STREQUAL space OR ${testcase} STREQUAL strftlng OR + ${testcase} STREQUAL rsstart3 OR ${testcase} STREQUAL symtab6 OR ${testcase} STREQUAL symtab8 ) set(file_suffix "_FAILS") -- cgit v1.2.3 From bfebb6547fb331a87820be10d9c91efd274ea399 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sun, 5 May 2013 19:03:48 +0200 Subject: All BASIC test cases are in now. --- test/CMakeLists.txt | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 4d5cf86c..eb3ddcef 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -58,31 +58,24 @@ foreach(testgroup ${ALL_GROUPS} ) # Some of them may reveal genuine bugs. # Most of them fail because they need to be invoked with a special parameter. elseif( - ${testcase} STREQUAL argarray OR ${testcase} STREQUAL argtest OR - ${testcase} STREQUAL arynocls OR ${testcase} STREQUAL awkpath OR + ${testcase} STREQUAL argtest OR ${testcase} STREQUAL badargs OR ${testcase} STREQUAL beginfile2 OR ${testcase} STREQUAL binmode1 OR ${testcase} STREQUAL charasbytes OR - ${testcase} STREQUAL colonwarn OR ${testcase} STREQUAL compare OR + ${testcase} STREQUAL colonwarn OR ${testcase} STREQUAL devfd OR ${testcase} STREQUAL devfd1 OR ${testcase} STREQUAL devfd2 OR ${testcase} STREQUAL dumpvars OR - ${testcase} STREQUAL exit OR ${testcase} STREQUAL exitval1 OR + ${testcase} STREQUAL exit OR ${testcase} STREQUAL fmtspcl OR - ${testcase} STREQUAL fsspcoln OR - ${testcase} STREQUAL gsubtst3 OR ${testcase} STREQUAL incdupe OR + ${testcase} STREQUAL incdupe OR ${testcase} STREQUAL incdupe2 OR ${testcase} STREQUAL incdupe3 OR ${testcase} STREQUAL incdupe4 OR ${testcase} STREQUAL incdupe5 OR ${testcase} STREQUAL incdupe6 OR ${testcase} STREQUAL incdupe7 OR ${testcase} STREQUAL include2 OR - ${testcase} STREQUAL leaddig OR - ${testcase} STREQUAL messages OR ${testcase} STREQUAL mmap8k OR - ${testcase} STREQUAL next OR ${testcase} STREQUAL nofile OR - ${testcase} STREQUAL nondec2 OR ${testcase} STREQUAL nors OR - ${testcase} STREQUAL posix2008sub OR - ${testcase} STREQUAL printf0 OR ${testcase} STREQUAL printfbad2 OR + ${testcase} STREQUAL next OR + ${testcase} STREQUAL nondec2 OR + ${testcase} STREQUAL printfbad2 OR ${testcase} STREQUAL profile1 OR ${testcase} STREQUAL profile2 OR ${testcase} STREQUAL profile3 OR - ${testcase} STREQUAL redfilnm OR - ${testcase} STREQUAL rsnulbig OR ${testcase} STREQUAL rsnulbig2 OR ${testcase} STREQUAL rsstart3 OR ${testcase} STREQUAL symtab6 OR ${testcase} STREQUAL symtab8 ) -- cgit v1.2.3 From 263bd7ca867fdb26241a8681075f99d97c33c4d0 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Mon, 6 May 2013 17:46:17 +0200 Subject: All 377 test cases are in now. Only mbfw1 and mbprintf1 fail on Linux. --- test/CMakeLists.txt | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index eb3ddcef..d92897d8 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -54,32 +54,6 @@ foreach(testgroup ${ALL_GROUPS} ) ${testcase} STREQUAL uninit4 OR ${testcase} STREQUAL uninit5 OR ${testcase} STREQUAL uninitialized) set(options "--lint") - # These are the test cases that fail. - # Some of them may reveal genuine bugs. - # Most of them fail because they need to be invoked with a special parameter. - elseif( - ${testcase} STREQUAL argtest OR - ${testcase} STREQUAL badargs OR ${testcase} STREQUAL beginfile2 OR - ${testcase} STREQUAL binmode1 OR ${testcase} STREQUAL charasbytes OR - ${testcase} STREQUAL colonwarn OR - ${testcase} STREQUAL devfd OR ${testcase} STREQUAL devfd1 OR - ${testcase} STREQUAL devfd2 OR ${testcase} STREQUAL dumpvars OR - ${testcase} STREQUAL exit OR - ${testcase} STREQUAL fmtspcl OR - ${testcase} STREQUAL incdupe OR - ${testcase} STREQUAL incdupe2 OR ${testcase} STREQUAL incdupe3 OR - ${testcase} STREQUAL incdupe4 OR ${testcase} STREQUAL incdupe5 OR - ${testcase} STREQUAL incdupe6 OR ${testcase} STREQUAL incdupe7 OR - ${testcase} STREQUAL include2 OR - ${testcase} STREQUAL next OR - ${testcase} STREQUAL nondec2 OR - ${testcase} STREQUAL printfbad2 OR - ${testcase} STREQUAL profile1 OR ${testcase} STREQUAL profile2 OR - ${testcase} STREQUAL profile3 OR - ${testcase} STREQUAL rsstart3 OR - ${testcase} STREQUAL symtab6 OR ${testcase} STREQUAL symtab8 - ) - set(file_suffix "_FAILS") endif() if ("${file_suffix}" STREQUAL "") -- cgit v1.2.3 From 55775186a2fb7e4f61b57e2923abe4e6e4728eb0 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Mon, 6 May 2013 21:18:05 +0200 Subject: Found better way to auto-detect GETGROUPS_T and GETPGRP_VOID. --- test/CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index d92897d8..564eb776 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -43,7 +43,6 @@ foreach(testgroup ${ALL_GROUPS} ) # Some test cases are special, treat them accordingly. foreach(testcase ${ONE_GROUP} ) set(options "") - set(file_suffix "") if(${testcase} STREQUAL lintold) set(options "--lint-old") elseif( @@ -55,12 +54,7 @@ foreach(testgroup ${ALL_GROUPS} ) ${testcase} STREQUAL uninitialized) set(options "--lint") endif() - - if ("${file_suffix}" STREQUAL "") - add_test("${testgroup}.${testcase}" ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase}${file_suffix} ${options} ) - else() - message(STATUS "Skipping test case ${testgroup}.${testcase}") - endif() + add_test("${testgroup}.${testcase}" ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase}${file_suffix} ${options} ) endforeach(testcase) endforeach(testgroup) -- cgit v1.2.3 From f002cb87a7ec02f311c75ad5c0d9e31cf7519aa1 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Thu, 9 May 2013 18:48:29 +0200 Subject: New function simple_test_case simplifies test case execution. --- test/CMakeLists.txt | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'test') 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) -- cgit v1.2.3 From 61f18b3aac9acf83f06163e37461eea5d915523b Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sat, 11 May 2013 10:48:41 +0200 Subject: Generated file CTestCustom.cmake contains test cases that shall be skipped. --- test/CMakeLists.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3aceece9..073ca61b 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -44,3 +44,25 @@ foreach(testgroup ${ALL_GROUPS} ) add_test("${testgroup}.${testcase}" ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase}${file_suffix} ) endforeach(testcase) endforeach(testgroup) + +# Create an empty configuration file for customizing test execution. +set(CTestCustom ${CMAKE_BINARY_DIR}/CTestCustom.cmake) +file(WRITE ${CTestCustom} "# DO NOT EDIT, THIS FILE WILL BE OVERWRITTEN\n" ) +# Exclude test cases from execution that make no sense on a certain platform. +file(APPEND ${CTestCustom} "set(CTEST_CUSTOM_TESTS_IGNORE\n") +if(WIN32) + file(APPEND ${CTestCustom} " SHLIB.filefuncs\n") + file(APPEND ${CTestCustom} " SHLIB.fnmatch\n") + file(APPEND ${CTestCustom} " SHLIB.fork\n") + file(APPEND ${CTestCustom} " SHLIB.fork2\n") + file(APPEND ${CTestCustom} " SHLIB.fts\n") + file(APPEND ${CTestCustom} " SHLIB.functab4\n") + file(APPEND ${CTestCustom} " SHLIB.inplace1\n") + file(APPEND ${CTestCustom} " SHLIB.inplace2\n") + file(APPEND ${CTestCustom} " SHLIB.inplace3\n") + file(APPEND ${CTestCustom} " SHLIB.readdir\n") + file(APPEND ${CTestCustom} " SHLIB.revtwoway\n") + file(APPEND ${CTestCustom} " SHLIB.rwarray\n") +endif() +file(APPEND ${CTestCustom} ")\n") + -- cgit v1.2.3 From 3582c0812a82986ddd6959c28db520dc376e39e0 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sat, 11 May 2013 12:27:47 +0200 Subject: Test case SHLIB.filefuncs needs the gawk exe in source directory. --- test/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 073ca61b..d39bae91 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -41,13 +41,15 @@ foreach(testgroup ${ALL_GROUPS} ) string(REGEX REPLACE " " ";" ONE_GROUP "${ONE_GROUP}") # Use each name of a test case to start a script that executes the test case. foreach(testcase ${ONE_GROUP} ) - add_test("${testgroup}.${testcase}" ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase}${file_suffix} ) + add_test("${testgroup}.${testcase}" ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk${CMAKE_EXECUTABLE_SUFFIX} ${testcase}${file_suffix} ) endforeach(testcase) endforeach(testgroup) # Create an empty configuration file for customizing test execution. set(CTestCustom ${CMAKE_BINARY_DIR}/CTestCustom.cmake) file(WRITE ${CTestCustom} "# DO NOT EDIT, THIS FILE WILL BE OVERWRITTEN\n" ) +# Test case SHLIB.filefuncs needs the gawk exe in source directory. +file(APPEND ${CTestCustom} "file(COPY ${CMAKE_BINARY_DIR}/gawk${CMAKE_EXECUTABLE_SUFFIX} DESTINATION ${CMAKE_SOURCE_DIR})\n") # Exclude test cases from execution that make no sense on a certain platform. file(APPEND ${CTestCustom} "set(CTEST_CUSTOM_TESTS_IGNORE\n") if(WIN32) -- cgit v1.2.3 From 01886e08505e3aa28b0798776284f27bc64ab9fd Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sat, 11 May 2013 13:25:36 +0200 Subject: 37 test cases fail on MinGW; this list needs review and should eventually become shorter. --- test/CMakeLists.txt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index d39bae91..8e42c0db 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -53,6 +53,31 @@ file(APPEND ${CTestCustom} "file(COPY ${CMAKE_BINARY_DIR}/gawk${CMAKE_EXECUTABLE # Exclude test cases from execution that make no sense on a certain platform. file(APPEND ${CTestCustom} "set(CTEST_CUSTOM_TESTS_IGNORE\n") if(WIN32) + file(APPEND ${CTestCustom} " BASIC.exitval2\n") + file(APPEND ${CTestCustom} " BASIC.hsprint\n") + file(APPEND ${CTestCustom} " BASIC.longwrds\n") + file(APPEND ${CTestCustom} " BASIC.rstest4\n") + file(APPEND ${CTestCustom} " BASIC.rstest5\n") + file(APPEND ${CTestCustom} " UNIX.getlnhd\n") + file(APPEND ${CTestCustom} " UNIX.pid\n") + file(APPEND ${CTestCustom} " GAWK_EXT.beginfile1\n") + file(APPEND ${CTestCustom} " GAWK_EXT.beginfile2\n") + file(APPEND ${CTestCustom} " GAWK_EXT.charasbytes\n") + file(APPEND ${CTestCustom} " GAWK_EXT.clos1way\n") + file(APPEND ${CTestCustom} " GAWK_EXT.devfd\n") + file(APPEND ${CTestCustom} " GAWK_EXT.devfd1\n") + file(APPEND ${CTestCustom} " GAWK_EXT.devfd2\n") + file(APPEND ${CTestCustom} " GAWK_EXT.getlndir\n") + file(APPEND ${CTestCustom} " GAWK_EXT.posix\n") + file(APPEND ${CTestCustom} " GAWK_EXT.pty1\n") + file(APPEND ${CTestCustom} " INET.inetdayu\n") + file(APPEND ${CTestCustom} " INET.inetdayt\n") + file(APPEND ${CTestCustom} " INET.inetechu\n") + file(APPEND ${CTestCustom} " INET.inetecht\n") + file(APPEND ${CTestCustom} " MACHINE.double2\n") + file(APPEND ${CTestCustom} " LOCALE_CHARSET.fmttest\n") + file(APPEND ${CTestCustom} " LOCALE_CHARSET.lc_num1\n") + file(APPEND ${CTestCustom} " LOCALE_CHARSET.mbfw1\n") file(APPEND ${CTestCustom} " SHLIB.filefuncs\n") file(APPEND ${CTestCustom} " SHLIB.fnmatch\n") file(APPEND ${CTestCustom} " SHLIB.fork\n") -- cgit v1.2.3 From df80d9b911fcfff4c9e2da2d6a820f074108f696 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sat, 11 May 2013 14:32:04 +0200 Subject: Test cases longwrds and charasbytes pass now on MinGW. --- test/CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 8e42c0db..9bb7b228 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -55,14 +55,12 @@ file(APPEND ${CTestCustom} "set(CTEST_CUSTOM_TESTS_IGNORE\n") if(WIN32) file(APPEND ${CTestCustom} " BASIC.exitval2\n") file(APPEND ${CTestCustom} " BASIC.hsprint\n") - file(APPEND ${CTestCustom} " BASIC.longwrds\n") file(APPEND ${CTestCustom} " BASIC.rstest4\n") file(APPEND ${CTestCustom} " BASIC.rstest5\n") file(APPEND ${CTestCustom} " UNIX.getlnhd\n") file(APPEND ${CTestCustom} " UNIX.pid\n") file(APPEND ${CTestCustom} " GAWK_EXT.beginfile1\n") file(APPEND ${CTestCustom} " GAWK_EXT.beginfile2\n") - file(APPEND ${CTestCustom} " GAWK_EXT.charasbytes\n") file(APPEND ${CTestCustom} " GAWK_EXT.clos1way\n") file(APPEND ${CTestCustom} " GAWK_EXT.devfd\n") file(APPEND ${CTestCustom} " GAWK_EXT.devfd1\n") -- cgit v1.2.3 From 31ab1e85c7423384a19575217178f34d54f4be7e Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Thu, 16 May 2013 21:24:38 +0200 Subject: Test case SHLIB.filefuncs now needs a file named gawkapi.o. --- test/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 9bb7b228..3c3b88b0 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -41,15 +41,15 @@ foreach(testgroup ${ALL_GROUPS} ) string(REGEX REPLACE " " ";" ONE_GROUP "${ONE_GROUP}") # Use each name of a test case to start a script that executes the test case. foreach(testcase ${ONE_GROUP} ) - add_test("${testgroup}.${testcase}" ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk${CMAKE_EXECUTABLE_SUFFIX} ${testcase}${file_suffix} ) + add_test("${testgroup}.${testcase}" ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk${CMAKE_EXECUTABLE_SUFFIX} ${testcase}) endforeach(testcase) endforeach(testgroup) # Create an empty configuration file for customizing test execution. set(CTestCustom ${CMAKE_BINARY_DIR}/CTestCustom.cmake) file(WRITE ${CTestCustom} "# DO NOT EDIT, THIS FILE WILL BE OVERWRITTEN\n" ) -# Test case SHLIB.filefuncs needs the gawk exe in source directory. -file(APPEND ${CTestCustom} "file(COPY ${CMAKE_BINARY_DIR}/gawk${CMAKE_EXECUTABLE_SUFFIX} DESTINATION ${CMAKE_SOURCE_DIR})\n") +# Test case SHLIB.filefuncs needs a file named gawkapi.o in source directory. +file(APPEND ${CTestCustom} "file(COPY ${CMAKE_SOURCE_DIR}/README DESTINATION ${CMAKE_SOURCE_DIR}/gawkapi.o)\n") # Exclude test cases from execution that make no sense on a certain platform. file(APPEND ${CTestCustom} "set(CTEST_CUSTOM_TESTS_IGNORE\n") if(WIN32) -- cgit v1.2.3 From 1a4fe61b7ad390740a0c70a0175b82301c083704 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Mon, 20 May 2013 15:58:53 +0200 Subject: CMake and MinGW can build 7 out of 11 extension; 10 out of 18 test SHLIB cases pass. --- test/CMakeLists.txt | 3 --- 1 file changed, 3 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3c3b88b0..fee5eeca 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -82,9 +82,6 @@ if(WIN32) file(APPEND ${CTestCustom} " SHLIB.fork2\n") file(APPEND ${CTestCustom} " SHLIB.fts\n") file(APPEND ${CTestCustom} " SHLIB.functab4\n") - file(APPEND ${CTestCustom} " SHLIB.inplace1\n") - file(APPEND ${CTestCustom} " SHLIB.inplace2\n") - file(APPEND ${CTestCustom} " SHLIB.inplace3\n") file(APPEND ${CTestCustom} " SHLIB.readdir\n") file(APPEND ${CTestCustom} " SHLIB.revtwoway\n") file(APPEND ${CTestCustom} " SHLIB.rwarray\n") -- cgit v1.2.3 From 52306503277c1259eeb704d6b94aed0392536e76 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Tue, 12 Aug 2014 06:22:43 +0300 Subject: Rebuild record upon OFS being changed. --- test/ChangeLog | 4 ++++ test/ofs1.ok | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/ChangeLog b/test/ChangeLog index afbccf5f..d396a049 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,7 @@ +2014-08-12 Arnold D. Robbins + + * ofs1.ok: Updated to match corrected behavior in gawk. + 2014-08-05 Arnold D. Robbins * Makefile.am (mpfrsqrt): New test. diff --git a/test/ofs1.ok b/test/ofs1.ok index a3a8ca7b..d01fa161 100644 --- a/test/ofs1.ok +++ b/test/ofs1.ok @@ -1,7 +1,7 @@ -a:x:c +a x c a x c a x c a -a:x:c a x c -a:x:c +a x c +a x c -- cgit v1.2.3