aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-08-27 15:11:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-27 15:11:40 +0200
commitfd689eb883655dcb29e505b041cd02fac01f0bac (patch)
tree0d85ec32d95a1c96eaa7eff28734b900c44dd3ca /tests
parent7f2d06258d57e39940e8fa959336da0ea66fe37f (diff)
Dist module/meta-operation initial implementation
Diffstat (limited to 'tests')
-rw-r--r--tests/.gitignore2
-rw-r--r--tests/cli/simple/build/bootstrap.build1
-rw-r--r--tests/dist/simple/README0
-rwxr-xr-xtests/dist/simple/bootstrap0
-rw-r--r--tests/dist/simple/build/bootstrap.build9
-rw-r--r--tests/dist/simple/build/export.build0
-rw-r--r--tests/dist/simple/buildfile7
-rw-r--r--tests/dist/simple/driver.cxx10
-rw-r--r--tests/dist/simple/test.out1
9 files changed, 29 insertions, 1 deletions
diff --git a/tests/.gitignore b/tests/.gitignore
index c8ad1f0..c7bd86c 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -3,4 +3,4 @@ config.build
# Temporary out-of-tree build directories.
#
-*-build
+*-out
diff --git a/tests/cli/simple/build/bootstrap.build b/tests/cli/simple/build/bootstrap.build
index e2fd93f..2c116c9 100644
--- a/tests/cli/simple/build/bootstrap.build
+++ b/tests/cli/simple/build/bootstrap.build
@@ -1,2 +1,3 @@
project = cli-simple
+amalgamation = # Disabled.
using config
diff --git a/tests/dist/simple/README b/tests/dist/simple/README
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/dist/simple/README
diff --git a/tests/dist/simple/bootstrap b/tests/dist/simple/bootstrap
new file mode 100755
index 0000000..e69de29
--- /dev/null
+++ b/tests/dist/simple/bootstrap
diff --git a/tests/dist/simple/build/bootstrap.build b/tests/dist/simple/build/bootstrap.build
new file mode 100644
index 0000000..0cd9015
--- /dev/null
+++ b/tests/dist/simple/build/bootstrap.build
@@ -0,0 +1,9 @@
+project = dist-simple
+version = 1.0.0
+amalgamation = # Disabled.
+using config
+using dist
+using test
+using install
+
+dist.package = $project-$version
diff --git a/tests/dist/simple/build/export.build b/tests/dist/simple/build/export.build
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/dist/simple/build/export.build
diff --git a/tests/dist/simple/buildfile b/tests/dist/simple/buildfile
new file mode 100644
index 0000000..27f143d
--- /dev/null
+++ b/tests/dist/simple/buildfile
@@ -0,0 +1,7 @@
+using cxx
+
+hxx.ext = hxx
+cxx.ext = cxx
+
+exe{driver}: cxx{driver} doc{README} file{bootstrap}
+exe{driver}: test.output = test.out
diff --git a/tests/dist/simple/driver.cxx b/tests/dist/simple/driver.cxx
new file mode 100644
index 0000000..293d7ff
--- /dev/null
+++ b/tests/dist/simple/driver.cxx
@@ -0,0 +1,10 @@
+#include <iostream>
+
+using namespace std;
+
+int
+main ()
+{
+ cerr << "test is running (stderr)" << endl;
+ cout << "test is running (stdout)" << endl;
+}
diff --git a/tests/dist/simple/test.out b/tests/dist/simple/test.out
new file mode 100644
index 0000000..5d63fab
--- /dev/null
+++ b/tests/dist/simple/test.out
@@ -0,0 +1 @@
+test is running (stdout)