aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/wscript b/wscript
index cb930677..8b30fea5 100644
--- a/wscript
+++ b/wscript
@@ -672,9 +672,16 @@ def test(tst):
check([serdi, '-h'])
check([serdi, '-k', '512', '-s', '<foo> a <#Thingie> .'])
check([serdi, os.devnull])
+
with tempfile.TemporaryFile(mode='r') as stdin:
check([serdi, '-'], stdin=stdin)
+ with tempfile.TemporaryFile(mode='w') as stdout:
+ cmd = [serdi, '-o', 'empty', '%s/serd.ttl' % srcdir]
+ check(cmd, stdout=stdout)
+ stdout.seek(0, 2) # Seek to end
+ check(lambda: stdout.tell() == 0, name='empty output')
+
with tst.group('BadCommands',
expected=1,
stderr=autowaf.NONEMPTY) as check: