aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-21 06:28:23 +0000
committerDavid Robillard <d@drobilla.net>2011-01-21 06:28:23 +0000
commitff9510dc36fb3d6c5a85e3f4d41220c59b26ee93 (patch)
treee5d64ae74cf195a8d1783d8dfe9b268369c5036e /wscript
parentc5a3f407cb46797f8b122d2f3843d382760a2c3b (diff)
downloadserd-ff9510dc36fb3d6c5a85e3f4d41220c59b26ee93.tar.gz
serd-ff9510dc36fb3d6c5a85e3f4d41220c59b26ee93.tar.bz2
serd-ff9510dc36fb3d6c5a85e3f4d41220c59b26ee93.zip
Preliminary support for writing abbreviated Turtle.
git-svn-id: http://svn.drobilla.net/serd/trunk@22 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'wscript')
-rw-r--r--wscript36
1 files changed, 19 insertions, 17 deletions
diff --git a/wscript b/wscript
index f3bf2830..e8f18366 100644
--- a/wscript
+++ b/wscript
@@ -124,10 +124,20 @@ def test(ctx):
autowaf.pre_test(ctx, APPNAME)
+ autowaf.run_tests(ctx, APPNAME,
+ ['./serdi_static > /dev/null',
+ './serdi_static ftp://example.org/unsupported.ttl > /dev/null'],
+ 1, name='serdi-fail')
+
+ autowaf.run_tests(ctx, APPNAME,
+ ['./serdi_static file:../tests/manifest.ttl > /dev/null',
+ './serdi_static ../tests/UTF-8.ttl > /dev/null'],
+ 0, name='serdi-succeed')
+
commands = []
for test in good_tests:
base_uri = 'http://www.w3.org/2001/sw/DataAccess/df1/' + test
- commands = commands + [ './serdi_static ../%s \'%s\' > %s.out' % (test, base_uri, test) ]
+ commands += [ './serdi_static ../%s \'%s\' > %s.out' % (test, base_uri, test) ]
autowaf.run_tests(ctx, APPNAME, commands, 0, name='good')
@@ -145,24 +155,16 @@ def test(ctx):
commands = []
for test in bad_tests:
- commands = commands + [ './serdi_static ../%s \'http://www.w3.org/2001/sw/DataAccess/df1/%s\' > %s.out' % (test, test, test) ]
+ commands += [ './serdi_static ../%s \'http://www.w3.org/2001/sw/DataAccess/df1/%s\' > %s.out' % (test, test, test) ]
autowaf.run_tests(ctx, APPNAME, commands, 1, name='bad')
- autowaf.run_tests(ctx, APPNAME,
- ['./serdi_static > /dev/null'],
- 1, name='serdi-no-args')
-
- autowaf.run_tests(ctx, APPNAME,
- ['./serdi_static file:../tests/manifest.ttl > /dev/null'],
- 0, name='serdi-file-uri')
-
- autowaf.run_tests(ctx, APPNAME,
- ['./serdi_static ftp://example.org/unsupported.ttl > /dev/null'],
- 1, name='serdi-bad-uri')
-
- autowaf.run_tests(ctx, APPNAME,
- ['./serdi_static ../tests/UTF-8.ttl > /dev/null'],
- 0, name='utf8')
+# commands = []
+# for test in good_tests:
+# out_filename = test + '.thru'
+# commands += [ './serdi_static -o turtle ../%s \'%s\' | ./serdi_static - \'%s\' > %s.out' % (test, base_uri, base_uri, test) ]
+#
+# autowaf.run_tests(ctx, APPNAME, commands, 0, name='turtle-write')
+#
autowaf.post_test(ctx, APPNAME)