diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-05 14:39:47 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-05 14:39:47 +0200 |
commit | 36ec90018e1a6337d23fc5286ed926c2134bde1f (patch) | |
tree | 40710bf9555076689d1ee7726ec3e29317dba00a /tests/test/simple/generated/testscript | |
parent | 3954be70024fd60c20c658f08025eff7654a8943 (diff) |
Add tests for auto-generated test inputs/outputs
Diffstat (limited to 'tests/test/simple/generated/testscript')
-rw-r--r-- | tests/test/simple/generated/testscript | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/test/simple/generated/testscript b/tests/test/simple/generated/testscript new file mode 100644 index 0000000..9ec5220 --- /dev/null +++ b/tests/test/simple/generated/testscript @@ -0,0 +1,42 @@ +# file : tests/test/simple/generated/testscript +# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +test.arguments = test clean + +.include ../../common.test + +# @@ in module +# ++cat <<EOI >+build/bootstrap.build +using version +EOI ++cat <<EOI >=manifest +: 1 +name: test +version: 1.2.3 +EOI + ++cat <<EOI >=build/root.build +using cxx +EOI + +: input +: +ln -s $src_base/driver.cxx ./; +ln -s $src_base/utility.cxx ./; +$* <<EOI +exe{utility}: cxx{utility} +exe{utility}: exe{driver}: test.input = true +exe{driver}: cxx{driver} +EOI + +: output +: +ln -s $src_base/driver.cxx ./; +ln -s $src_base/output.in ./; +$* <<EOI +exe{driver}: cxx{driver} +exe{driver}: file{output}: test.stdout = true +file{output}: in{output} $src_root/file{manifest} #@@ in module +EOI |