Change #include style
Header files are now always included with their path from the
project's root directory rather than the path relative to
the includer.
Change-Id: If39b8510eef8da00baf5fe88337c45dbdf8c766e
Refs: #3084
diff --git a/tests/unit/wscript b/tests/unit/wscript
new file mode 100644
index 0000000..bc7ce0f
--- /dev/null
+++ b/tests/unit/wscript
@@ -0,0 +1,29 @@
+# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
+
+top = '../..'
+
+def build(bld):
+ configPath = 'UNIT_TEST_CONFIG_PATH="%s"' % bld.bldnode.make_node('tmp-files')
+
+ # unit test objects
+ srcFiles = bld.path.ant_glob('**/*.cpp', excl=['main.cpp',
+ '**/*-osx.t.cpp',
+ '**/*-sqlite3.t.cpp'])
+
+ if bld.env['HAVE_OSX_FRAMEWORKS']:
+ srcFiles += bld.path.ant_glob('**/*-osx.t.cpp')
+
+ # In case we want to make it optional later
+ srcFiles += bld.path.ant_glob('**/*-sqlite3.t.cpp')
+
+ bld.objects(target='unit-tests-objects',
+ source=srcFiles,
+ use='tests-common',
+ defines=[configPath])
+
+ # unit test binary
+ bld.program(target='../../unit-tests',
+ name='unit-tests',
+ source=['main.cpp'],
+ use='unit-tests-objects',
+ install_path=None)