aboutsummaryrefslogtreecommitdiff
path: root/tests/common/libhello-1.0.0/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common/libhello-1.0.0/tests')
-rw-r--r--tests/common/libhello-1.0.0/tests/build/bootstrap.build5
-rw-r--r--tests/common/libhello-1.0.0/tests/build/root.build14
-rw-r--r--tests/common/libhello-1.0.0/tests/buildfile3
-rw-r--r--tests/common/libhello-1.0.0/tests/test/buildfile4
-rw-r--r--tests/common/libhello-1.0.0/tests/test/driver.cxx11
-rw-r--r--tests/common/libhello-1.0.0/tests/test/test.out1
6 files changed, 38 insertions, 0 deletions
diff --git a/tests/common/libhello-1.0.0/tests/build/bootstrap.build b/tests/common/libhello-1.0.0/tests/build/bootstrap.build
new file mode 100644
index 0000000..2c2de24
--- /dev/null
+++ b/tests/common/libhello-1.0.0/tests/build/bootstrap.build
@@ -0,0 +1,5 @@
+project = # Unnamed subproject.
+
+using config
+using dist
+using test
diff --git a/tests/common/libhello-1.0.0/tests/build/root.build b/tests/common/libhello-1.0.0/tests/build/root.build
new file mode 100644
index 0000000..de723b8
--- /dev/null
+++ b/tests/common/libhello-1.0.0/tests/build/root.build
@@ -0,0 +1,14 @@
+cxx.std = 11
+
+using cxx
+
+hxx{*}: extension =
+cxx{*}: extension = cxx
+
+# Every exe{} in this subproject is by default a test.
+#
+exe{*}: test = true
+
+# Specify the test target for cross-testing.
+#
+test.target = $cxx.target
diff --git a/tests/common/libhello-1.0.0/tests/buildfile b/tests/common/libhello-1.0.0/tests/buildfile
new file mode 100644
index 0000000..4dcbe2a
--- /dev/null
+++ b/tests/common/libhello-1.0.0/tests/buildfile
@@ -0,0 +1,3 @@
+d = test/
+./: $d
+include $d
diff --git a/tests/common/libhello-1.0.0/tests/test/buildfile b/tests/common/libhello-1.0.0/tests/test/buildfile
new file mode 100644
index 0000000..a46969d
--- /dev/null
+++ b/tests/common/libhello-1.0.0/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/common/libhello-1.0.0/tests/test/driver.cxx b/tests/common/libhello-1.0.0/tests/test/driver.cxx
new file mode 100644
index 0000000..59bfb2d
--- /dev/null
+++ b/tests/common/libhello-1.0.0/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/common/libhello-1.0.0/tests/test/test.out b/tests/common/libhello-1.0.0/tests/test/test.out
new file mode 100644
index 0000000..8ab686e
--- /dev/null
+++ b/tests/common/libhello-1.0.0/tests/test/test.out
@@ -0,0 +1 @@
+Hello, World!