diff --git a/doc/release_new_version b/doc/release_new_version index 5cc8859d..563e36dd 100644 --- a/doc/release_new_version +++ b/doc/release_new_version @@ -260,10 +260,14 @@ New in this release: * Comparing Golang, Scala, Elixir and Ruby for ETL http://www.dimroc.com/2014/09/29/etl-language-showdown/ -* Ubuntu 13.04でGNU ParallelをGNUモードで動かす http://qiita.com/YusukeSuzuki@github/items/7b96b5876bf980f21e85 - * Parallelizing Batch Jobs for Fun and Profit http://mikeseidle.com/tech/programming/2013/03/parallelizing-batch-jobs +* Assemble a list of which of these hosts are up or down http://opsfun.wordpress.com/2014/03/31/gnu-parallel/ + +* Running commands on many nodes simultaneously http://opsfun.wordpress.com/2014/03/31/19/ + +* Ubuntu 13.04でGNU ParallelをGNUモードで動かす http://qiita.com/YusukeSuzuki@github/items/7b96b5876bf980f21e85 + * Bug fixes and man page updates. GNU Parallel - For people who live life in the parallel lane. diff --git a/testsuite/tests-to-run/parallel-freebsd.sh b/testsuite/tests-to-run/parallel-freebsd.sh index d4a30493..de24f5e6 100644 --- a/testsuite/tests-to-run/parallel-freebsd.sh +++ b/testsuite/tests-to-run/parallel-freebsd.sh @@ -42,6 +42,20 @@ echo 'bug #40134: FreeBSD: --shebang(-wrap) with options not working' (echo '#!/usr/bin/env -S parallel --shebang-wrap -v -k -j 0 /usr/bin/perl -w :::'; echo 'print @ARGV,"\n";') > shebang-wrap-opt; chmod 755 ./shebang-wrap-opt; ./shebang-wrap-opt wrap works with options +bash -c 'echo bug \#43358: shellshock breaks exporting functions using --env _; + echo Non-shellshock-hardened to non-shellshock-hardened; + funky() { echo Function $1; }; + export -f funky; + parallel --env funky -S localhost funky ::: non-shellshock-hardened' + +bash -c 'echo bug \#43358: shellshock breaks exporting functions using --env _; + echo Non-shellshock-hardened to shellshock-hardened; + funky() { echo Function $1; }; + export -f funky; + parallel --env funky -S parallel@192.168.1.72 funky ::: shellshock-hardened' + + + EOF VBoxManage controlvm FreeBSD71 savestate diff --git a/testsuite/tests-to-run/parallel-local-ssh2.sh b/testsuite/tests-to-run/parallel-local-ssh2.sh index f1222255..ed54f919 100644 --- a/testsuite/tests-to-run/parallel-local-ssh2.sh +++ b/testsuite/tests-to-run/parallel-local-ssh2.sh @@ -16,7 +16,18 @@ echo '### bug #42725: csh with \n in variables' export -f not_csh; parallel --env not_csh -S csh@lo not_csh ::: 1; parallel --env not_csh -S tcsh@lo not_csh ::: 1; - parallel --env not_csh -S parallel@lo not_csh ::: 1; + parallel --env not_csh -S parallel@lo not_csh ::: 1 +echo '### bug #43358: shellshock breaks exporting functions using --env' + echo shellshock-hardened to shellshock-hardened; + funky() { echo Function $1; }; + export -f funky; + parallel --env funky -S parallel@localhost funky ::: shellshock-hardened + +echo '2bug #43358: shellshock breaks exporting functions using --env' + echo shellshock-hardened to non-shellshock-hardened; + funky() { echo Function $1; }; + export -f funky; + parallel --env funky -S centos3.tange.dk funky ::: non-shellshock-hardened EOF diff --git a/testsuite/tests-to-run/parallel-local150.sh b/testsuite/tests-to-run/parallel-local150.sh index 8e569a15..c6f52d58 100644 --- a/testsuite/tests-to-run/parallel-local150.sh +++ b/testsuite/tests-to-run/parallel-local150.sh @@ -10,9 +10,9 @@ export -f median cat <<'EOF' | sed -e s/\$SERVER1/$SERVER1/\;s/\$SERVER2/$SERVER2/ | parallel -vj0 -k -L1 echo '### bug #41565: Print happens in blocks - not after each job complete' echo 'The timing here is important: a full second between each' - ping -c 15 lo | parallel -j3 'echo {#}' | timestamp -dd | perl -pe '$_=int($_+0.3)."\n"' | median + perl -e 'for(1..10){print("$_\n");`sleep 1`}' | parallel -j3 'echo {#}' | timestamp -dd | perl -pe '$_=int($_+0.3)."\n"' | median echo '300 ms jobs:' - ping -i .3 -c 10 lo | parallel -j3 --delay 0.3 echo | timestamp -d -d | perl -pe 's/(.....).*/int($1*10+0.2)/e' | median + perl -e 'for(1..10){print("$_\n");`sleep .3`}' | parallel -j3 --delay 0.3 echo | timestamp -d -d | perl -pe 's/(.....).*/int($1*10+0.2)/e' | median echo '### Test --tagstring' nice parallel -j1 -X -v --tagstring a{}b echo ::: 3 4 diff --git a/testsuite/wanted-results/parallel-freebsd b/testsuite/wanted-results/parallel-freebsd index 1e016129..de71325b 100644 --- a/testsuite/wanted-results/parallel-freebsd +++ b/testsuite/wanted-results/parallel-freebsd @@ -55,3 +55,13 @@ works with /usr/bin/perl -w ./shebang-wrap-opt options options +bash -c 'echo bug \#43358: shellshock breaks exporting functions using --env _; echo Non-shellshock-hardened to non-shellshock-hardened; funky() { echo Function $1; }; export -f funky; parallel --env funky -S localhost funky ::: non-shellshock-hardened' +bug #43358: shellshock breaks exporting functions using --env _ +Non-shellshock-hardened to non-shellshock-hardened +Function non-shellshock-hardened +tcgetattr: Inappropriate ioctl for device +bash -c 'echo bug \#43358: shellshock breaks exporting functions using --env _; echo Non-shellshock-hardened to shellshock-hardened; funky() { echo Function $1; }; export -f funky; parallel --env funky -S parallel@192.168.1.72 funky ::: shellshock-hardened' +bug #43358: shellshock breaks exporting functions using --env _ +Non-shellshock-hardened to shellshock-hardened +Function shellshock-hardened +tcgetattr: Inappropriate ioctl for device diff --git a/testsuite/wanted-results/parallel-local-ssh2 b/testsuite/wanted-results/parallel-local-ssh2 index a154ff83..cca01bb7 100644 --- a/testsuite/wanted-results/parallel-local-ssh2 +++ b/testsuite/wanted-results/parallel-local-ssh2 @@ -22,7 +22,7 @@ bash: line 0: cd: /no-such-dir: No such file or directory Exit code 1 echo '### bug #42725: csh with \n in variables' ### bug #42725: csh with \n in variables - not_csh() { echo This is not csh/tcsh; }; export -f not_csh; parallel --env not_csh -S csh@lo not_csh ::: 1; parallel --env not_csh -S tcsh@lo not_csh ::: 1; parallel --env not_csh -S parallel@lo not_csh ::: 1; + not_csh() { echo This is not csh/tcsh; }; export -f not_csh; parallel --env not_csh -S csh@lo not_csh ::: 1; parallel --env not_csh -S tcsh@lo not_csh ::: 1; parallel --env not_csh -S parallel@lo not_csh ::: 1 CSH/TCSH DO NOT SUPPORT newlines IN VARIABLES/FUNCTIONS. Unset not_csh CSH/TCSH DO NOT SUPPORT newlines IN VARIABLES/FUNCTIONS. Unset not_csh This is not csh/tcsh @@ -30,3 +30,13 @@ Badly placed ()'s. }: Command not found. Badly placed ()'s. }: Command not found. +echo '### bug #43358: shellshock breaks exporting functions using --env' +### bug #43358: shellshock breaks exporting functions using --env + echo shellshock-hardened to shellshock-hardened; funky() { echo Function $1; }; export -f funky; parallel --env funky -S parallel@localhost funky ::: shellshock-hardened +shellshock-hardened to shellshock-hardened +Function shellshock-hardened +echo '2bug #43358: shellshock breaks exporting functions using --env' +2bug #43358: shellshock breaks exporting functions using --env + echo shellshock-hardened to non-shellshock-hardened; funky() { echo Function $1; }; export -f funky; parallel --env funky -S centos3.tange.dk funky ::: non-shellshock-hardened +shellshock-hardened to non-shellshock-hardened +Function non-shellshock-hardened diff --git a/testsuite/wanted-results/parallel-local150 b/testsuite/wanted-results/parallel-local150 index 5248080b..cda5403e 100644 --- a/testsuite/wanted-results/parallel-local150 +++ b/testsuite/wanted-results/parallel-local150 @@ -2,11 +2,11 @@ echo '### bug #41565: Print happens in blocks - not after each job complete' ### bug #41565: Print happens in blocks - not after each job complete echo 'The timing here is important: a full second between each' The timing here is important: a full second between each - ping -c 15 lo | parallel -j3 'echo {#}' | timestamp -dd | perl -pe '$_=int($_+0.3)."\n"' | median + perl -e 'for(1..10){print("$_\n");`sleep 1`}' | parallel -j3 'echo {#}' | timestamp -dd | perl -pe '$_=int($_+0.3)."\n"' | median 1 echo '300 ms jobs:' 300 ms jobs: - ping -i .3 -c 10 lo | parallel -j3 --delay 0.3 echo | timestamp -d -d | perl -pe 's/(.....).*/int($1*10+0.2)/e' | median + perl -e 'for(1..10){print("$_\n");`sleep .3`}' | parallel -j3 --delay 0.3 echo | timestamp -d -d | perl -pe 's/(.....).*/int($1*10+0.2)/e' | median 3 echo '### Test --tagstring' ### Test --tagstring