aboutsummaryrefslogtreecommitdiff
path: root/tests/cli/simple
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/simple
parentf56b5a42b9aaaeb0c4e7dee894dea9686599b88c (diff)
Part one of dependency injection with auto-generation support
Diffstat (limited to 'tests/cli/simple')
-rw-r--r--tests/cli/simple/build/bootstrap.build2
-rw-r--r--tests/cli/simple/build/root.build3
-rw-r--r--tests/cli/simple/buildfile8
-rw-r--r--tests/cli/simple/driver.cpp6
-rw-r--r--tests/cli/simple/test.cli5
5 files changed, 24 insertions, 0 deletions
diff --git a/tests/cli/simple/build/bootstrap.build b/tests/cli/simple/build/bootstrap.build
new file mode 100644
index 0000000..e2fd93f
--- /dev/null
+++ b/tests/cli/simple/build/bootstrap.build
@@ -0,0 +1,2 @@
+project = cli-simple
+using config
diff --git a/tests/cli/simple/build/root.build b/tests/cli/simple/build/root.build
new file mode 100644
index 0000000..8e910cf
--- /dev/null
+++ b/tests/cli/simple/build/root.build
@@ -0,0 +1,3 @@
+using cxx
+using cli
+
diff --git a/tests/cli/simple/buildfile b/tests/cli/simple/buildfile
new file mode 100644
index 0000000..5a940ce
--- /dev/null
+++ b/tests/cli/simple/buildfile
@@ -0,0 +1,8 @@
+hxx.ext =
+cxx.ext = cpp
+ixx.ext = ipp
+
+cxx.poptions = -I$out_root
+
+exe{driver}: cxx{driver} cxx{test}
+cxx{test} hxx{test}: cli{test}
diff --git a/tests/cli/simple/driver.cpp b/tests/cli/simple/driver.cpp
new file mode 100644
index 0000000..ef9cc60
--- /dev/null
+++ b/tests/cli/simple/driver.cpp
@@ -0,0 +1,6 @@
+#include "test"
+
+int
+main ()
+{
+}
diff --git a/tests/cli/simple/test.cli b/tests/cli/simple/test.cli
new file mode 100644
index 0000000..db3cfb8
--- /dev/null
+++ b/tests/cli/simple/test.cli
@@ -0,0 +1,5 @@
+class options
+{
+ bool --help;
+ bool --version;
+};