summaryrefslogtreecommitdiff
path: root/test/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-01-13 23:55:59 +0000
committerCarl Hetherington <cth@carlh.net>2013-01-13 23:55:59 +0000
commitd14bbc2088ed9c0f9d77f15cb943968a70bb8198 (patch)
tree5c1c766d3e82de3139710d76618293d610145f63 /test/wscript
Initial.
Diffstat (limited to 'test/wscript')
-rw-r--r--test/wscript20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/wscript b/test/wscript
new file mode 100644
index 0000000..8868a36
--- /dev/null
+++ b/test/wscript
@@ -0,0 +1,20 @@
+def configure(conf):
+ conf.check_cxx(fragment = """
+ #define BOOST_TEST_MODULE Config test\n
+ #include <boost/test/unit_test.hpp>\n
+ int main() {}
+ """,
+ msg = 'Checking for boost unit testing library',
+ lib = ['boost_unit_test_framework', 'boost_system'],
+ uselib_store = 'BOOST_TEST')
+
+ conf.env.prepend_value('LINKFLAGS', '-Lsrc')
+
+def build(bld):
+ obj = bld(features = 'cxx cxxprogram')
+ obj.name = 'tests'
+ obj.uselib = 'BOOST_TEST BOOST_FILESYSTEM'
+ obj.use = 'libcxml'
+ obj.source = 'tests.cc'
+ obj.target = 'tests'
+ obj.install_path = ''