aboutsummaryrefslogtreecommitdiff
path: root/old-tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-02-05 14:39:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-02-05 14:39:47 +0200
commit36ec90018e1a6337d23fc5286ed926c2134bde1f (patch)
tree40710bf9555076689d1ee7726ec3e29317dba00a /old-tests
parent3954be70024fd60c20c658f08025eff7654a8943 (diff)
Add tests for auto-generated test inputs/outputs
Diffstat (limited to 'old-tests')
-rw-r--r--old-tests/test/generated/build/bootstrap.build8
-rw-r--r--old-tests/test/generated/buildfile10
-rw-r--r--old-tests/test/generated/driver.cxx26
-rw-r--r--old-tests/test/generated/test.out1
-rw-r--r--old-tests/test/generated/utility.cxx1
-rw-r--r--old-tests/test/simple/build/bootstrap.build4
-rw-r--r--old-tests/test/simple/buildfile12
-rw-r--r--old-tests/test/simple/driver.cxx14
-rw-r--r--old-tests/test/simple/test.out1
-rw-r--r--old-tests/test/simple/utility.cxx1
10 files changed, 0 insertions, 78 deletions
diff --git a/old-tests/test/generated/build/bootstrap.build b/old-tests/test/generated/build/bootstrap.build
deleted file mode 100644
index 1b04c1d..0000000
--- a/old-tests/test/generated/build/bootstrap.build
+++ /dev/null
@@ -1,8 +0,0 @@
-project = generated
-amalgamation = # Disabled.
-
-dist.package = $project
-
-using config
-using test
-using dist
diff --git a/old-tests/test/generated/buildfile b/old-tests/test/generated/buildfile
deleted file mode 100644
index d3fbc20..0000000
--- a/old-tests/test/generated/buildfile
+++ /dev/null
@@ -1,10 +0,0 @@
-# Test generated input.
-#
-using cxx
-
-exe{utility}: cxx{utility}
-exe{driver}: cxx{driver}
-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
deleted file mode 100644
index f674141..0000000
--- a/old-tests/test/generated/driver.cxx
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <iostream>
-#include <fstream>
-
-using namespace std;
-
-int
-main (int argc, char* argv[])
-{
- if (argc != 2)
- {
- cerr << "usage: " << argv[0] << " <file>" << endl;
- return 1;
- }
-
- ifstream ifs (argv[1], ifstream::in | ifstream::binary | ifstream::ate);
-
- if (!ifs.is_open ())
- cerr << "unable to open " << argv[1] << endl;
-
- 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
deleted file mode 100644
index 53752db..0000000
--- a/old-tests/test/generated/test.out
+++ /dev/null
@@ -1 +0,0 @@
-output
diff --git a/old-tests/test/generated/utility.cxx b/old-tests/test/generated/utility.cxx
deleted file mode 100644
index ca2ac4a..0000000
--- a/old-tests/test/generated/utility.cxx
+++ /dev/null
@@ -1 +0,0 @@
-int main () {}
diff --git a/old-tests/test/simple/build/bootstrap.build b/old-tests/test/simple/build/bootstrap.build
deleted file mode 100644
index 0b7a347..0000000
--- a/old-tests/test/simple/build/bootstrap.build
+++ /dev/null
@@ -1,4 +0,0 @@
-project = test-simple
-amalgamation = # Disabled.
-using config
-using test
diff --git a/old-tests/test/simple/buildfile b/old-tests/test/simple/buildfile
deleted file mode 100644
index 569c12c..0000000
--- a/old-tests/test/simple/buildfile
+++ /dev/null
@@ -1,12 +0,0 @@
-using cxx
-
-lib{utility}: cxx{utility}
-exe{driver}: cxx{driver} #lib{utility}
-
-#exe{driver}: test.roundtrip = test.out
-
-exe{*}: test = true
-exe{*}: test.output = test.out
-
-./: lib{utility} exe{driver}
-#./: exe{driver}
diff --git a/old-tests/test/simple/driver.cxx b/old-tests/test/simple/driver.cxx
deleted file mode 100644
index 3753821..0000000
--- a/old-tests/test/simple/driver.cxx
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <iostream>
-#include <cassert>
-
-using namespace std;
-
-int
-main ()
-{
- cerr << "test is running (stderr)" << endl;
- //assert (false);
- cout << "test is running (stdout)" << endl;
- return 0;
- //return 1;
-}
diff --git a/old-tests/test/simple/test.out b/old-tests/test/simple/test.out
deleted file mode 100644
index 5d63fab..0000000
--- a/old-tests/test/simple/test.out
+++ /dev/null
@@ -1 +0,0 @@
-test is running (stdout)
diff --git a/old-tests/test/simple/utility.cxx b/old-tests/test/simple/utility.cxx
deleted file mode 100644
index c4bb446..0000000
--- a/old-tests/test/simple/utility.cxx
+++ /dev/null
@@ -1 +0,0 @@
-void f (){}