[Top][All Lists]

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

[gawk-diffs] [SCM] gawk branch, cmake, updated. gawk-4.1.0-77-g61f18b3

From: Juergen Kahrs
Subject: [gawk-diffs] [SCM] gawk branch, cmake, updated. gawk-4.1.0-77-g61f18b3
Date: Sat, 11 May 2013 08:48:50 +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  61f18b3aac9acf83f06163e37461eea5d915523b (commit)
      from  79c40aa674b3d723cc646a14984d095abff2fa06 (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 61f18b3aac9acf83f06163e37461eea5d915523b
Author: Juergen Kahrs <address@hidden>
Date:   Sat May 11 10:48:41 2013 +0200

    Generated file CTestCustom.cmake contains test cases that shall be skipped.

diff --git a/cmake/README.txt b/cmake/README.txt
index 60dde15..451f2a6 100644
--- a/cmake/README.txt
+++ b/cmake/README.txt
@@ -79,3 +79,17 @@ and several other files).
    Proceed as describe above for cross-compilers.
    The command "make ; make package" will build gawk.exe and the installer file
+- How can I run test cases ?
+You can run all the test cases that are defined in test/
+These test case scripts were not changed, but the way they are invoked has
+been adapted to CMake habits.
+  cmake ..
+  make
+  make test          # run all test cases
+  ctest -N           # list all test cases but don't run them
+  ctest -R BASIC     # run all test case belonging to group BASIC
+  ctest -R MPFR      # run all test case belonging to group MPFR
+  ctest -E SHLIB.filefunc # run all tests, except the SHLIB.filefunc test case
+Remember that running test cases is possible only after a native build.
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 3aceece..073ca61 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} )
+# Create an empty configuration file for customizing test execution.
+set(CTestCustom ${CMAKE_BINARY_DIR}/CTestCustom.cmake)
+# Exclude test cases from execution that make no sense on a certain platform.
+file(APPEND ${CTestCustom} "set(CTEST_CUSTOM_TESTS_IGNORE\n")
+  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")
+file(APPEND ${CTestCustom} ")\n")


Summary of changes:
 cmake/README.txt    |   14 ++++++++++++++
 test/CMakeLists.txt |   22 ++++++++++++++++++++++
 2 files changed, 36 insertions(+), 0 deletions(-)


reply via email to

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