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 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-07-22 06:28:05 +00:00
|
|
|
parallel -q bash -c 'sleep 120 & pid=$!; wait $pid' ::: 1 & T=$!; sleep 5; 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.
|
2015-05-25 00:27:30 +00:00
|
|
|
parallel: bash -c sleep\ 120\ \&\ pid\=\$\!\;\ wait\ \$pid 1
|
2015-04-09 23:20:51 +00:00
|
|
|
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-07-22 06:28:05 +00:00
|
|
|
parallel -q bash -c 'sleep 120 & pid=$!; wait $pid' ::: 1 & T=$!; sleep 5; pstree $$; kill -INT $T; sleep 1; pstree $$;
|
2015-04-09 23:20:51 +00:00
|
|
|
bash-+-perl---bash---sleep
|
|
|
|
`-pstree
|
|
|
|
bash---pstree
|