gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gawk-diffs] [SCM] gawk branch, cmake, updated. 1fa5be5e29fb1a7096173be2


From: Juergen Kahrs
Subject: [gawk-diffs] [SCM] gawk branch, cmake, updated. 1fa5be5e29fb1a7096173be2b76c4b83d8e41b28
Date: Sun, 10 Feb 2013 16:16:51 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, cmake has been updated
       via  1fa5be5e29fb1a7096173be2b76c4b83d8e41b28 (commit)
      from  5f280f8854de0652f8fb53c6bcf4e63ad189cb0b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=1fa5be5e29fb1a7096173be2b76c4b83d8e41b28

commit 1fa5be5e29fb1a7096173be2b76c4b83d8e41b28
Author: Juergen Kahrs <address@hidden>
Date:   Sun Feb 10 17:16:25 2013 +0100

    All 265 basic test cases pass now.

diff --git a/cmake/basictest b/cmake/basictest
index 86f6ff6..42cb286 100755
--- a/cmake/basictest
+++ b/cmake/basictest
@@ -6,9 +6,9 @@ export AWKLIBPATH=${TESTHOME}/../build/extension/
 export LANG=C
 if test -r ${TESTHOME}/${2}.in
 then
-  $1 -f ${2}.awk  < ${TESTHOME}/${2}.in > ${TESTHOME}/_${2} 2>&1 || echo EXIT 
CODE: $? >> ${TESTHOME}/_${2}
+  $1 $3 -f ${2}.awk  < ${TESTHOME}/${2}.in > ${TESTHOME}/_${2} 2>&1 || echo 
EXIT CODE: $? >> ${TESTHOME}/_${2}
 else
-  $1 -f ${2}.awk                        > ${TESTHOME}/_${2} 2>&1 || echo EXIT 
CODE: $? >> ${TESTHOME}/_${2}
+  $1 $3 -f ${2}.awk                        > ${TESTHOME}/_${2} 2>&1 || echo 
EXIT CODE: $? >> ${TESTHOME}/_${2}
 fi
 cmp ${TESTHOME}/${2}.ok ${TESTHOME}/_${2} && rm -f ${TESTHOME}/_${2}
 
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 06ea131..5f36c75 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)
 

-----------------------------------------------------------------------

Summary of changes:
 cmake/basictest     |    4 ++--
 test/CMakeLists.txt |   18 +++++++++++++++---
 2 files changed, 17 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]