From 9afb76e19e67951f6e6273acbbd35ceafb376e45 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 5 May 2019 16:12:38 +0200 Subject: Add support for reading multiple files at once --- wscript | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index a1f16b4e..31d3f36e 100644 --- a/wscript +++ b/wscript @@ -625,7 +625,7 @@ def test(tst): import tempfile # Create test output directories - for i in ['bad', 'good', 'lax', 'terse', + for i in ['bad', 'good', 'lax', 'terse', 'multifile', 'TurtleTests', 'NTriplesTests', 'NQuadsTests', 'TriGTests']: try: test_dir = os.path.join('tests', i) @@ -682,6 +682,13 @@ def test(tst): stdout.seek(0, 2) # Seek to end check(lambda: stdout.tell() == 0, name='empty output') + with tst.group('MultiFile') as check: + path = '%s/tests/multifile' % srcdir + check([serdi, '%s/input1.ttl' % path, '%s/input2.trig' % path], + stdout='tests/multifile/output.out.nq') + check.file_equals('%s/tests/multifile/output.nq' % srcdir, + 'tests/multifile/output.out.nq') + with tst.group('BadCommands', expected=1, stderr=autowaf.NONEMPTY) as check: -- cgit v1.2.1