summaryrefslogtreecommitdiff
path: root/test/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-01-28 21:12:10 +0000
committerCarl Hetherington <cth@carlh.net>2014-01-28 21:12:10 +0000
commit7f20aa518356f188946eb508239caf7c113da819 (patch)
tree8647f9b6e6f87415cfd38e47365b14cf3e6df30f /test/wscript
First version.
Diffstat (limited to 'test/wscript')
-rw-r--r--test/wscript23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/wscript b/test/wscript
new file mode 100644
index 0000000..5d16abb
--- /dev/null
+++ b/test/wscript
@@ -0,0 +1,23 @@
+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',
+ 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'
+ obj.use = 'libsub'
+ obj.source = """
+ stl_reader_test.cc
+ test.cc
+ """
+ obj.target = 'tests'
+ obj.install_path = ''