2014-07-15 00:40:38 +00:00
|
|
|
echo '### bug #42089: --results with arg > 256 chars (should be 1 char shorter)'
|
2014-04-19 08:11:32 +00:00
|
|
|
### bug #42089: --results with arg > 256 chars (should be 1 char shorter)
|
2014-07-15 00:40:38 +00:00
|
|
|
parallel --results parallel_test_dir echo ::: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456; ls parallel_test_dir/1/
|
2014-04-19 08:11:32 +00:00
|
|
|
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456
|
|
|
|
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345
|
2014-07-15 00:40:38 +00:00
|
|
|
rm -rf parallel_test_dir
|
|
|
|
echo '**'
|
2014-04-19 08:11:32 +00:00
|
|
|
**
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '### Test --halt-on-error 0'; (echo "sleep 1;true"; echo "sleep 2;false";echo "sleep 3;true") | parallel -j10 --halt-on-error 0; echo $?; (echo "sleep 1;true"; echo "sleep 2;false";echo "sleep 3;true";echo "sleep 4; non_exist") | parallel -j10 --halt 0; echo $?
|
2011-07-29 11:45:34 +00:00
|
|
|
### Test --halt-on-error 0
|
|
|
|
1
|
|
|
|
2
|
2013-07-19 17:13:00 +00:00
|
|
|
/bin/bash: non_exist: command not found
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '**'
|
2013-07-19 17:13:00 +00:00
|
|
|
**
|
2015-05-10 13:02:07 +00:00
|
|
|
echo '### Test --halt-on-error 1'; (echo "sleep 1;true"; echo "sleep 2;false";echo "sleep 3;true") | parallel -j10 --halt-on-error 1; echo $?; (echo "sleep 1;true"; echo "sleep 2; non_exist";echo "sleep 3;true";echo "sleep 4; false") | parallel -j10 --halt 1; echo $?
|
2013-07-19 17:13:00 +00:00
|
|
|
### Test --halt-on-error 1
|
|
|
|
1
|
|
|
|
127
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job failed:
|
2011-07-29 11:45:34 +00:00
|
|
|
sleep 2;false
|
2015-05-02 23:22:34 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 1 jobs to finish.
|
2015-05-10 13:02:07 +00:00
|
|
|
/bin/bash: non_exist: command not found
|
2015-05-02 23:22:34 +00:00
|
|
|
parallel: This job failed:
|
2015-05-10 13:02:07 +00:00
|
|
|
sleep 2; non_exist
|
2015-05-02 23:22:34 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 2 jobs to finish.
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job failed:
|
2015-05-10 13:02:07 +00:00
|
|
|
sleep 4; false
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '**'
|
2013-07-19 17:13:00 +00:00
|
|
|
**
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '### Test --halt-on-error 2'; (echo "sleep 1;true"; echo "sleep 2;false";echo "sleep 3;true") | parallel -j10 --halt-on-error 2; echo $?; (echo "sleep 1;true"; echo "sleep 2;false";echo "sleep 3;true";echo "sleep 4; non_exist") | parallel -j10 --halt 2; echo $?
|
2013-07-19 17:13:00 +00:00
|
|
|
### Test --halt-on-error 2
|
|
|
|
1
|
2011-07-29 11:45:34 +00:00
|
|
|
1
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2;false
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2;false
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '**'
|
2013-07-19 17:13:00 +00:00
|
|
|
**
|
2015-01-02 11:55:02 +00:00
|
|
|
echo '### Test --halt -1'; (echo "sleep 1;false"; echo "sleep 2;true";echo "sleep 3;false") | parallel -j10 --halt-on-error -1; echo $?; (echo "sleep 1;false"; echo "sleep 2;true";echo "sleep 3;false";echo "sleep 4; non_exist") | parallel -j10 --halt -1; echo $?
|
|
|
|
### Test --halt -1
|
|
|
|
0
|
|
|
|
0
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job succeeded:
|
2015-01-02 11:55:02 +00:00
|
|
|
sleep 2;true
|
2015-05-02 23:22:34 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 1 jobs to finish.
|
|
|
|
parallel: This job succeeded:
|
2015-01-02 11:55:02 +00:00
|
|
|
sleep 2;true
|
2015-05-02 23:22:34 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 2 jobs to finish.
|
2015-01-02 11:55:02 +00:00
|
|
|
/bin/bash: non_exist: command not found
|
|
|
|
echo '**'
|
|
|
|
**
|
|
|
|
echo '### Test --halt -2'; (echo "sleep 1;false"; echo "sleep 2;true";echo "sleep 3;false") | parallel -j10 --halt-on-error -2; echo $?; (echo "sleep 1;false"; echo "sleep 2;true";echo "sleep 3;false";echo "sleep 4; non_exist") | parallel -j10 --halt -2; echo $?
|
|
|
|
### Test --halt -2
|
|
|
|
0
|
|
|
|
0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 2;true
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 2;true
|
|
|
|
echo '**'
|
|
|
|
**
|
2015-05-10 13:02:07 +00:00
|
|
|
echo '### Test first dying print --halt-on-error 1'; (echo 0; echo 3; seq 0 7;echo 0; echo 8) | parallel -j10 -kq --halt 1 perl -e 'sleep $ARGV[0];print STDERR @ARGV,"\n"; exit shift'; echo exit code $?
|
|
|
|
### Test first dying print --halt-on-error 1
|
|
|
|
exit code 1
|
2011-07-29 11:45:34 +00:00
|
|
|
0
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job failed:
|
2012-01-09 23:09:01 +00:00
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ shift 1
|
2015-05-02 23:22:34 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 8 jobs to finish.
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job failed:
|
2012-01-09 23:09:01 +00:00
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ shift 2
|
2015-05-02 23:22:34 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 7 jobs to finish.
|
2014-12-26 17:31:06 +00:00
|
|
|
3
|
2015-05-10 13:02:07 +00:00
|
|
|
0
|
|
|
|
1
|
|
|
|
2
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job failed:
|
2012-01-09 23:09:01 +00:00
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ shift 3
|
2015-05-02 23:22:34 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 6 jobs to finish.
|
2015-05-10 13:02:07 +00:00
|
|
|
3
|
|
|
|
parallel: This job failed:
|
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ shift 3
|
|
|
|
parallel: Starting no more jobs. Waiting for 5 jobs to finish.
|
2014-12-26 17:31:06 +00:00
|
|
|
4
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job failed:
|
2012-01-09 23:09:01 +00:00
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ shift 4
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 4 jobs to finish.
|
2014-12-26 17:31:06 +00:00
|
|
|
5
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job failed:
|
2012-01-09 23:09:01 +00:00
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ shift 5
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
2014-12-26 17:31:06 +00:00
|
|
|
6
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job failed:
|
2012-01-09 23:09:01 +00:00
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ shift 6
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 2 jobs to finish.
|
2014-12-26 17:31:06 +00:00
|
|
|
7
|
2015-05-10 13:02:07 +00:00
|
|
|
0
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job failed:
|
2012-01-09 23:09:01 +00:00
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ shift 7
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 1 jobs to finish.
|
2014-12-26 17:31:06 +00:00
|
|
|
8
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job failed:
|
2012-01-09 23:09:01 +00:00
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ shift 8
|
2015-05-10 13:02:07 +00:00
|
|
|
echo '### Test last dying print --halt-on-error 2'; (echo 0; echo 3; seq 0 7;echo 0; echo 8) | parallel -j10 -kq --halt 2 perl -e 'sleep $ARGV[0];print STDERR @ARGV,"\n"; exit shift'; echo exit code $?
|
2013-07-19 17:13:00 +00:00
|
|
|
### Test last dying print --halt-on-error 2
|
|
|
|
exit code 1
|
2011-07-29 11:45:34 +00:00
|
|
|
0
|
|
|
|
parallel: This job failed:
|
2012-01-09 23:09:01 +00:00
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ shift 1
|
2015-05-10 13:02:07 +00:00
|
|
|
echo '### Test last dying print --halt-on-error -1'; (echo 0; echo 3; seq 0 7;echo 0; echo 8) | parallel -j10 -kq --halt -1 perl -e 'sleep $ARGV[0];print STDERR @ARGV,"\n"; exit not shift'; echo exit code $?
|
2015-01-02 11:55:02 +00:00
|
|
|
### Test last dying print --halt-on-error -1
|
|
|
|
exit code 0
|
|
|
|
0
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job succeeded:
|
2015-01-02 11:55:02 +00:00
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ not\ shift 1
|
2015-05-02 23:22:34 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 8 jobs to finish.
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job succeeded:
|
2015-01-02 11:55:02 +00:00
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ not\ shift 2
|
2015-05-02 23:22:34 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 7 jobs to finish.
|
2015-01-02 11:55:02 +00:00
|
|
|
3
|
2015-05-10 13:02:07 +00:00
|
|
|
0
|
|
|
|
1
|
|
|
|
2
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job succeeded:
|
2015-01-02 11:55:02 +00:00
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ not\ shift 3
|
2015-05-02 23:22:34 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 6 jobs to finish.
|
2015-05-10 13:02:07 +00:00
|
|
|
3
|
|
|
|
parallel: This job succeeded:
|
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ not\ shift 3
|
|
|
|
parallel: Starting no more jobs. Waiting for 5 jobs to finish.
|
2015-01-02 11:55:02 +00:00
|
|
|
4
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job succeeded:
|
2015-01-02 11:55:02 +00:00
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ not\ shift 4
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 4 jobs to finish.
|
2015-01-02 11:55:02 +00:00
|
|
|
5
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job succeeded:
|
2015-01-02 11:55:02 +00:00
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ not\ shift 5
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
2015-01-02 11:55:02 +00:00
|
|
|
6
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job succeeded:
|
2015-01-02 11:55:02 +00:00
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ not\ shift 6
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 2 jobs to finish.
|
2015-01-02 11:55:02 +00:00
|
|
|
7
|
2015-05-10 13:02:07 +00:00
|
|
|
0
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job succeeded:
|
2015-01-02 11:55:02 +00:00
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ not\ shift 7
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 1 jobs to finish.
|
2015-01-02 11:55:02 +00:00
|
|
|
8
|
2015-04-27 20:56:26 +00:00
|
|
|
parallel: This job succeeded:
|
2015-01-02 11:55:02 +00:00
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ not\ shift 8
|
2015-05-10 13:02:07 +00:00
|
|
|
echo '### Test last dying print --halt-on-error -2'; (echo 0; echo 3; seq 0 7;echo 0; echo 8) | parallel -j10 -kq --halt -2 perl -e 'sleep $ARGV[0];print STDERR @ARGV,"\n"; exit not shift'; echo exit code $?
|
2015-01-02 11:55:02 +00:00
|
|
|
### Test last dying print --halt-on-error -2
|
|
|
|
exit code 0
|
|
|
|
0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
perl -e sleep\ \$ARGV\[0\]\;print\ STDERR\ @ARGV,\"\\n\"\;\ exit\ not\ shift 1
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '**'
|
2013-07-19 17:13:00 +00:00
|
|
|
**
|
2015-05-06 22:40:36 +00:00
|
|
|
testhalt() { echo '### testhalt --halt '$1; (yes 0 | head -n 10; seq 10) | stdout parallel -kj4 --halt $1 'sleep {= $_*=0.3 =}; exit {}'; echo $?; (seq 10; yes 0 | head -n 10) | stdout parallel -kj4 --halt $1 'sleep {= $_*=0.3 =}; exit {}'; echo $?; }; export -f testhalt; parallel -kj0 testhalt ::: now,fail=0 now,fail=1 now,fail=2 now,fail=30% now,fail=70% soon,fail=0 soon,fail=1 soon,fail=2 soon,fail=30% soon,fail=70% now,success=0 now,success=1 now,success=2 now,success=30% now,success=70% soon,success=0 soon,success=1 soon,success=2 soon,success=30% now,success=70%
|
|
|
|
### testhalt --halt now,fail=0
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
0
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
0
|
|
|
|
### testhalt --halt now,fail=1
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
1
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
1
|
|
|
|
### testhalt --halt now,fail=2
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.6; exit 2
|
|
|
|
2
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.6; exit 2
|
|
|
|
2
|
|
|
|
### testhalt --halt now,fail=30%
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.6; exit 2
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.9; exit 3
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.2; exit 4
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.5; exit 5
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.8; exit 6
|
2015-05-10 13:02:07 +00:00
|
|
|
30
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.6; exit 2
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.9; exit 3
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.2; exit 4
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.5; exit 5
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.8; exit 6
|
|
|
|
30
|
2015-05-06 22:40:36 +00:00
|
|
|
### testhalt --halt now,fail=70%
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.6; exit 2
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.9; exit 3
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.2; exit 4
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.5; exit 5
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.8; exit 6
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.1; exit 7
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.4; exit 8
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.7; exit 9
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 3; exit 10
|
2015-05-10 13:02:07 +00:00
|
|
|
50
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.6; exit 2
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.9; exit 3
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.2; exit 4
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.5; exit 5
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.8; exit 6
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.1; exit 7
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.4; exit 8
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.7; exit 9
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 3; exit 10
|
2015-05-10 13:02:07 +00:00
|
|
|
50
|
|
|
|
### testhalt --halt soon,fail=0
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.6; exit 2
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 2 jobs to finish.
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.9; exit 3
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 1 jobs to finish.
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.2; exit 4
|
2015-05-10 13:02:07 +00:00
|
|
|
0
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job failed:
|
2015-05-10 13:02:07 +00:00
|
|
|
sleep 0.3; exit 1
|
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job failed:
|
2015-05-10 13:02:07 +00:00
|
|
|
sleep 0.6; exit 2
|
|
|
|
parallel: Starting no more jobs. Waiting for 2 jobs to finish.
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job failed:
|
2015-05-10 13:02:07 +00:00
|
|
|
sleep 0.9; exit 3
|
|
|
|
parallel: Starting no more jobs. Waiting for 1 jobs to finish.
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job failed:
|
2015-05-10 13:02:07 +00:00
|
|
|
sleep 1.2; exit 4
|
2015-05-06 22:40:36 +00:00
|
|
|
0
|
|
|
|
### testhalt --halt soon,fail=1
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.6; exit 2
|
|
|
|
parallel: Starting no more jobs. Waiting for 2 jobs to finish.
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.9; exit 3
|
|
|
|
parallel: Starting no more jobs. Waiting for 1 jobs to finish.
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.2; exit 4
|
2015-05-10 13:02:07 +00:00
|
|
|
1
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.6; exit 2
|
|
|
|
parallel: Starting no more jobs. Waiting for 2 jobs to finish.
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.9; exit 3
|
|
|
|
parallel: Starting no more jobs. Waiting for 1 jobs to finish.
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.2; exit 4
|
2015-05-10 13:02:07 +00:00
|
|
|
1
|
2015-05-06 22:40:36 +00:00
|
|
|
### testhalt --halt soon,fail=2
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.6; exit 2
|
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.9; exit 3
|
|
|
|
parallel: Starting no more jobs. Waiting for 2 jobs to finish.
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.2; exit 4
|
|
|
|
parallel: Starting no more jobs. Waiting for 1 jobs to finish.
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.5; exit 5
|
2015-05-10 13:02:07 +00:00
|
|
|
2
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.6; exit 2
|
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.9; exit 3
|
|
|
|
parallel: Starting no more jobs. Waiting for 2 jobs to finish.
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.2; exit 4
|
|
|
|
parallel: Starting no more jobs. Waiting for 1 jobs to finish.
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.5; exit 5
|
2015-05-10 13:02:07 +00:00
|
|
|
2
|
2015-05-06 22:40:36 +00:00
|
|
|
### testhalt --halt soon,fail=30%
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.6; exit 2
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.9; exit 3
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.2; exit 4
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.5; exit 5
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.8; exit 6
|
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.1; exit 7
|
|
|
|
parallel: Starting no more jobs. Waiting for 2 jobs to finish.
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.4; exit 8
|
|
|
|
parallel: Starting no more jobs. Waiting for 1 jobs to finish.
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.7; exit 9
|
2015-05-10 13:02:07 +00:00
|
|
|
30
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.6; exit 2
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.9; exit 3
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.2; exit 4
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.5; exit 5
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.8; exit 6
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.1; exit 7
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 2 jobs to finish.
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.4; exit 8
|
|
|
|
parallel: Starting no more jobs. Waiting for 1 jobs to finish.
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.7; exit 9
|
|
|
|
30
|
2015-05-06 22:40:36 +00:00
|
|
|
### testhalt --halt soon,fail=70%
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.6; exit 2
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.9; exit 3
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.2; exit 4
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.5; exit 5
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.8; exit 6
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.1; exit 7
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.4; exit 8
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.7; exit 9
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 3; exit 10
|
2015-05-10 13:02:07 +00:00
|
|
|
50
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.3; exit 1
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.6; exit 2
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 0.9; exit 3
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.2; exit 4
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.5; exit 5
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 1.8; exit 6
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.1; exit 7
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.4; exit 8
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 2.7; exit 9
|
|
|
|
parallel: This job failed:
|
|
|
|
sleep 3; exit 10
|
2015-05-10 13:02:07 +00:00
|
|
|
50
|
2015-05-06 22:40:36 +00:00
|
|
|
### testhalt --halt now,success=0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
2015-05-10 13:02:07 +00:00
|
|
|
0
|
2015-05-06 22:40:36 +00:00
|
|
|
### testhalt --halt now,success=1
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
0
|
|
|
|
### testhalt --halt now,success=2
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
0
|
|
|
|
### testhalt --halt now,success=30%
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
2015-05-10 13:02:07 +00:00
|
|
|
0
|
|
|
|
### testhalt --halt now,success=70%
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
2015-05-10 13:02:07 +00:00
|
|
|
50
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
2015-05-10 13:02:07 +00:00
|
|
|
50
|
|
|
|
### testhalt --halt soon,success=0
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 2 jobs to finish.
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 1 jobs to finish.
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
2015-05-10 13:02:07 +00:00
|
|
|
0
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
|
|
|
0
|
2015-05-06 22:40:36 +00:00
|
|
|
### testhalt --halt soon,success=1
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: Starting no more jobs. Waiting for 2 jobs to finish.
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: Starting no more jobs. Waiting for 1 jobs to finish.
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
|
|
|
0
|
|
|
|
### testhalt --halt soon,success=2
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: Starting no more jobs. Waiting for 2 jobs to finish.
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: Starting no more jobs. Waiting for 1 jobs to finish.
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
|
|
|
0
|
|
|
|
### testhalt --halt soon,success=30%
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: Starting no more jobs. Waiting for 2 jobs to finish.
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: Starting no more jobs. Waiting for 1 jobs to finish.
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: Starting no more jobs. Waiting for 3 jobs to finish.
|
|
|
|
0
|
|
|
|
### testhalt --halt now,success=70%
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
2015-05-10 13:02:07 +00:00
|
|
|
50
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
2015-05-10 13:02:07 +00:00
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
parallel: This job succeeded:
|
|
|
|
sleep 0; exit 0
|
|
|
|
50
|
2015-05-06 22:40:36 +00:00
|
|
|
echo '**'
|
|
|
|
**
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '### Test slow arguments generation - https://savannah.gnu.org/bugs/?32834'; seq 1 3 | parallel -j1 "sleep 2; echo {}" | parallel -kj2 echo
|
2011-07-29 11:45:34 +00:00
|
|
|
### Test slow arguments generation - https://savannah.gnu.org/bugs/?32834
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
2015-04-09 23:20:51 +00:00
|
|
|
echo '**'
|
|
|
|
**
|
|
|
|
echo '### Are children killed if GNU Parallel receives TERM twice? There should be no sleep at the end'
|
|
|
|
### Are children killed if GNU Parallel receives TERM twice? There should be no sleep at the end
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel -q bash -c 'sleep 120 & pid=$!; wait $pid' ::: 1 & T=$!; sleep 2; pstree $$; kill -TERM $T; sleep 1; pstree $$; kill -TERM $T; sleep 1; pstree $$; echo '**'
|
2015-04-09 23:20:51 +00:00
|
|
|
bash-+-perl---bash---sleep
|
|
|
|
`-pstree
|
|
|
|
bash-+-perl---bash---sleep
|
|
|
|
`-pstree
|
|
|
|
bash---pstree
|
|
|
|
**
|
|
|
|
parallel: SIGTERM received. No new jobs will be started.
|
|
|
|
parallel: Waiting for these 1 jobs to finish. Send SIGTERM again to stop now.
|
|
|
|
parallel: bash -c sleep\ 120\ \&\ pid=\$\!\;\ wait\ \$pid 1
|
|
|
|
echo '### Are children killed if GNU Parallel receives INT twice? There should be no sleep at the end'
|
|
|
|
### Are children killed if GNU Parallel receives INT twice? There should be no sleep at the end
|
2015-05-06 22:40:36 +00:00
|
|
|
parallel -q bash -c 'sleep 120 & pid=$!; wait $pid' ::: 1 & T=$!; sleep 2; pstree $$; kill -INT $T; sleep 1; pstree $$;
|
2015-04-09 23:20:51 +00:00
|
|
|
bash-+-perl---bash---sleep
|
|
|
|
`-pstree
|
|
|
|
bash---pstree
|