diff options
author | David Robillard <d@drobilla.net> | 2019-03-17 21:24:24 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-17 21:24:24 +0100 |
commit | 37e64e93bd2b634e3768c9c01aa9d041f3a800f6 (patch) | |
tree | e9b76986abc87602e5ef3bd421117ef9557f26bb /wscript | |
parent | 5243ac1d4873262477bbc81844ac6a25333780a5 (diff) | |
download | lv2-37e64e93bd2b634e3768c9c01aa9d041f3a800f6.tar.xz |
Add tests for forge overflow scenarios
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -214,7 +214,7 @@ def build_spec(bld, path): old_include_dir = os.path.join(bld.env.INCLUDEDIR, spec_map[name]) # Build test program if applicable - if bld.env.BUILD_TESTS and bld.path.find_node(path + '/%s-test.c' % name): + for test in bld.path.ant_glob(os.path.join(path, '*-test.c')): test_lib = [] test_cflags = [''] test_linkflags = [''] @@ -225,9 +225,9 @@ def build_spec(bld, path): # Unit test program bld(features = 'c cprogram', - source = path + '/%s-test.c' % name, + source = test, lib = test_lib, - target = path + '/%s-test' % name, + target = os.path.splitext(str(test.get_bld()))[0], install_path = None, cflags = test_cflags, linkflags = test_linkflags) |