summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/CPack
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-03 08:22:30 -0400
committerBrad King <brad.king@kitware.com>2020-07-03 08:30:42 -0400
commitb33283a282da4afbf75b66390012b9ac73d13444 (patch)
tree3ad3ff0b632a167d96203651c51fadce9fcfd1a4 /Tests/RunCMake/CPack
parent12497c56a9bdf69f06543de31237091540216c3f (diff)
downloadcmake-b33283a282da4afbf75b66390012b9ac73d13444.tar.gz
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 0000000000..c1da71171b
--- /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 d829d93a26..0000000000
--- 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 59c1496690..010e14c737 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"