mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-23 06:27:55 +00:00
29 lines
947 B
Plaintext
29 lines
947 B
Plaintext
echo '### Test of --eta'
|
|
### Test of --eta
|
|
seq 1 10 | stdout parallel --eta "sleep 1; echo {}" | wc -l
|
|
16
|
|
echo '### Test of --eta with no jobs'
|
|
### Test of --eta with no jobs
|
|
stdout parallel --eta "sleep 1; echo {}" < /dev/null
|
|
|
|
Computers / CPU cores / Max jobs to run
|
|
1:local / 8 / 1
|
|
|
|
ETA: 0s Left: 0 AVG: 0.00s 0
|
|
echo '### Test of --progress'
|
|
### Test of --progress
|
|
seq 1 10 | stdout parallel --progress "sleep 1; echo {}" | wc -l
|
|
16
|
|
echo '### Test of --progress with no jobs'
|
|
### Test of --progress with no jobs
|
|
stdout parallel --progress "sleep 1; echo {}" < /dev/null
|
|
|
|
Computers / CPU cores / Max jobs to run
|
|
1:local / 8 / 1
|
|
|
|
0
|
|
echo '### --timeout --onall on remote machines: 2*slept 1, 2 jobs failed'
|
|
### --timeout --onall on remote machines: 2*slept 1, 2 jobs failed
|
|
parallel -j0 --timeout 6 --onall -S localhost,parallel@parallel-server1 'sleep {}; echo slept {}' ::: 1 8 9 ; echo jobs failed: $?
|
|
slept 1
|
|
slept 1
|
|
jobs failed: 2
|