diff options
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 |