[gjs/meson.msvc: 5/5] installed-tests/meson.build: Skip simple tests for MSVC builds



commit 082165bcc327a5e46d4148133fea1d3f1aac6738
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Oct 28 14:54:29 2019 +0800

    installed-tests/meson.build: Skip simple tests for MSVC builds
    
    The test scripts are not understood on a standard cmd.exe shell, which
    is used by MSVC builds.
    
    Don't run these tests on MSVC builds, for now.

 installed-tests/meson.build | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/installed-tests/meson.build b/installed-tests/meson.build
index 3d2cf9e8..b6c4e449 100644
--- a/installed-tests/meson.build
+++ b/installed-tests/meson.build
@@ -6,10 +6,16 @@ test_descriptions_dir = (get_option('datadir') / 'installed-tests' /
 
 # Simple shell script tests #
 
-simple_tests = [
-    'CommandLine',
-    'Warnings',
-]
+simple_tests = []
+
+# The test scripts need to be ported from shell scripts
+# for MSVC builds, which do not use BASH-style shells
+if cxx.get_id() != 'msvc'
+    simple_tests += [
+        'CommandLine',
+        'Warnings',
+    ]
+endif
 
 foreach test : simple_tests
     test_file = files('scripts' / 'test@0@.sh'.format(test))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]