Skip to content

Commit

Permalink
Adds test for testrun
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Nov 24, 2014
1 parent c747b8d commit 1bebeb7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit 1bebeb7

Please sign in to comment.