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. a8e112a6707877ce24f95601


From: Juergen Kahrs
Subject: [gawk-diffs] [SCM] gawk branch, cmake, updated. a8e112a6707877ce24f9560104d157409942b957
Date: Fri, 08 Feb 2013 21:22:43 +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  a8e112a6707877ce24f9560104d157409942b957 (commit)
      from  f672202ff2ec279e5c3260e8810a4ccc213a5876 (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=a8e112a6707877ce24f9560104d157409942b957

commit a8e112a6707877ce24f9560104d157409942b957
Author: Juergen Kahrs <address@hidden>
Date:   Fri Feb 8 22:22:30 2013 +0100

    New target 'check' is a very crude first step toward testing that will soon 
disappear.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a67ed2a..07c6d34 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -270,8 +270,7 @@ set (GAWK_SOURCES ${GAWK_SOURCES}
 add_executable (gawk ${GAWK_SOURCES})
 target_link_libraries (gawk m ${EXTRA_LIBS})
 
-if(${CMAKE_CROSSCOMPILING} STREQUAL "TRUE")
-else()
+if(NOT ${CMAKE_CROSSCOMPILING} STREQUAL "TRUE")
   add_subdirectory(test)
   add_subdirectory(doc)
 endif()
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 2ed7220..d54aad1 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
+)
+

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

Summary of changes:
 CMakeLists.txt      |    3 +--
 test/CMakeLists.txt |    8 ++++++++
 2 files changed, 9 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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