From a99b72e4adbc4c28fadc08d29299d99405f72db9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Jan 2018 00:41:34 +0100 Subject: Add FilePath class and remove use of glib path utilities --- wscript | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'wscript') 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') -- cgit v1.2.1