summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/String-TIMESTAMP-AllSpecifiers.cmake
diff options
context:
space:
mode:
authorNils Gladitz <gladitz@scivis.de>2012-10-05 19:55:07 (GMT)
committerDavid Cole <david.cole@kitware.com>2012-12-05 15:39:10 (GMT)
commit711e2b3b5c674d4f754b5b214d511be6ce7e8f4d (patch)
treeeac34a0d730f835f60e4fb28cc0e039c30298d3d /Tests/CMakeTests/String-TIMESTAMP-AllSpecifiers.cmake
parent2bb2745fa8c260d12aca33d2e1fd26a92d3bfa6b (diff)
downloadCMake-711e2b3b5c674d4f754b5b214d511be6ce7e8f4d.zip
CMake-711e2b3b5c674d4f754b5b214d511be6ce7e8f4d.tar.gz
CMake-711e2b3b5c674d4f754b5b214d511be6ce7e8f4d.tar.bz2
CMake: Add TIMESTAMP subcommand to string and file commands
Diffstat (limited to 'Tests/CMakeTests/String-TIMESTAMP-AllSpecifiers.cmake')
-rw-r--r--Tests/CMakeTests/String-TIMESTAMP-AllSpecifiers.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/CMakeTests/String-TIMESTAMP-AllSpecifiers.cmake b/Tests/CMakeTests/String-TIMESTAMP-AllSpecifiers.cmake
new file mode 100644
index 0000000..2d0fcc8
--- /dev/null
+++ b/Tests/CMakeTests/String-TIMESTAMP-AllSpecifiers.cmake
@@ -0,0 +1,11 @@
+string(TIMESTAMP output "%d;%H;%I;%j;%m;%M;%S;%U;%w;%y;%Y")
+message("~${output}~")
+
+list(LENGTH output output_length)
+
+set(expected_output_length 11)
+
+if(NOT output_length EQUAL ${expected_output_length})
+ message(FATAL_ERROR "expected ${expected_output_length} entries in output "
+ "with all specifiers; found ${output_length}")
+endif()