From 5c77690306d5430379bd6046ad2c0f4775cfce93 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 17 Jul 2018 08:53:19 +0200 Subject: Handle executables (permissions, extensions) in in::rule --- tests/in/testscript | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests/in') 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 @@ $* <>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 <=hello.in; + #!/bin/sh + echo 'Hello, $name$!' + EOI + $* <'Hello, World!' +} -- cgit v1.1