summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-24 14:12:31 +0000
committerDavid Robillard <d@drobilla.net>2011-05-24 14:12:31 +0000
commit4c9c6ddc710898c38fe37f09cc6087aed0cadc78 (patch)
treead8b61b71d8c35a2035facb63af05eafe54c8d96 /wscript
parent936c70a02f140c3ad9d13f2b222859479e860690 (diff)
downloadsord-4c9c6ddc710898c38fe37f09cc6087aed0cadc78.tar.gz
sord-4c9c6ddc710898c38fe37f09cc6087aed0cadc78.tar.bz2
sord-4c9c6ddc710898c38fe37f09cc6087aed0cadc78.zip
Add basic tests to cover sordi code paths.
git-svn-id: http://svn.drobilla.net/sord/trunk@126 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'wscript')
-rw-r--r--wscript20
1 files changed, 20 insertions, 0 deletions
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 "<foo> 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 = []