aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-07-17 08:53:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-07-17 08:53:19 +0200
commit5c77690306d5430379bd6046ad2c0f4775cfce93 (patch)
treeef6286500fc4d5749d80106b87a819d844319476 /tests
parent724a88eb4c5ebdddb6d334beec53105f679c154a (diff)
Handle executables (permissions, extensions) in in::rule
Diffstat (limited to 'tests')
-rw-r--r--tests/in/testscript17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/in/testscript b/tests/in/testscript
index 4cf4ebf..3b1442a 100644
--- a/tests/in/testscript
+++ b/tests/in/testscript
@@ -94,3 +94,20 @@ $* <<EOI 2>>EOE != 0
EOI
test.in:2: error: undefined variable 'bar'
EOE
+
+: executable
+:
+: Test creation of executables (permissions, extensions).
+:
+if ($test.target == $build.host && $build.host.class != 'windows')
+{
+ cat <<EOI >=hello.in;
+ #!/bin/sh
+ echo 'Hello, $name$!'
+ EOI
+ $* <<EOI &hello &hello.d;
+ exe{hello}: in{hello}
+ exe{hello}: name = 'World'
+ EOI
+ $~/hello >'Hello, World!'
+}