summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/README.txt
diff options
context:
space:
mode:
authorDomen Vrankar <domen.vrankar@gmail.com>2016-05-10 13:40:48 (GMT)
committerBrad King <brad.king@kitware.com>2016-05-13 14:46:05 (GMT)
commit7e940bf74ab3496b0d89a55cf7c48dc1b15bc8ce (patch)
treeed31100dd5f82df26f2650a53f478ad0bbd5d91e /Tests/RunCMake/CPack/README.txt
parent3b648894366f86c94d4567811acb9549a81660ec (diff)
downloadCMake-7e940bf74ab3496b0d89a55cf7c48dc1b15bc8ce.zip
CMake-7e940bf74ab3496b0d89a55cf7c48dc1b15bc8ce.tar.gz
CMake-7e940bf74ab3496b0d89a55cf7c48dc1b15bc8ce.tar.bz2
CPack/Deb test changes due to breaking changes
New CPack/Deb tests and changes to old tests as package file names and inter component dependency detection was changed.
Diffstat (limited to 'Tests/RunCMake/CPack/README.txt')
-rw-r--r--Tests/RunCMake/CPack/README.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPack/README.txt b/Tests/RunCMake/CPack/README.txt
index ea68304..5c86880 100644
--- a/Tests/RunCMake/CPack/README.txt
+++ b/Tests/RunCMake/CPack/README.txt
@@ -1,6 +1,9 @@
RunCMake.CPack is a test module that is intended for testing of package
generators that can be validated from command line.
+TODO: all tests should cover all packaging types (single package, grouped and
+ component packaging)
+
-------------
Adding a test
-------------
@@ -19,10 +22,29 @@ run_cpack_test(<test_name> "<generator_name>")
will be run for all listed generators.
Test consists of
+- test prerequirements phase (optional)
- CMake execution phase
- CPack execution phase
- verification of generated files
+test prerequirements phase (optional):
+--------------------------------------
+
+In some cases individual tests for certain generator need additional
+prerequirements met.
+
+In such cases '<generator_name>/<test_name>-Prerequirements.cmake' file
+containing 'function(get_test_prerequirements found_var)' should be created.
+Function should return true if all prerequirements are met.
+
+If prerequirements are not met test will be skipped outputting
+'<test_name> - SKIPPED' string. Note that this doesn't fail the entire test
+group.
+
+TODO: skipped tests should provide expected error string so test should fail
+ if error string is not found in the output of run test (this would add
+ 'EXPECTED FAIL' string on success and 'ERROR' on failure).
+
CMake execution phase:
----------------------