aboutsummaryrefslogtreecommitdiff
path: root/tests/data/CMakeLists.txt
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-10-13 00:00:39 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-10-13 11:50:21 +0200
commit476499c75c83ffa3d65da398b5759a5f2fdb980d (patch)
tree58b04a3961543e4f56f18753a2e8d5615b784467 /tests/data/CMakeLists.txt
parentaec7c5a87c8482b6ddffa352d7d220698652262e (diff)
tests: move TESTCASES to Makefile.inc, add show for cmake
This change allows runtests.pl to be run from the CMake builddir: export srcdir=/tmp/curl/tests; perl -I$srcdir $srcdir/runtests.pl -l In order to make this possible, all test cases have been moved from Makefile.am to Makefile.inc. Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'tests/data/CMakeLists.txt')
-rw-r--r--tests/data/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/data/CMakeLists.txt b/tests/data/CMakeLists.txt
new file mode 100644
index 000000000..dec92e544
--- /dev/null
+++ b/tests/data/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Loads 'TESTCASES' from for the 'make show' target in runtests.pl
+transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
+include("${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
+
+# Prints all available test cases. Do not quote TESTCASES, it must be displayed
+# as a space-separated string rather than comma-separated (a list in CMake).
+add_custom_target(show COMMAND echo ${TESTCASES})