Added testcase for examples/printcap
authorNikolaus Rath <Nikolaus@rath.org>
Thu, 24 Aug 2017 14:51:34 +0000 (16:51 +0200)
committerNikolaus Rath <Nikolaus@rath.org>
Thu, 24 Aug 2017 15:19:07 +0000 (17:19 +0200)
test/test_examples.py

index 760e56f28b435199240a2cb571ad4ed14bba8132..599726b193172f5ecd20257369e8ee93b786ff62 100755 (executable)
@@ -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()