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. 4522cf0e0ff06a7eecde4805


From: Juergen Kahrs
Subject: [gawk-diffs] [SCM] gawk branch, cmake, updated. 4522cf0e0ff06a7eecde480505bf8c2591bf5fa3
Date: Fri, 08 Feb 2013 23:30:11 +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  4522cf0e0ff06a7eecde480505bf8c2591bf5fa3 (commit)
      from  a8e112a6707877ce24f9560104d157409942b957 (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=4522cf0e0ff06a7eecde480505bf8c2591bf5fa3

commit 4522cf0e0ff06a7eecde480505bf8c2591bf5fa3
Author: Juergen Kahrs <address@hidden>
Date:   Sat Feb 9 00:29:55 2013 +0100

    Target 'check' replaced by target 'test' because CMake's test automation 
works that way. A few test cases already inserted, a significant amount fails.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 07c6d34..07edfca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -271,6 +271,7 @@ add_executable (gawk ${GAWK_SOURCES})
 target_link_libraries (gawk m ${EXTRA_LIBS})
 
 if(NOT ${CMAKE_CROSSCOMPILING} STREQUAL "TRUE")
+  enable_testing()
   add_subdirectory(test)
   add_subdirectory(doc)
 endif()
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index d54aad1..1b7c417 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)
 

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

Summary of changes:
 CMakeLists.txt      |    1 +
 test/CMakeLists.txt |   12 +++++-------
 2 files changed, 6 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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