From 0ab7c29dddb6e30d3309cca098316aad4ba0bcb1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 5 Oct 2015 21:43:45 +0000 Subject: Fix test suite on Windows git-svn-id: http://svn.drobilla.net/sord/trunk@336 3d64ff67-21c5-427c-a301-fe4f08042e5a --- wscript | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'wscript') 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 = '

.' + 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 " a <#Thingie> ." file:///test > %s' % nul, - 'echo "

." | sordi_static - http://example.org/', - 'echo "

." | 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') -- cgit v1.2.1