diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-11-01 17:43:44 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-11-01 17:43:44 +0100 |
commit | 2afc62578a26989713acebe085bbdcb8616069d6 (patch) | |
tree | 208d1f2aafd6e8f9070509df987f31a7c1357cb1 /t/slow.t | |
parent | 478beee7c496dee2b21cfa22c7d984e376954f7b (diff) | |
download | xe-2afc62578a26989713acebe085bbdcb8616069d6.tar.gz xe-2afc62578a26989713acebe085bbdcb8616069d6.tar.xz xe-2afc62578a26989713acebe085bbdcb8616069d6.zip |
convert test suite to tap3 and split into multiple files
Diffstat (limited to 't/slow.t')
-rwxr-xr-x | t/slow.t | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/t/slow.t b/t/slow.t new file mode 100755 index 0000000..74ba2e9 --- /dev/null +++ b/t/slow.t @@ -0,0 +1,43 @@ +#!/bin/sh +export "PATH=.:$PATH" + +printf '1..4\n' +printf '# slow tests\n' + +tap3 'is eager' <<'EOF' +{ { echo 1; sleep 1; echo 11 >/dev/stderr; echo 2; } | xe echo; } 2>&1 +>>> +1 +11 +2 +EOF + +tap3 'using -L' <<'EOF' +{ echo 1; sleep 1; + echo 2; sleep 1; + echo 3; } | + xe -j2 -L -s 'printf $1; sleep 1; echo $1' +>>> +11 +22 +33 +EOF + +tap3 'using -LL' <<'EOF' +{ echo 1; sleep 1; + echo 2; sleep 1; + echo 3; } | + xe -j2 -LL -s 'printf $1; sleep 1; echo $1' +>>> +0001= 11 +0002= 22 +0003= 33 +EOF + +tap3 'using -vvL' <<'EOF' +{ echo 1; sleep 1; + echo 2; sleep 1; + echo 3; } | + xe -j2 -vvL -s 'printf %s $1; sleep 1; echo $1' | wc -l +>>> /\s*9$/ +EOF |