From 1bebeb768fa5fab4915cf9b9fd80bbd1bc42b789 Mon Sep 17 00:00:00 2001 From: Remi Rampin Date: Mon, 24 Nov 2014 18:43:06 -0500 Subject: [PATCH] Adds test for testrun --- tests/functional.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/functional.py b/tests/functional.py index 89f8e25e3..ad42786f0 100755 --- a/tests/functional.py +++ b/tests/functional.py @@ -100,6 +100,19 @@ def functional_tests(raise_warnings, interactive, run_vagrant, run_docker): rpz = python + [reprozip_main.absolute().path] + verbose rpuz = python + [reprounzip_main.absolute().path] + verbose + # ######################################## + # testrun /bin/echo + # + + output = check_output(rpz + ['testrun', '/bin/echo', 'outputhere']) + assert any(b' 1 | /bin/echo outputhere ' in l + for l in output.splitlines()) + + output = check_output(rpz + ['testrun', '-a', '/fake/path/echo', + '/bin/echo', 'outputhere']) + assert any(b' 1 | (/bin/echo) /fake/path/echo outputhere ' in l + for l in output.splitlines()) + # ######################################## # 'simple' program: trace, pack, info, unpack #