aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2017-08-24 16:51:34 +0200
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2017-08-24 17:19:07 +0200
commitead57767f78e0fd661d9b54b8320197712f4988b (patch)
tree1d640e21abd0b3ae14cb919f1781514452459bdb /test
parentf12d9686d4d673e59b8f561c49996820763220b1 (diff)
Added testcase for examples/printcap
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_examples.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_examples.py b/test/test_examples.py
index 760e56f..599726b 100755
--- a/test/test_examples.py
+++ b/test/test_examples.py
@@ -25,6 +25,12 @@ TEST_FILE = __file__
pytestmark = fuse_test_marker()
+def test_printcap():
+ cmdline = base_cmdline + [ pjoin(basename, 'example', 'printcap') ]
+ proc = subprocess.Popen(cmdline, stdout=subprocess.PIPE,
+ universal_newlines=True)
+ (stdout, _) = proc.communicate(30)
+ assert proc.returncode == 0
with open(TEST_FILE, 'rb') as fh:
TEST_DATA = fh.read()