summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-21 00:41:34 +0100
committerDavid Robillard <d@drobilla.net>2018-01-21 00:56:50 +0100
commita99b72e4adbc4c28fadc08d29299d99405f72db9 (patch)
treefb21f2cea8f5db1dc187cdbdd01f43e73bbddfff /wscript
parent329f498d901f9be9c0c820749850f5277a17df5d (diff)
downloadingen-a99b72e4adbc4c28fadc08d29299d99405f72db9.tar.gz
ingen-a99b72e4adbc4c28fadc08d29299d99405f72db9.tar.bz2
ingen-a99b72e4adbc4c28fadc08d29299d99405f72db9.zip
Add FilePath class and remove use of glib path utilities
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/wscript b/wscript
index d934c669..80ca3119 100644
--- a/wscript
+++ b/wscript
@@ -205,6 +205,8 @@ def configure(conf):
autowaf.display_msg(conf, "Socket interface", conf.is_defined('HAVE_SOCKET'))
print('')
+unit_tests = ['tst_FilePath']
+
def build(bld):
opts = Options.options
opts.datadir = opts.datadir or bld.env.PREFIX + 'share'
@@ -240,7 +242,7 @@ def build(bld):
# Test program
if bld.env.BUILD_TESTS:
- for i in ['ingen_test', 'ingen_bench']:
+ for i in ['ingen_test', 'ingen_bench'] + unit_tests:
obj = bld(features = 'cxx cxxprogram',
source = 'tests/%s.cpp' % i,
target = 'tests/%s' % i,
@@ -345,6 +347,10 @@ def test(ctx):
autowaf.pre_test(ctx, APPNAME, dirs=['.', 'src', 'tests'])
+ with autowaf.begin_tests(ctx, APPNAME, 'unit'):
+ for i in unit_tests:
+ autowaf.run_test(ctx, APPNAME, 'tests/' + i)
+
with autowaf.begin_tests(ctx, APPNAME, 'system'):
empty = ctx.path.find_node('tests/empty.ingen')
empty_path = os.path.join(empty.abspath(), 'main.ttl')