summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Ninja
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-26 20:11:40 (GMT)
committerBrad King <brad.king@kitware.com>2023-01-28 12:16:58 (GMT)
commitd6e7e4d4a1844af15c005dab2db6237464ad160d (patch)
treedffd5a3bec1c87ae8e235fbdee6547315593e31c /Tests/RunCMake/Ninja
parent9596305c0b78b1589703bcd4ace1e764e27dd630 (diff)
downloadCMake-d6e7e4d4a1844af15c005dab2db6237464ad160d.zip
CMake-d6e7e4d4a1844af15c005dab2db6237464ad160d.tar.gz
CMake-d6e7e4d4a1844af15c005dab2db6237464ad160d.tar.bz2
Tests: Extend RunCMake.Ninja ShowIncludes cases to cover more languages
Add cases for English, French, German, and Japanese.
Diffstat (limited to 'Tests/RunCMake/Ninja')
-rw-r--r--Tests/RunCMake/Ninja/RunCMakeTest.cmake8
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-437-English-check.cmake3
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-437-English-stdout.txt1
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-437-English.cmake3
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-437-French-check.cmake3
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-437-French-stdout.txt1
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-437-French.cmake3
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-437-German-check.cmake3
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-437-German-stdout.txt1
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-437-German.cmake3
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-65001-French-check.cmake3
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-65001-French-stdout.txt1
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-65001-French.cmake3
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-65001-Japanese-check.cmake3
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-65001-Japanese-stdout.txt1
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-65001-Japanese.cmake3
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-932-Japanese-check.cmake3
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-932-Japanese-stdout.txt1
-rw-r--r--Tests/RunCMake/Ninja/ShowIncludes-932-Japanese.cmake3
19 files changed, 50 insertions, 0 deletions
diff --git a/Tests/RunCMake/Ninja/RunCMakeTest.cmake b/Tests/RunCMake/Ninja/RunCMakeTest.cmake
index 73a9d15..d63c0c4 100644
--- a/Tests/RunCMake/Ninja/RunCMakeTest.cmake
+++ b/Tests/RunCMake/Ninja/RunCMakeTest.cmake
@@ -46,8 +46,16 @@ if(WIN32)
if(RunCMake_MAKE_PROGRAM)
set(maybe_MAKE_PROGRAM "-DRunCMake_MAKE_PROGRAM=${RunCMake_MAKE_PROGRAM}")
endif()
+ run_cmake_script(ShowIncludes-437-English -DshowIncludes=${showIncludes} ${maybe_MAKE_PROGRAM})
+ run_cmake_script(ShowIncludes-437-French -DshowIncludes=${showIncludes} ${maybe_MAKE_PROGRAM})
+ run_cmake_script(ShowIncludes-437-German -DshowIncludes=${showIncludes} ${maybe_MAKE_PROGRAM})
run_cmake_script(ShowIncludes-54936-Chinese -DshowIncludes=${showIncludes} ${maybe_MAKE_PROGRAM})
run_cmake_script(ShowIncludes-65001-Chinese -DshowIncludes=${showIncludes} ${maybe_MAKE_PROGRAM})
+ run_cmake_script(ShowIncludes-65001-French -DshowIncludes=${showIncludes} ${maybe_MAKE_PROGRAM})
+ run_cmake_script(ShowIncludes-65001-Japanese -DshowIncludes=${showIncludes} ${maybe_MAKE_PROGRAM})
+ if(NOT CMake_TEST_NO_CODEPAGE_9xx)
+ run_cmake_script(ShowIncludes-932-Japanese -DshowIncludes=${showIncludes} ${maybe_MAKE_PROGRAM})
+ endif()
unset(maybe_MAKE_PROGRAM)
endif()
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-437-English-check.cmake b/Tests/RunCMake/Ninja/ShowIncludes-437-English-check.cmake
new file mode 100644
index 0000000..9338709
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-437-English-check.cmake
@@ -0,0 +1,3 @@
+# 'cl /showIncludes' prefix with 'VSLANG=1033' and 'chcp 437'.
+set(expect "Note: including file: ")
+include(${CMAKE_CURRENT_LIST_DIR}/ShowIncludes-check.cmake)
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-437-English-stdout.txt b/Tests/RunCMake/Ninja/ShowIncludes-437-English-stdout.txt
new file mode 100644
index 0000000..bda7eab
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-437-English-stdout.txt
@@ -0,0 +1 @@
+-- showIncludes='Note: including file: '
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-437-English.cmake b/Tests/RunCMake/Ninja/ShowIncludes-437-English.cmake
new file mode 100644
index 0000000..194b637
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-437-English.cmake
@@ -0,0 +1,3 @@
+set(CODEPAGE 437)
+set(VSLANG 1033)
+include(${CMAKE_CURRENT_LIST_DIR}/ShowIncludes.cmake)
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-437-French-check.cmake b/Tests/RunCMake/Ninja/ShowIncludes-437-French-check.cmake
new file mode 100644
index 0000000..64b0498
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-437-French-check.cmake
@@ -0,0 +1,3 @@
+# 'cl /showIncludes' prefix with 'VSLANG=1036' and 'chcp 437'.
+string(ASCII 82 101 109 97 114 113 117 101 255 58 32 105 110 99 108 117 115 105 111 110 32 100 117 32 102 105 99 104 105 101 114 255 58 32 32 expect)
+include(${CMAKE_CURRENT_LIST_DIR}/ShowIncludes-check.cmake)
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-437-French-stdout.txt b/Tests/RunCMake/Ninja/ShowIncludes-437-French-stdout.txt
new file mode 100644
index 0000000..1a830f1
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-437-French-stdout.txt
@@ -0,0 +1 @@
+-- showIncludes='Remarque : inclusion du fichier : '
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-437-French.cmake b/Tests/RunCMake/Ninja/ShowIncludes-437-French.cmake
new file mode 100644
index 0000000..9fe4055
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-437-French.cmake
@@ -0,0 +1,3 @@
+set(CODEPAGE 437)
+set(VSLANG 1036)
+include(${CMAKE_CURRENT_LIST_DIR}/ShowIncludes.cmake)
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-437-German-check.cmake b/Tests/RunCMake/Ninja/ShowIncludes-437-German-check.cmake
new file mode 100644
index 0000000..c1418e3
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-437-German-check.cmake
@@ -0,0 +1,3 @@
+# 'cl /showIncludes' prefix with 'VSLANG=1031' and 'chcp 437'.
+set(expect "Hinweis: Einlesen der Datei: ")
+include(${CMAKE_CURRENT_LIST_DIR}/ShowIncludes-check.cmake)
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-437-German-stdout.txt b/Tests/RunCMake/Ninja/ShowIncludes-437-German-stdout.txt
new file mode 100644
index 0000000..9b9875e
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-437-German-stdout.txt
@@ -0,0 +1 @@
+-- showIncludes='Hinweis: Einlesen der Datei: '
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-437-German.cmake b/Tests/RunCMake/Ninja/ShowIncludes-437-German.cmake
new file mode 100644
index 0000000..882a23c
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-437-German.cmake
@@ -0,0 +1,3 @@
+set(CODEPAGE 437)
+set(VSLANG 1031)
+include(${CMAKE_CURRENT_LIST_DIR}/ShowIncludes.cmake)
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-65001-French-check.cmake b/Tests/RunCMake/Ninja/ShowIncludes-65001-French-check.cmake
new file mode 100644
index 0000000..133cbe6
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-65001-French-check.cmake
@@ -0,0 +1,3 @@
+# 'cl /showIncludes' prefix with 'VSLANG=1036' and 'chcp 65001'.
+string(ASCII 82 101 109 97 114 113 117 101 194 160 58 32 105 110 99 108 117 115 105 111 110 32 100 117 32 102 105 99 104 105 101 114 194 160 58 32 32 expect)
+include(${CMAKE_CURRENT_LIST_DIR}/ShowIncludes-check.cmake)
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-65001-French-stdout.txt b/Tests/RunCMake/Ninja/ShowIncludes-65001-French-stdout.txt
new file mode 100644
index 0000000..1a830f1
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-65001-French-stdout.txt
@@ -0,0 +1 @@
+-- showIncludes='Remarque : inclusion du fichier : '
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-65001-French.cmake b/Tests/RunCMake/Ninja/ShowIncludes-65001-French.cmake
new file mode 100644
index 0000000..49927f6
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-65001-French.cmake
@@ -0,0 +1,3 @@
+set(CODEPAGE 65001)
+set(VSLANG 1036)
+include(${CMAKE_CURRENT_LIST_DIR}/ShowIncludes.cmake)
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-65001-Japanese-check.cmake b/Tests/RunCMake/Ninja/ShowIncludes-65001-Japanese-check.cmake
new file mode 100644
index 0000000..852bae7
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-65001-Japanese-check.cmake
@@ -0,0 +1,3 @@
+# 'cl /showIncludes' prefix with 'VSLANG=1041' and 'chcp 65001'.
+string(ASCII 227 131 161 227 131 162 58 32 227 130 164 227 131 179 227 130 175 227 131 171 227 131 188 227 131 137 32 227 131 149 227 130 161 227 130 164 227 131 171 58 32 32 expect)
+include(${CMAKE_CURRENT_LIST_DIR}/ShowIncludes-check.cmake)
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-65001-Japanese-stdout.txt b/Tests/RunCMake/Ninja/ShowIncludes-65001-Japanese-stdout.txt
new file mode 100644
index 0000000..4640616
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-65001-Japanese-stdout.txt
@@ -0,0 +1 @@
+-- showIncludes='メモ: インクルード ファイル: '
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-65001-Japanese.cmake b/Tests/RunCMake/Ninja/ShowIncludes-65001-Japanese.cmake
new file mode 100644
index 0000000..59cc84e
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-65001-Japanese.cmake
@@ -0,0 +1,3 @@
+set(CODEPAGE 65001)
+set(VSLANG 1041)
+include(${CMAKE_CURRENT_LIST_DIR}/ShowIncludes.cmake)
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-932-Japanese-check.cmake b/Tests/RunCMake/Ninja/ShowIncludes-932-Japanese-check.cmake
new file mode 100644
index 0000000..10fa194
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-932-Japanese-check.cmake
@@ -0,0 +1,3 @@
+# 'cl /showIncludes' prefix with 'VSLANG=1041' and 'chcp 932'.
+string(ASCII 131 129 131 130 58 32 131 67 131 147 131 78 131 139 129 91 131 104 32 131 116 131 64 131 67 131 139 58 32 32 expect)
+include(${CMAKE_CURRENT_LIST_DIR}/ShowIncludes-check.cmake)
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-932-Japanese-stdout.txt b/Tests/RunCMake/Ninja/ShowIncludes-932-Japanese-stdout.txt
new file mode 100644
index 0000000..4640616
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-932-Japanese-stdout.txt
@@ -0,0 +1 @@
+-- showIncludes='メモ: インクルード ファイル: '
diff --git a/Tests/RunCMake/Ninja/ShowIncludes-932-Japanese.cmake b/Tests/RunCMake/Ninja/ShowIncludes-932-Japanese.cmake
new file mode 100644
index 0000000..ed8203c
--- /dev/null
+++ b/Tests/RunCMake/Ninja/ShowIncludes-932-Japanese.cmake
@@ -0,0 +1,3 @@
+set(CODEPAGE 932)
+set(VSLANG 1041)
+include(${CMAKE_CURRENT_LIST_DIR}/ShowIncludes.cmake)