mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-12-23 21:27:53 +00:00
c5d11674b0
-i with no args defaults to -i {}. Use ::die_bug instead of die.
15 lines
565 B
Bash
15 lines
565 B
Bash
#!/bin/bash
|
|
|
|
echo '### Test slow arguments generation - https://savannah.gnu.org/bugs/?32834'
|
|
seq 1 3 | parallel -j1 "sleep 2; echo {}" | parallel -kj2 echo
|
|
#seq 1000000000 1000000010 | pv -L 10 -q | stdout parallel -j 10 echo
|
|
|
|
echo '### Test too slow spawning'
|
|
killall -9 burnP6 2>/dev/null
|
|
seq 1 2 | parallel -j2 -N0 timeout -k 25 26 burnP6 &
|
|
sleep 1
|
|
seq 1 1000 |
|
|
stdout nice nice parallel -s 100 -uj0 true |
|
|
perl -pe '/parallel: Warning: Starting \d+ processes took/ and do {close STDIN; `killall -9 burnP6`; print "OK\n"; exit }'
|
|
killall -9 burnP6 2>/dev/null
|