From fd689eb883655dcb29e505b041cd02fac01f0bac Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 27 Aug 2015 15:11:40 +0200 Subject: Dist module/meta-operation initial implementation --- tests/.gitignore | 2 +- tests/cli/simple/build/bootstrap.build | 1 + tests/dist/simple/README | 0 tests/dist/simple/bootstrap | 0 tests/dist/simple/build/bootstrap.build | 9 +++++++++ tests/dist/simple/build/export.build | 0 tests/dist/simple/buildfile | 7 +++++++ tests/dist/simple/driver.cxx | 10 ++++++++++ tests/dist/simple/test.out | 1 + 9 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 tests/dist/simple/README create mode 100755 tests/dist/simple/bootstrap create mode 100644 tests/dist/simple/build/bootstrap.build create mode 100644 tests/dist/simple/build/export.build create mode 100644 tests/dist/simple/buildfile create mode 100644 tests/dist/simple/driver.cxx create mode 100644 tests/dist/simple/test.out (limited to 'tests') 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 diff --git a/tests/dist/simple/bootstrap b/tests/dist/simple/bootstrap new file mode 100755 index 0000000..e69de29 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 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 + +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) -- cgit v1.1