aboutsummaryrefslogtreecommitdiff
path: root/tests/process/testscript
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-04-21 09:17:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-04-21 09:17:01 +0200
commit5a36f357e174d002722122d2408c57fb43da6e59 (patch)
tree4d31e5ac43a3013426d26f48e7a42850c2aa8aea /tests/process/testscript
parent083834dcc5b76fe6f1318eb2b91c5caf08cd0c5f (diff)
Implement execution of Windows batch files
Diffstat (limited to 'tests/process/testscript')
-rw-r--r--tests/process/testscript17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/process/testscript b/tests/process/testscript
new file mode 100644
index 0000000..c734a05
--- /dev/null
+++ b/tests/process/testscript
@@ -0,0 +1,17 @@
+# file : tests/process/testscript
+# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+# license : MIT; see accompanying LICENSE file
+
+if ($cxx.target.class == 'windows')
+ cat <<EOI >=test.bat
+ @echo off
+ setlocal
+ goto end
+ :error
+ endlocal
+ exit /b 1
+ :end
+ endlocal
+ EOI
+end;
+$*