aboutsummaryrefslogtreecommitdiff
path: root/tests/repository/1/common/libhello-1.0.0+1/tests/test
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-30 20:26:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-30 20:26:28 +0200
commitaf00f71ee83a06fa8bb0066b01e2565619b298ae (patch)
tree131d5e8afa6b794226d12ee215a367f3fdbb3287 /tests/repository/1/common/libhello-1.0.0+1/tests/test
parentae695f5fb60cee707cda75708bd17f9d82ad0388 (diff)
Update to use new libhello
Diffstat (limited to 'tests/repository/1/common/libhello-1.0.0+1/tests/test')
-rw-r--r--tests/repository/1/common/libhello-1.0.0+1/tests/test/buildfile4
-rw-r--r--tests/repository/1/common/libhello-1.0.0+1/tests/test/driver.cxx11
-rw-r--r--tests/repository/1/common/libhello-1.0.0+1/tests/test/test.out1
3 files changed, 16 insertions, 0 deletions
diff --git a/tests/repository/1/common/libhello-1.0.0+1/tests/test/buildfile b/tests/repository/1/common/libhello-1.0.0+1/tests/test/buildfile
new file mode 100644
index 0000000..a46969d
--- /dev/null
+++ b/tests/repository/1/common/libhello-1.0.0+1/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/tests/repository/1/common/libhello-1.0.0+1/tests/test/driver.cxx b/tests/repository/1/common/libhello-1.0.0+1/tests/test/driver.cxx
new file mode 100644
index 0000000..59bfb2d
--- /dev/null
+++ b/tests/repository/1/common/libhello-1.0.0+1/tests/test/driver.cxx
@@ -0,0 +1,11 @@
+// file: tests/test/driver.cxx -*- C++ -*-
+
+#include <hello/hello>
+
+int
+main ()
+{
+ using hello::say;
+
+ say ("World");
+}
diff --git a/tests/repository/1/common/libhello-1.0.0+1/tests/test/test.out b/tests/repository/1/common/libhello-1.0.0+1/tests/test/test.out
new file mode 100644
index 0000000..8ab686e
--- /dev/null
+++ b/tests/repository/1/common/libhello-1.0.0+1/tests/test/test.out
@@ -0,0 +1 @@
+Hello, World!