diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-09 15:00:16 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-09 15:00:16 +0200 |
commit | ab0d6919707349436edd336bbfa8f433bd6e6749 (patch) | |
tree | 864fc885d71ab8205f9c47f0c813b0a48166de33 /tests/test/simple/generated/testscript | |
parent | dab05fa5ebea3aaf7107c8acf18a7f17c556a45c (diff) |
Fix broken test (and few other things)
Diffstat (limited to 'tests/test/simple/generated/testscript')
-rw-r--r-- | tests/test/simple/generated/testscript | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/tests/test/simple/generated/testscript b/tests/test/simple/generated/testscript index 9ec5220..f7ab8d6 100644 --- a/tests/test/simple/generated/testscript +++ b/tests/test/simple/generated/testscript @@ -17,26 +17,29 @@ name: test version: 1.2.3 EOI -+cat <<EOI >=build/root.build -using cxx -EOI +# This one is a bit tricky since we need an executable to run. We don't want +# to be building anything as part of our test project so what we do is test +# the directory target with an overridden test target (note that $src_root +# here refers to the root of the project being tested). : input : -ln -s $src_base/driver.cxx ./; -ln -s $src_base/utility.cxx ./; +ln -s $src_base/input.in ./; $* <<EOI -exe{utility}: cxx{utility} -exe{utility}: exe{driver}: test.input = true -exe{driver}: cxx{driver} +driver = $src_root/../exe{driver} +dir{./}: test = $driver # @@ TMP (target/scope regularity) +./: $driver +./: file{input}: test.input = true +file{input}: in{input} $src_root/file{manifest} #@@ in module 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 +driver = $src_root/../exe{driver} +dir{./}: test = $driver # @@ TMP (target/scope regularity) +./: $driver +./: file{output}: test.stdout = true file{output}: in{output} $src_root/file{manifest} #@@ in module EOI |