aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJuergen Kahrs <Juergen.Kahrs@googlemail.com>2013-05-11 12:27:47 +0200
committerJuergen Kahrs <Juergen.Kahrs@googlemail.com>2013-05-11 12:27:47 +0200
commit3582c0812a82986ddd6959c28db520dc376e39e0 (patch)
treef020f0adee6e6c2e245cd7cd5dac599f59c45ce4 /test
parent61f18b3aac9acf83f06163e37461eea5d915523b (diff)
downloadegawk-3582c0812a82986ddd6959c28db520dc376e39e0.tar.gz
egawk-3582c0812a82986ddd6959c28db520dc376e39e0.tar.bz2
egawk-3582c0812a82986ddd6959c28db520dc376e39e0.zip
Test case SHLIB.filefuncs needs the gawk exe in source directory.
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 073ca61b..d39bae91 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -41,13 +41,15 @@ foreach(testgroup ${ALL_GROUPS} )
string(REGEX REPLACE " " ";" ONE_GROUP "${ONE_GROUP}")
# Use each name of a test case to start a script that executes the test case.
foreach(testcase ${ONE_GROUP} )
- add_test("${testgroup}.${testcase}" ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk ${testcase}${file_suffix} )
+ add_test("${testgroup}.${testcase}" ${SHELL_PREFIX} ${CMAKE_SOURCE_DIR}/cmake/basictest ${CMAKE_BINARY_DIR}/gawk${CMAKE_EXECUTABLE_SUFFIX} ${testcase}${file_suffix} )
endforeach(testcase)
endforeach(testgroup)
# Create an empty configuration file for customizing test execution.
set(CTestCustom ${CMAKE_BINARY_DIR}/CTestCustom.cmake)
file(WRITE ${CTestCustom} "# DO NOT EDIT, THIS FILE WILL BE OVERWRITTEN\n" )
+# Test case SHLIB.filefuncs needs the gawk exe in source directory.
+file(APPEND ${CTestCustom} "file(COPY ${CMAKE_BINARY_DIR}/gawk${CMAKE_EXECUTABLE_SUFFIX} DESTINATION ${CMAKE_SOURCE_DIR})\n")
# Exclude test cases from execution that make no sense on a certain platform.
file(APPEND ${CTestCustom} "set(CTEST_CUSTOM_TESTS_IGNORE\n")
if(WIN32)