From 3c57a25a4d6a80301ece82ab33f1394e34f8b873 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 23 Jul 2015 09:59:52 +0200 Subject: Basic test support --- tests/test/simple/buildfile | 5 ++++- tests/test/simple/driver.cxx | 10 ++++++++++ tests/test/simple/test.std | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 tests/test/simple/test.std (limited to 'tests/test') 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 +#include + +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) -- cgit v1.1