summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-10-05 21:43:45 +0000
committerDavid Robillard <d@drobilla.net>2015-10-05 21:43:45 +0000
commit0ab7c29dddb6e30d3309cca098316aad4ba0bcb1 (patch)
treec0cbf1da563a96ea76341cda14b716ee82ad0e33
parent3f4d613ed7556d8420e7edebe1530c75193be5d0 (diff)
downloadsord-0ab7c29dddb6e30d3309cca098316aad4ba0bcb1.tar.gz
sord-0ab7c29dddb6e30d3309cca098316aad4ba0bcb1.tar.bz2
sord-0ab7c29dddb6e30d3309cca098316aad4ba0bcb1.zip
Fix test suite on Windows
git-svn-id: http://svn.drobilla.net/sord/trunk@336 3d64ff67-21c5-427c-a301-fe4f08042e5a
-rw-r--r--wscript13
1 files changed, 9 insertions, 4 deletions
diff --git a/wscript b/wscript
index 5d12e43..97d91f8 100644
--- a/wscript
+++ b/wscript
@@ -2,6 +2,7 @@
import glob
import os
import subprocess
+import sys
import waflib.Logs as Logs
import waflib.Options as Options
import waflib.extras.autowaf as autowaf
@@ -273,14 +274,18 @@ def test(ctx):
nul = os.devnull
+ snippet = '<s> <p> <o> .'
+ if sys.platform == "win32":
+ snippet = snippet.replace('<', '^<').replace('>', '^>')
+
autowaf.run_tests(ctx, APPNAME, [
- 'sordi_static file://%s/tests/manifest.ttl > %s' % (srcdir, nul),
- 'sordi_static %s/tests/UTF-8.ttl > %s' % (srcdir, nul),
+ 'sordi_static "file://%s/tests/manifest.ttl" > %s' % (srcdir, nul),
+ 'sordi_static "%s/tests/UTF-8.ttl" > %s' % (srcdir, nul),
'sordi_static -v > %s' % nul,
'sordi_static -h > %s' % nul,
'sordi_static -s "<foo> a <#Thingie> ." file:///test > %s' % nul,
- 'echo "<s> <p> <o> ." | sordi_static - http://example.org/',
- 'echo "<s> <p> <o> ." | sordi_static -o turtle - http://example.org/',
+ 'echo %s | sordi_static - http://example.org/' % snippet,
+ 'echo %s | sordi_static -o turtle - http://example.org/' % snippet,
'sordi_static %s > %s' % (nul, nul)],
0, name='sordi-cmd-good')