2010-09-21 23:17:05 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo '### Test of --retries'
|
2010-11-29 22:59:16 +00:00
|
|
|
seq 1 10 | stdout parallel -k --retries 2 -v -S 4.3.2.1,: echo
|
2010-09-21 23:17:05 +00:00
|
|
|
|
|
|
|
echo '### Test of --retries - it should run 13 jobs in total'
|
2010-11-29 22:59:16 +00:00
|
|
|
seq 0 12 | stdout parallel --progress -kj100% --retries 1 -S 12/nlv.pi.dk,1/:,parallel@server2 -vq \
|
|
|
|
perl -e 'sleep 1;print "job{}\n";exit({})' | \
|
|
|
|
perl -ne 'BEGIN{$/="\r";} @a=(split /\//,$_); END{print $a[1]+$a[4]+$a[7],"\n"}'
|
2010-09-21 23:17:05 +00:00
|
|
|
|
|
|
|
echo '### Test of --retries - it should run 25 jobs in total'
|
2010-11-29 22:59:16 +00:00
|
|
|
seq 0 12 | stdout parallel --progress -kj100% --retries 2 -S 12/nlv.pi.dk,1/:,parallel@server2 -vq \
|
|
|
|
perl -e 'sleep 1;print "job{}\n";exit({})' | \
|
|
|
|
perl -ne 'BEGIN{$/="\r";} @a=(split /\//,$_); END{print $a[1]+$a[4]+$a[7],"\n"}'
|
2010-09-21 23:17:05 +00:00
|
|
|
|
|
|
|
echo '### Test of --retries - it should run 49 jobs in total'
|
2010-11-29 22:59:16 +00:00
|
|
|
seq 0 12 | stdout parallel --progress -kj100% --retries 4 -S 12/nlv.pi.dk,1/:,parallel@server2 -vq \
|
|
|
|
perl -e 'sleep 1;print "job{}\n";exit({})' | \
|
|
|
|
perl -ne 'BEGIN{$/="\r";} @a=(split /\//,$_); END{print $a[1]+$a[4]+$a[7],"\n"}'
|
|
|
|
|
2010-09-21 23:17:05 +00:00
|
|
|
|