From 4c9c6ddc710898c38fe37f09cc6087aed0cadc78 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 24 May 2011 14:12:31 +0000 Subject: Add basic tests to cover sordi code paths. git-svn-id: http://svn.drobilla.net/sord/trunk@126 3d64ff67-21c5-427c-a301-fe4f08042e5a --- wscript | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/wscript b/wscript index 9bb8701..58fe209 100644 --- a/wscript +++ b/wscript @@ -209,6 +209,26 @@ def test(ctx): autowaf.pre_test(ctx, APPNAME) + autowaf.run_tests(ctx, APPNAME, [ + './sordi_static file:%s/tests/manifest.ttl > /dev/null' % srcdir, + './sordi_static file://%s/tests/manifest.ttl > /dev/null' % srcdir, + './sordi_static %s/tests/UTF-8.ttl > /dev/null' % srcdir, + './sordi_static -v > /dev/null', + './sordi_static -s " a <#Thingie> ." > /dev/null', + './sordi_static /dev/null > /dev/null'], + 0, name='sordi-cmd-good') + + autowaf.run_tests(ctx, APPNAME, [ + './sordi_static > /dev/null', + './sordi_static ftp://example.org/unsupported.ttl > /dev/null', + './sordi_static -i > /dev/null', + './sordi_static -o > /dev/null', + './sordi_static -z > /dev/null', + './sordi_static -i illegal > /dev/null', + './sordi_static -o illegal > /dev/null', + './sordi_static /no/such/file > /dev/null'], + 1, name='sordi-cmd-bad') + autowaf.run_tests(ctx, APPNAME, ['./sord_test']) commands = [] -- cgit v1.2.1