aboutsummaryrefslogtreecommitdiff
path: root/tests/test/simple
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-23 09:59:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-23 09:59:52 +0200
commit3c57a25a4d6a80301ece82ab33f1394e34f8b873 (patch)
tree2ff64ebcfab74f90e81fdd2963fb653630d6d17b /tests/test/simple
parent34e5a2da18f76c7d7de79a5c12b0e85ee89c4095 (diff)
Basic test support
Diffstat (limited to 'tests/test/simple')
-rw-r--r--tests/test/simple/buildfile5
-rw-r--r--tests/test/simple/driver.cxx10
-rw-r--r--tests/test/simple/test.std1
3 files changed, 15 insertions, 1 deletions
diff --git a/tests/test/simple/buildfile b/tests/test/simple/buildfile
index 6113968..518b672 100644
--- a/tests/test/simple/buildfile
+++ b/tests/test/simple/buildfile
@@ -4,7 +4,10 @@ hxx.ext = hxx
cxx.ext = cxx
lib{utility}: cxx{utility}
-exe{driver}: cxx{driver} lib{utility}
+exe{driver}: cxx{driver} #lib{utility}
exe{driver}: test = true
+test.exe = false
+
.: lib{utility} exe{driver}
+#.: exe{driver}
diff --git a/tests/test/simple/driver.cxx b/tests/test/simple/driver.cxx
index 70b4146..3753821 100644
--- a/tests/test/simple/driver.cxx
+++ b/tests/test/simple/driver.cxx
@@ -1,4 +1,14 @@
+#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/tests/test/simple/test.std b/tests/test/simple/test.std
new file mode 100644
index 0000000..5d63fab
--- /dev/null
+++ b/tests/test/simple/test.std
@@ -0,0 +1 @@
+test is running (stdout)