2014-11-07 10:05:24 +00:00
|
|
|
|
echo "### bug #43518: GNU Parallel doesn't obey servers' jobs capacity when an ssh login file is reloaded"
|
|
|
|
|
### bug #43518: GNU Parallel doesn't obey servers' jobs capacity when an ssh login file is reloaded
|
|
|
|
|
# Pre-20141106 Would reset the number of jobs run on all sshlogin if --slf changed
|
|
|
|
|
# Thus must take at least 25 sec to run
|
2015-02-01 13:38:26 +00:00
|
|
|
|
echo -e '1/lo\n1/csh@lo\n1/tcsh@lo\n1/parallel@lo\n' > /tmp/parallel.bug43518; parallel --delay 0.1 -N0 echo 1/: '>>' /tmp/parallel.bug43518 ::: {1..100} & seq 30 | stdout /usr/bin/time -f %e parallel --slf /tmp/parallel.bug43518 'sleep {=$_=$_%3?0:10=}.{%}' | perl -ne '$_ > 25 and print "OK\n"'; rm /tmp/parallel.bug43518
|
2014-11-07 10:05:24 +00:00
|
|
|
|
OK
|
2014-07-15 00:40:38 +00:00
|
|
|
|
echo '### --filter-hosts --slf <()'
|
2013-10-21 20:31:52 +00:00
|
|
|
|
### --filter-hosts --slf <()
|
2014-07-15 00:40:38 +00:00
|
|
|
|
parallel --nonall --filter-hosts --slf <(echo localhost) echo OK
|
2013-10-21 20:31:52 +00:00
|
|
|
|
OK
|
2014-07-15 00:40:38 +00:00
|
|
|
|
echo '### --wd no-such-dir - csh'
|
2014-06-23 00:04:37 +00:00
|
|
|
|
### --wd no-such-dir - csh
|
2014-07-15 00:40:38 +00:00
|
|
|
|
stdout parallel --wd /no-such-dir -S csh@localhost echo ::: "ERROR IF PRINTED"; echo Exit code $?
|
2013-12-04 16:12:09 +00:00
|
|
|
|
mkdir: cannot create directory ‘/no-such-dir’: Permission denied
|
2015-01-02 12:07:44 +00:00
|
|
|
|
parallel: Cannot chdir to /no-such-dir
|
2013-12-04 16:12:09 +00:00
|
|
|
|
Exit code 1
|
2014-07-15 00:40:38 +00:00
|
|
|
|
echo '### --wd no-such-dir - tcsh'
|
2014-06-23 00:04:37 +00:00
|
|
|
|
### --wd no-such-dir - tcsh
|
2014-07-15 00:40:38 +00:00
|
|
|
|
stdout parallel --wd /no-such-dir -S tcsh@localhost echo ::: "ERROR IF PRINTED"; echo Exit code $?
|
2013-12-04 16:12:09 +00:00
|
|
|
|
mkdir: cannot create directory ‘/no-such-dir’: Permission denied
|
2015-01-02 12:07:44 +00:00
|
|
|
|
parallel: Cannot chdir to /no-such-dir
|
2013-12-04 16:12:09 +00:00
|
|
|
|
Exit code 1
|
2014-07-15 00:40:38 +00:00
|
|
|
|
echo '### --wd no-such-dir - bash'
|
2014-06-23 00:04:37 +00:00
|
|
|
|
### --wd no-such-dir - bash
|
2014-07-15 00:40:38 +00:00
|
|
|
|
stdout parallel --wd /no-such-dir -S parallel@localhost echo ::: "ERROR IF PRINTED"; echo Exit code $?
|
2013-12-04 16:12:09 +00:00
|
|
|
|
mkdir: cannot create directory ‘/no-such-dir’: Permission denied
|
2015-01-02 12:07:44 +00:00
|
|
|
|
parallel: Cannot chdir to /no-such-dir
|
2013-12-04 16:12:09 +00:00
|
|
|
|
Exit code 1
|
2014-07-15 13:58:31 +00:00
|
|
|
|
echo '### bug #42725: csh with \n in variables'
|
|
|
|
|
### bug #42725: csh with \n in variables
|
2014-10-15 22:37:02 +00:00
|
|
|
|
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
|
2015-01-02 12:07:44 +00:00
|
|
|
|
This is not csh/tcsh
|
2014-12-29 23:31:02 +00:00
|
|
|
|
CSH/TCSH DO NOT SUPPORT newlines IN VARIABLES/FUNCTIONS. Unset not_csh
|
|
|
|
|
CSH/TCSH DO NOT SUPPORT newlines IN VARIABLES/FUNCTIONS. Unset not_csh
|
2014-10-15 22:37:02 +00:00
|
|
|
|
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
|
2014-10-26 08:16:56 +00:00
|
|
|
|
echo '### bug #42999: --pipepart with remote does not work'
|
|
|
|
|
### bug #42999: --pipepart with remote does not work
|
2015-02-01 15:57:31 +00:00
|
|
|
|
seq 100 > /tmp/bug42999; chmod 600 /tmp/bug42999; parallel --sshdelay 0.3 --pipepart --block 31 -a /tmp/bug42999 -k -S parallel@lo wc | perl -pe s:/tmp/.........pip:/tmp/XXXX: ; parallel --sshdelay 0.2 --pipepart --block 31 -a /tmp/bug42999 -k --fifo -S parallel@lo wc | perl -pe s:/tmp/.........pip:/tmp/XXXX: ; parallel --sshdelay 0.1 --pipepart --block 31 -a /tmp/bug42999 -k --cat -S parallel@lo wc | perl -pe s:/tmp/.........pip:/tmp/XXXX: ; rm /tmp/bug42999
|
2014-10-26 08:16:56 +00:00
|
|
|
|
13 14 32
|
|
|
|
|
11 11 33
|
|
|
|
|
11 11 33
|
|
|
|
|
11 11 33
|
|
|
|
|
11 11 33
|
|
|
|
|
11 11 33
|
|
|
|
|
11 11 33
|
|
|
|
|
11 11 33
|
|
|
|
|
10 9 29
|
|
|
|
|
13 14 32 /tmp/XXXX
|
|
|
|
|
11 11 33 /tmp/XXXX
|
|
|
|
|
11 11 33 /tmp/XXXX
|
|
|
|
|
11 11 33 /tmp/XXXX
|
|
|
|
|
11 11 33 /tmp/XXXX
|
|
|
|
|
11 11 33 /tmp/XXXX
|
|
|
|
|
11 11 33 /tmp/XXXX
|
|
|
|
|
11 11 33 /tmp/XXXX
|
|
|
|
|
10 9 29 /tmp/XXXX
|
|
|
|
|
13 14 32 /tmp/XXXX
|
|
|
|
|
11 11 33 /tmp/XXXX
|
|
|
|
|
11 11 33 /tmp/XXXX
|
|
|
|
|
11 11 33 /tmp/XXXX
|
|
|
|
|
11 11 33 /tmp/XXXX
|
|
|
|
|
11 11 33 /tmp/XXXX
|
|
|
|
|
11 11 33 /tmp/XXXX
|
|
|
|
|
11 11 33 /tmp/XXXX
|
|
|
|
|
10 9 29 /tmp/XXXX
|
2015-01-17 23:20:38 +00:00
|
|
|
|
echo '### --cat gives incorrect exit value in csh'
|
|
|
|
|
### --cat gives incorrect exit value in csh
|
|
|
|
|
echo false | parallel --pipe --cat -Scsh@lo 'cat {}; false' ; echo $?; echo false | parallel --pipe --cat -Stcsh@lo 'cat {}; false' ; echo $?; echo true | parallel --pipe --cat -Scsh@lo 'cat {}; true' ; echo $?; echo true | parallel --pipe --cat -Stcsh@lo 'cat {}; true' ; echo $?; echo '### --cat and --fifo exit value in bash'
|
|
|
|
|
false
|
|
|
|
|
1
|
|
|
|
|
false
|
|
|
|
|
1
|
|
|
|
|
true
|
|
|
|
|
0
|
|
|
|
|
true
|
|
|
|
|
0
|
|
|
|
|
### --cat and --fifo exit value in bash
|
|
|
|
|
echo true | parallel --pipe --fifo -Slo 'cat {}; true' ; echo $?; echo false | parallel --pipe --fifo -Slo 'cat {}; false' ; echo $?;
|
|
|
|
|
true
|
|
|
|
|
0
|
|
|
|
|
false
|
|
|
|
|
1
|