summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/wscript15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/wscript b/tests/wscript
index 3ea7563..1997c1a 100644
--- a/tests/wscript
+++ b/tests/wscript
@@ -14,11 +14,12 @@ def build(bld):
smf_test
table_test
'''
- for i in tests.split():
- obj = bld.new_task_gen('cxx', 'program')
- obj.source = i + '.cpp'
- obj.includes = '..'
- obj.uselib_local = 'libraul'
- obj.target = i
- obj.install_path = ''
+ if bld.env['BUILD_TESTS']:
+ for i in tests.split():
+ obj = bld.new_task_gen('cxx', 'program')
+ obj.source = i + '.cpp'
+ obj.includes = '..'
+ obj.uselib_local = 'libraul'
+ obj.target = i
+ obj.install_path = ''