diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-07-10 17:48:07 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-07-10 17:48:07 +0200 |
commit | 5f3d549166ffc943a656c3e12a1fab07967a75f2 (patch) | |
tree | f3c8b2e88dccfdab690954856e0eab9848c4b11b /tests | |
parent | ae5958197a0832d89ad00718dc0592fda90acf87 (diff) | |
download | xe-5f3d549166ffc943a656c3e12a1fab07967a75f2.tar.gz xe-5f3d549166ffc943a656c3e12a1fab07967a75f2.tar.xz xe-5f3d549166ffc943a656c3e12a1fab07967a75f2.zip |
add tests for -L
Diffstat (limited to 'tests')
-rwxr-xr-x | tests | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests b/tests index 2e59761..6972417 100755 --- a/tests +++ b/tests @@ -1,5 +1,5 @@ #!/bin/sh -printf '1..44\n' +printf '1..47\n' set -e @@ -181,6 +181,22 @@ check_output 'is eager' '{ echo 1; sleep 1; echo 11 >/dev/stderr; echo 2; } | xe 2 EOF +check_output 'using -L' '{ echo 1; sleep 1; echo 2; sleep 1; echo 3; } | xe -j2 -L -s "printf \$1; sleep 1; echo \$1"' <<EOF +11 +22 +33 +EOF + +check_output 'using -LL' '{ echo 1; sleep 1; echo 2; sleep 1; echo 3; } | xe -j2 -LL -s "printf \$1; sleep 1; echo \$1"' <<EOF +0001= 11 +0002= 22 +0003= 33 +EOF + +check_output 'using -vvL' '{ echo 1; sleep 1; echo 2; sleep 1; echo 3; } | xe -j2 -vvL -s "printf \$1; sleep 1; echo \$1" | wc -l' <<EOF +9 +EOF + printf '# error handling\n' check_output 'exit code on success' 'true | xe; echo $?' <<EOF |