aboutsummaryrefslogtreecommitdiff
path: root/old-tests/test/generated
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-03 14:57:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-03 15:25:39 +0200
commitdc74915e47968c40c497fb6d53144bb815ca5cfb (patch)
tree8b7616a62e6e1b5de81fe043043f726e38e24a75 /old-tests/test/generated
parent183329b89ddf810e2df5c250ae5b97d8ebcbba74 (diff)
Fix test and dist for generated input/output
Diffstat (limited to 'old-tests/test/generated')
-rw-r--r--old-tests/test/generated/buildfile3
-rw-r--r--old-tests/test/generated/driver.cxx2
-rw-r--r--old-tests/test/generated/test.out1
3 files changed, 5 insertions, 1 deletions
diff --git a/old-tests/test/generated/buildfile b/old-tests/test/generated/buildfile
index aacca8b..d3fbc20 100644
--- a/old-tests/test/generated/buildfile
+++ b/old-tests/test/generated/buildfile
@@ -4,6 +4,7 @@ using cxx
exe{utility}: cxx{utility}
exe{driver}: cxx{driver}
-exe{driver}: test.input = exe{utility}
+exe{driver}: test.input = exe{utility} # Update test.
+exe{driver}: test.output = file{test.out} # Dist test.
./: exe{driver}
diff --git a/old-tests/test/generated/driver.cxx b/old-tests/test/generated/driver.cxx
index 008dbf7..f674141 100644
--- a/old-tests/test/generated/driver.cxx
+++ b/old-tests/test/generated/driver.cxx
@@ -20,5 +20,7 @@ main (int argc, char* argv[])
if (ifs.tellg () == 0)
cerr << argv[1] << " is empty" << endl;
+ cout << "output" << endl;
+
return 0;
}
diff --git a/old-tests/test/generated/test.out b/old-tests/test/generated/test.out
new file mode 100644
index 0000000..53752db
--- /dev/null
+++ b/old-tests/test/generated/test.out
@@ -0,0 +1 @@
+output