summaryrefslogtreecommitdiff
path: root/libhello/tests/test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-06-19 18:39:08 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-06-19 18:39:08 +0300
commit58e44f2cdad782fd9c5cf177c2bb1ca8a86c0e15 (patch)
tree619306b9f37e404b04a391e71b31b4bab9ca5d61 /libhello/tests/test
parentb6eb2a7b37def077581f1eb968b5991e755eeda9 (diff)
Move project into intermediate sub-directory
Diffstat (limited to 'libhello/tests/test')
-rw-r--r--libhello/tests/test/buildfile4
-rw-r--r--libhello/tests/test/driver.cxx11
-rw-r--r--libhello/tests/test/test.out1
3 files changed, 16 insertions, 0 deletions
diff --git a/libhello/tests/test/buildfile b/libhello/tests/test/buildfile
new file mode 100644
index 0000000..a46969d
--- /dev/null
+++ b/libhello/tests/test/buildfile
@@ -0,0 +1,4 @@
+import libs = libhello%lib{hello}
+
+exe{driver}: cxx{driver} $libs
+exe{driver}: test.output = test.out
diff --git a/libhello/tests/test/driver.cxx b/libhello/tests/test/driver.cxx
new file mode 100644
index 0000000..38937f0
--- /dev/null
+++ b/libhello/tests/test/driver.cxx
@@ -0,0 +1,11 @@
+// file: tests/test/driver.cxx -*- C++ -*-
+
+#include <libhello/hello.hxx>
+
+int
+main ()
+{
+ using hello::say;
+
+ say ("World");
+}
diff --git a/libhello/tests/test/test.out b/libhello/tests/test/test.out
new file mode 100644
index 0000000..8ab686e
--- /dev/null
+++ b/libhello/tests/test/test.out
@@ -0,0 +1 @@
+Hello, World!