aboutsummaryrefslogtreecommitdiff
path: root/tests/install/simple
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-31 12:52:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-31 12:52:20 +0200
commitbbd0f3bb21442a2833916110cbe8e9a07e9f4c1f (patch)
treed25de6f2bcfa4b6cabe1fd55a1b8f508005de4c1 /tests/install/simple
parent729b56300c441a0d63c7d2013eb5a881211d352b (diff)
Essential install module functionality
Diffstat (limited to 'tests/install/simple')
-rw-r--r--tests/install/simple/buildfile3
-rw-r--r--tests/install/simple/driver.cxx3
-rw-r--r--tests/install/simple/utility.hxx2
3 files changed, 6 insertions, 2 deletions
diff --git a/tests/install/simple/buildfile b/tests/install/simple/buildfile
index 986f391..cc11491 100644
--- a/tests/install/simple/buildfile
+++ b/tests/install/simple/buildfile
@@ -3,4 +3,5 @@ using cxx
hxx.ext = hxx
cxx.ext = cxx
-exe{driver}: cxx{driver}
+exe{driver}: cxx{driver} hxx{utility}
+exe{driver}: install = sbin
diff --git a/tests/install/simple/driver.cxx b/tests/install/simple/driver.cxx
index a444f13..1b28c94 100644
--- a/tests/install/simple/driver.cxx
+++ b/tests/install/simple/driver.cxx
@@ -1,2 +1,3 @@
-int main () {}
+#include "utility.hxx"
+int main () {return result;}
diff --git a/tests/install/simple/utility.hxx b/tests/install/simple/utility.hxx
new file mode 100644
index 0000000..1b8e18e
--- /dev/null
+++ b/tests/install/simple/utility.hxx
@@ -0,0 +1,2 @@
+const int result = 0;
+