summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-03 12:22:30 (GMT)
committerBrad King <brad.king@kitware.com>2020-07-03 12:30:42 (GMT)
commitb33283a282da4afbf75b66390012b9ac73d13444 (patch)
tree3ad3ff0b632a167d96203651c51fadce9fcfd1a4 /Tests/RunCMake/CPack
parent12497c56a9bdf69f06543de31237091540216c3f (diff)
downloadCMake-b33283a282da4afbf75b66390012b9ac73d13444.zip
CMake-b33283a282da4afbf75b66390012b9ac73d13444.tar.gz
CMake-b33283a282da4afbf75b66390012b9ac73d13444.tar.bz2
Tests: Cover using RTF for DMG SLAs
Diffstat (limited to 'Tests/RunCMake/CPack')
-rw-r--r--Tests/RunCMake/CPack/tests/DMG_SLA/English.license.rtf7
-rw-r--r--Tests/RunCMake/CPack/tests/DMG_SLA/English.license.txt3
-rw-r--r--Tests/RunCMake/CPack/tests/DMG_SLA/VerifyResult.cmake8
3 files changed, 11 insertions, 7 deletions
diff --git a/Tests/RunCMake/CPack/tests/DMG_SLA/English.license.rtf b/Tests/RunCMake/CPack/tests/DMG_SLA/English.license.rtf
new file mode 100644
index 0000000..c1da711
--- /dev/null
+++ b/Tests/RunCMake/CPack/tests/DMG_SLA/English.license.rtf
@@ -0,0 +1,7 @@
+{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1033{\fonttbl{\f0\fnil\fcharset0 Calibri;}}
+{\colortbl ;\red0\green0\blue255;}
+{\*\generator Riched20 10.0.18362}\viewkind4\uc1
+\pard\sa200\sl276\slmult1\b\f0\fs22\lang9 LICENSE\b0\par
+This is an installer created using CPack ({{\field{\*\fldinst{HYPERLINK https://cmake.org }}{\fldrslt{https://cmake.org\ul0\cf0}}}}\f0\fs22 ). No license provided.\par
+\par
+}
diff --git a/Tests/RunCMake/CPack/tests/DMG_SLA/English.license.txt b/Tests/RunCMake/CPack/tests/DMG_SLA/English.license.txt
deleted file mode 100644
index d829d93..0000000
--- a/Tests/RunCMake/CPack/tests/DMG_SLA/English.license.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-LICENSE
--------
-This is an installer created using CPack (https://cmake.org). No license provided.
diff --git a/Tests/RunCMake/CPack/tests/DMG_SLA/VerifyResult.cmake b/Tests/RunCMake/CPack/tests/DMG_SLA/VerifyResult.cmake
index 59c1496..010e14c 100644
--- a/Tests/RunCMake/CPack/tests/DMG_SLA/VerifyResult.cmake
+++ b/Tests/RunCMake/CPack/tests/DMG_SLA/VerifyResult.cmake
@@ -4,7 +4,7 @@ if(NOT res EQUAL 0)
string(REPLACE "\n" "\n " err " ${err}")
message(FATAL_ERROR "Running 'hdiutil udifderez -xml' on\n ${dmg}\nfailed with:\n${err}")
endif()
-foreach(key "LPic" "STR#" "TEXT")
+foreach(key "LPic" "STR#" "TEXT" "RTF ")
if(NOT out MATCHES "<key>${key}</key>")
string(REPLACE "\n" "\n " out " ${out}")
message(FATAL_ERROR "error: running 'hdiutil udifderez -xml' on\n ${dmg}\ndid not show '${key}' key:\n${out}")
@@ -19,9 +19,9 @@ foreach(line
# STR# German first and last base64 lines
"\tAAkGR2VybWFuC0FremVwdGllcmVuCEFibGVobmVuB0RydWNrZW4M\n"
"\tYXVzZ2V3wopobHQgaXN0Lg==\n"
- # TEXT English first and last base64 lines
- "\tTElDRU5TRQ0tLS0tLS0tDVRoaXMgaXMgYW4gaW5zdGFsbGVyIGNy\n"
- "\tTm8gbGljZW5zZSBwcm92aWRlZC4NDQ==\n"
+ # RTF English first and last base64 lines
+ "\te1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZGVmZjBcbm91aWNvbXBh\n"
+ "\tdmlkZWQuXHBhcg1ccGFyDX0NDQ==\n"
# TEXT German first and last base64 lines
"\tTElaRU5aDS0tLS0tLQ1EaWVzIGlzdCBlaW4gSW5zdGFsbGF0aW9u\n"
"\tZ2ViZW4uDQ0=\n"