[Top][All Lists]

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

[gawk-diffs] [SCM] gawk branch, cmake, updated. 291ff169ddc21abd09e1b46c

From: Juergen Kahrs
Subject: [gawk-diffs] [SCM] gawk branch, cmake, updated. 291ff169ddc21abd09e1b46c69eddd56edd31899
Date: Mon, 29 Apr 2013 15:19:25 +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  291ff169ddc21abd09e1b46c69eddd56edd31899 (commit)
      from  11c996c675afa475d46834b2b09039097e25afb5 (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 -----------------------------------------------------------------

commit 291ff169ddc21abd09e1b46c69eddd56edd31899
Author: Juergen Kahrs <address@hidden>
Date:   Mon Apr 29 17:18:13 2013 +0200

    The list of tests is now generated with functions supplied by CMake; an awk 
interpreter is not needed any more.

diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index ba1cc5c..96008d5 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -24,14 +24,10 @@
 ## process this file with CMake to produce Makefile
-  COMMAND awk /:$/ Maketests
-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 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)


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


reply via email to

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