aboutsummaryrefslogtreecommitdiff
path: root/tests/cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-24 13:53:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-24 13:53:28 +0200
commite815af118562c68794efbd310c887acd8eae800c (patch)
treecedd8745cce259693c038c309d663a682c982e98 /tests/cli
parent4f52c4ed65883dacef32587cf066fbb1182c6628 (diff)
First take on the cli module plus necessary infrastructure
Diffstat (limited to 'tests/cli')
-rw-r--r--tests/cli/build/bootstrap.build2
-rw-r--r--tests/cli/build/root.build3
-rw-r--r--tests/cli/buildfile6
-rw-r--r--tests/cli/driver.cpp4
-rw-r--r--tests/cli/test.cli5
5 files changed, 20 insertions, 0 deletions
diff --git a/tests/cli/build/bootstrap.build b/tests/cli/build/bootstrap.build
new file mode 100644
index 0000000..9e91c9a
--- /dev/null
+++ b/tests/cli/build/bootstrap.build
@@ -0,0 +1,2 @@
+project = cli-test
+using config
diff --git a/tests/cli/build/root.build b/tests/cli/build/root.build
new file mode 100644
index 0000000..8e910cf
--- /dev/null
+++ b/tests/cli/build/root.build
@@ -0,0 +1,3 @@
+using cxx
+using cli
+
diff --git a/tests/cli/buildfile b/tests/cli/buildfile
new file mode 100644
index 0000000..705f302
--- /dev/null
+++ b/tests/cli/buildfile
@@ -0,0 +1,6 @@
+hxx.ext = hpp
+cxx.ext = cpp
+ixx.ext = ipp
+
+exe{test}: cxx{driver test}
+cxx{test}: cli{test}
diff --git a/tests/cli/driver.cpp b/tests/cli/driver.cpp
new file mode 100644
index 0000000..70b4146
--- /dev/null
+++ b/tests/cli/driver.cpp
@@ -0,0 +1,4 @@
+int
+main ()
+{
+}
diff --git a/tests/cli/test.cli b/tests/cli/test.cli
new file mode 100644
index 0000000..db3cfb8
--- /dev/null
+++ b/tests/cli/test.cli
@@ -0,0 +1,5 @@
+class options
+{
+ bool --help;
+ bool --version;
+};