diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-05 12:48:27 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-05 12:48:27 +0300 |
commit | 17e7584dfbabf01ae14c364a808ff2d8ef90c0f7 (patch) | |
tree | 87e85bc2c0ba7ec30d03a0a94d37855e4b6d847c /tests/test | |
parent | 9646f4bb0cee026bdf9dbe4bf318f24e60697bae (diff) |
Add tests
Diffstat (limited to 'tests/test')
-rw-r--r-- | tests/test/buildfile | 4 | ||||
-rw-r--r-- | tests/test/driver.cxx | 9 | ||||
-rw-r--r-- | tests/test/test.out | 1 |
3 files changed, 14 insertions, 0 deletions
diff --git a/tests/test/buildfile b/tests/test/buildfile new file mode 100644 index 0000000..c5bfff4 --- /dev/null +++ b/tests/test/buildfile @@ -0,0 +1,4 @@ +import libs = libprint%lib{print} + +exe{driver}: cxx{driver} $libs +exe{driver}: test.output = test.out diff --git a/tests/test/driver.cxx b/tests/test/driver.cxx new file mode 100644 index 0000000..27f491d --- /dev/null +++ b/tests/test/driver.cxx @@ -0,0 +1,9 @@ +// file: tests/test/driver.cxx -*- C++ -*- + +#include <libprint/print.hxx> + +int +main () +{ + print ("Hello, World!"); +} diff --git a/tests/test/test.out b/tests/test/test.out new file mode 100644 index 0000000..8ab686e --- /dev/null +++ b/tests/test/test.out @@ -0,0 +1 @@ +Hello, World! |