diff options
author | David Robillard <d@drobilla.net> | 2019-05-05 16:12:38 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:58 +0100 |
commit | 9afb76e19e67951f6e6273acbbd35ceafb376e45 (patch) | |
tree | d9c8251ed5dbf42a1ad2a36303c87f354717dcfa /wscript | |
parent | 036251436d8203b159043d27c9ee3f2b2cba633a (diff) | |
download | serd-9afb76e19e67951f6e6273acbbd35ceafb376e45.tar.gz serd-9afb76e19e67951f6e6273acbbd35ceafb376e45.tar.bz2 serd-9afb76e19e67951f6e6273acbbd35ceafb376e45.zip |
Add support for reading multiple files at once
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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: |