aboutsummaryrefslogtreecommitdiff
path: root/tests/cli/lib/test
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-25 13:41:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-25 13:41:19 +0200
commit95239b7c5404965d4f5ef997b5b75bf542a25192 (patch)
tree1b4fc6229723babffa7c5d56ee0c2eae24215535 /tests/cli/lib/test
parentf56b5a42b9aaaeb0c4e7dee894dea9686599b88c (diff)
Part one of dependency injection with auto-generation support
Diffstat (limited to 'tests/cli/lib/test')
-rw-r--r--tests/cli/lib/test/build/bootstrap.build2
-rw-r--r--tests/cli/lib/test/build/root.build7
-rw-r--r--tests/cli/lib/test/buildfile6
-rw-r--r--tests/cli/lib/test/driver.C8
-rw-r--r--tests/cli/lib/test/test.cli5
5 files changed, 28 insertions, 0 deletions
diff --git a/tests/cli/lib/test/build/bootstrap.build b/tests/cli/lib/test/build/bootstrap.build
new file mode 100644
index 0000000..e83e189
--- /dev/null
+++ b/tests/cli/lib/test/build/bootstrap.build
@@ -0,0 +1,2 @@
+project = cli-lib-test
+using config
diff --git a/tests/cli/lib/test/build/root.build b/tests/cli/lib/test/build/root.build
new file mode 100644
index 0000000..2dda614
--- /dev/null
+++ b/tests/cli/lib/test/build/root.build
@@ -0,0 +1,7 @@
+using cxx
+
+hxx.ext = h
+ixx.ext = inl
+cxx.ext = C
+
+using cli
diff --git a/tests/cli/lib/test/buildfile b/tests/cli/lib/test/buildfile
new file mode 100644
index 0000000..fc0e552
--- /dev/null
+++ b/tests/cli/lib/test/buildfile
@@ -0,0 +1,6 @@
+import libs += cli-lib-libtest
+
+exe{driver}: cxx{driver} cxx{test} $libs
+cxx{test} hxx{test}: cli{test}
+
+cxx.poptions = -I$out_root
diff --git a/tests/cli/lib/test/driver.C b/tests/cli/lib/test/driver.C
new file mode 100644
index 0000000..ee2171f
--- /dev/null
+++ b/tests/cli/lib/test/driver.C
@@ -0,0 +1,8 @@
+#include "test.h"
+#include <test/test>
+#include <test/extra/test>
+
+int
+main ()
+{
+}
diff --git a/tests/cli/lib/test/test.cli b/tests/cli/lib/test/test.cli
new file mode 100644
index 0000000..db3cfb8
--- /dev/null
+++ b/tests/cli/lib/test/test.cli
@@ -0,0 +1,5 @@
+class options
+{
+ bool --help;
+ bool --version;
+};