diff options
author | Brad King <brad.king@kitware.com> | 2015-01-27 16:36:45 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-01-27 16:36:45 (GMT) |
commit | a47b904db242abb903a968bd6109bc8a07d3c39a (patch) | |
tree | d8338d1db985fd98956688244d746e808a83bd3e /Tests | |
parent | c1f5d6e6f54f8b61d223476459970d336098429c (diff) | |
parent | 1f77a7001b2e3f8f9224cb603e5acfee45573064 (diff) | |
download | CMake-a47b904db242abb903a968bd6109bc8a07d3c39a.zip CMake-a47b904db242abb903a968bd6109bc8a07d3c39a.tar.gz CMake-a47b904db242abb903a968bd6109bc8a07d3c39a.tar.bz2 |
Merge topic 'file-strings-utf-16'
1f77a700 file: Teach STRINGS to support UTF-16 and UTF-32 encodings
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/string/RunCMakeTest.cmake | 5 | ||||
-rw-r--r-- | Tests/RunCMake/string/UTF-16BE-stderr.txt | 2 | ||||
-rw-r--r-- | Tests/RunCMake/string/UTF-16BE.cmake | 4 | ||||
-rw-r--r-- | Tests/RunCMake/string/UTF-16BE.txt | bin | 0 -> 83 bytes | |||
-rw-r--r-- | Tests/RunCMake/string/UTF-16LE-stderr.txt | 2 | ||||
-rw-r--r-- | Tests/RunCMake/string/UTF-16LE.cmake | 4 | ||||
-rw-r--r-- | Tests/RunCMake/string/UTF-16LE.txt | bin | 0 -> 83 bytes | |||
-rw-r--r-- | Tests/RunCMake/string/UTF-32BE-stderr.txt | 2 | ||||
-rw-r--r-- | Tests/RunCMake/string/UTF-32BE.cmake | 4 | ||||
-rw-r--r-- | Tests/RunCMake/string/UTF-32BE.txt | bin | 0 -> 165 bytes | |||
-rw-r--r-- | Tests/RunCMake/string/UTF-32LE-stderr.txt | 2 | ||||
-rw-r--r-- | Tests/RunCMake/string/UTF-32LE.cmake | 4 | ||||
-rw-r--r-- | Tests/RunCMake/string/UTF-32LE.txt | bin | 0 -> 165 bytes |
13 files changed, 29 insertions, 0 deletions
diff --git a/Tests/RunCMake/string/RunCMakeTest.cmake b/Tests/RunCMake/string/RunCMakeTest.cmake index fc913c6..89f7ea5 100644 --- a/Tests/RunCMake/string/RunCMakeTest.cmake +++ b/Tests/RunCMake/string/RunCMakeTest.cmake @@ -12,3 +12,8 @@ run_cmake(UuidMissingTypeValue) run_cmake(UuidBadType) run_cmake(RegexClear) + +run_cmake(UTF-16BE) +run_cmake(UTF-16LE) +run_cmake(UTF-32BE) +run_cmake(UTF-32LE) diff --git a/Tests/RunCMake/string/UTF-16BE-stderr.txt b/Tests/RunCMake/string/UTF-16BE-stderr.txt new file mode 100644 index 0000000..8254f87 --- /dev/null +++ b/Tests/RunCMake/string/UTF-16BE-stderr.txt @@ -0,0 +1,2 @@ +Hello World +Hello World diff --git a/Tests/RunCMake/string/UTF-16BE.cmake b/Tests/RunCMake/string/UTF-16BE.cmake new file mode 100644 index 0000000..da986c0 --- /dev/null +++ b/Tests/RunCMake/string/UTF-16BE.cmake @@ -0,0 +1,4 @@ +file(STRINGS UTF-16BE.txt str ENCODING UTF-16BE LENGTH_MINIMUM 4) +message("${str}") +file(STRINGS UTF-16BE.txt str LENGTH_MINIMUM 4) +message("${str}") diff --git a/Tests/RunCMake/string/UTF-16BE.txt b/Tests/RunCMake/string/UTF-16BE.txt Binary files differnew file mode 100644 index 0000000..9d976bc --- /dev/null +++ b/Tests/RunCMake/string/UTF-16BE.txt diff --git a/Tests/RunCMake/string/UTF-16LE-stderr.txt b/Tests/RunCMake/string/UTF-16LE-stderr.txt new file mode 100644 index 0000000..8254f87 --- /dev/null +++ b/Tests/RunCMake/string/UTF-16LE-stderr.txt @@ -0,0 +1,2 @@ +Hello World +Hello World diff --git a/Tests/RunCMake/string/UTF-16LE.cmake b/Tests/RunCMake/string/UTF-16LE.cmake new file mode 100644 index 0000000..326d848 --- /dev/null +++ b/Tests/RunCMake/string/UTF-16LE.cmake @@ -0,0 +1,4 @@ +file(STRINGS UTF-16LE.txt str ENCODING UTF-16LE LENGTH_MINIMUM 4) +message("${str}") +file(STRINGS UTF-16LE.txt str LENGTH_MINIMUM 4) +message("${str}") diff --git a/Tests/RunCMake/string/UTF-16LE.txt b/Tests/RunCMake/string/UTF-16LE.txt Binary files differnew file mode 100644 index 0000000..ebba874 --- /dev/null +++ b/Tests/RunCMake/string/UTF-16LE.txt diff --git a/Tests/RunCMake/string/UTF-32BE-stderr.txt b/Tests/RunCMake/string/UTF-32BE-stderr.txt new file mode 100644 index 0000000..8254f87 --- /dev/null +++ b/Tests/RunCMake/string/UTF-32BE-stderr.txt @@ -0,0 +1,2 @@ +Hello World +Hello World diff --git a/Tests/RunCMake/string/UTF-32BE.cmake b/Tests/RunCMake/string/UTF-32BE.cmake new file mode 100644 index 0000000..debdeaa --- /dev/null +++ b/Tests/RunCMake/string/UTF-32BE.cmake @@ -0,0 +1,4 @@ +file(STRINGS UTF-32BE.txt str ENCODING UTF-32BE LENGTH_MINIMUM 4) +message("${str}") +file(STRINGS UTF-32BE.txt str LENGTH_MINIMUM 4) +message("${str}") diff --git a/Tests/RunCMake/string/UTF-32BE.txt b/Tests/RunCMake/string/UTF-32BE.txt Binary files differnew file mode 100644 index 0000000..6725fbb --- /dev/null +++ b/Tests/RunCMake/string/UTF-32BE.txt diff --git a/Tests/RunCMake/string/UTF-32LE-stderr.txt b/Tests/RunCMake/string/UTF-32LE-stderr.txt new file mode 100644 index 0000000..8254f87 --- /dev/null +++ b/Tests/RunCMake/string/UTF-32LE-stderr.txt @@ -0,0 +1,2 @@ +Hello World +Hello World diff --git a/Tests/RunCMake/string/UTF-32LE.cmake b/Tests/RunCMake/string/UTF-32LE.cmake new file mode 100644 index 0000000..22aab5f --- /dev/null +++ b/Tests/RunCMake/string/UTF-32LE.cmake @@ -0,0 +1,4 @@ +file(STRINGS UTF-32LE.txt str ENCODING UTF-32LE LENGTH_MINIMUM 4) +message("${str}") +file(STRINGS UTF-32LE.txt str LENGTH_MINIMUM 4) +message("${str}") diff --git a/Tests/RunCMake/string/UTF-32LE.txt b/Tests/RunCMake/string/UTF-32LE.txt Binary files differnew file mode 100644 index 0000000..cf5102f --- /dev/null +++ b/Tests/RunCMake/string/UTF-32LE.txt |