aboutsummaryrefslogtreecommitdiff
path: root/tests/test/simple
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-21 16:21:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-21 16:21:07 +0200
commita1cec9e0df14f3c1a833e2a447b5324ff9c430d3 (patch)
treee61c7e1cb3fa27ba435053761f5a2a3fb670f728 /tests/test/simple
parentbead742dbac51088e89cdd4dd7a55aaa1d8c98d7 (diff)
Test module genesis
Diffstat (limited to 'tests/test/simple')
-rw-r--r--tests/test/simple/build/bootstrap.build4
-rw-r--r--tests/test/simple/buildfile10
-rw-r--r--tests/test/simple/driver.cxx4
-rw-r--r--tests/test/simple/utility.cxx1
4 files changed, 19 insertions, 0 deletions
diff --git a/tests/test/simple/build/bootstrap.build b/tests/test/simple/build/bootstrap.build
new file mode 100644
index 0000000..0b7a347
--- /dev/null
+++ b/tests/test/simple/build/bootstrap.build
@@ -0,0 +1,4 @@
+project = test-simple
+amalgamation = # Disabled.
+using config
+using test
diff --git a/tests/test/simple/buildfile b/tests/test/simple/buildfile
new file mode 100644
index 0000000..6113968
--- /dev/null
+++ b/tests/test/simple/buildfile
@@ -0,0 +1,10 @@
+using cxx
+
+hxx.ext = hxx
+cxx.ext = cxx
+
+lib{utility}: cxx{utility}
+exe{driver}: cxx{driver} lib{utility}
+exe{driver}: test = true
+
+.: lib{utility} exe{driver}
diff --git a/tests/test/simple/driver.cxx b/tests/test/simple/driver.cxx
new file mode 100644
index 0000000..70b4146
--- /dev/null
+++ b/tests/test/simple/driver.cxx
@@ -0,0 +1,4 @@
+int
+main ()
+{
+}
diff --git a/tests/test/simple/utility.cxx b/tests/test/simple/utility.cxx
new file mode 100644
index 0000000..c4bb446
--- /dev/null
+++ b/tests/test/simple/utility.cxx
@@ -0,0 +1 @@
+void f (){}