diff options
Diffstat (limited to 'tests/install/lib/libtest/test')
-rw-r--r-- | tests/install/lib/libtest/test/buildfile | 10 | ||||
-rw-r--r-- | tests/install/lib/libtest/test/driver.cxx | 4 | ||||
-rw-r--r-- | tests/install/lib/libtest/test/driver.hxx | 0 | ||||
-rw-r--r-- | tests/install/lib/libtest/test/utility.cxx | 6 | ||||
-rw-r--r-- | tests/install/lib/libtest/test/utility.hxx | 5 |
5 files changed, 25 insertions, 0 deletions
diff --git a/tests/install/lib/libtest/test/buildfile b/tests/install/lib/libtest/test/buildfile new file mode 100644 index 0000000..5e275c6 --- /dev/null +++ b/tests/install/lib/libtest/test/buildfile @@ -0,0 +1,10 @@ +cxx.poptions += -I$src_root + +install.include = $install.include/test + +lib{test}: cxx{utility} hxx{utility} +lib{test}: cxx.export.poptions = -I$src_root + +exe{driver}: cxx{driver} hxx{driver} lib{test} + +.: lib{test} exe{driver} diff --git a/tests/install/lib/libtest/test/driver.cxx b/tests/install/lib/libtest/test/driver.cxx new file mode 100644 index 0000000..fbb6643 --- /dev/null +++ b/tests/install/lib/libtest/test/driver.cxx @@ -0,0 +1,4 @@ +#include <test/utility.hxx> +#include "driver.hxx" + +int main () {return test::f ();} diff --git a/tests/install/lib/libtest/test/driver.hxx b/tests/install/lib/libtest/test/driver.hxx new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/install/lib/libtest/test/driver.hxx diff --git a/tests/install/lib/libtest/test/utility.cxx b/tests/install/lib/libtest/test/utility.cxx new file mode 100644 index 0000000..2016b45 --- /dev/null +++ b/tests/install/lib/libtest/test/utility.cxx @@ -0,0 +1,6 @@ +#include <test/utility.hxx> + +namespace test +{ + int f () {return 0;} +} diff --git a/tests/install/lib/libtest/test/utility.hxx b/tests/install/lib/libtest/test/utility.hxx new file mode 100644 index 0000000..1a9dd72 --- /dev/null +++ b/tests/install/lib/libtest/test/utility.hxx @@ -0,0 +1,5 @@ +namespace test +{ + int f (); +} + |