2014-07-15 00:40:38 +00:00
echo '### Bug in --load'; nice parallel -k --load 30 sleep 0.1\;echo ::: 1 2 3
2013-03-23 20:39:48 +00:00
### Bug in --load
1
2
3
2014-07-15 00:40:38 +00:00
echo '### Test --joblog followed by --resume --joblog'
2013-03-23 20:39:48 +00:00
### Test --joblog followed by --resume --joblog
2015-01-03 17:57:37 +00:00
rm -f /tmp/joblog; timeout -k 1 1 parallel -j2 --joblog /tmp/joblog sleep {} ::: 1.1 2.2 3.3 4.4 2>/dev/null; parallel -j2 --resume --joblog /tmp/joblog sleep {} ::: 1.1 2.2 3.3 4.4; cat /tmp/joblog | wc -lw; rm -f /tmp/joblog; echo '### Test --resume --joblog followed by --resume --joblog'; rm -f /tmp/joblog2; timeout -k 1 1 parallel -j2 --resume --joblog /tmp/joblog2 sleep {} ::: 1.1 2.2 3.3 4.4 2>/dev/null; parallel -j2 --resume --joblog /tmp/joblog2 sleep {} ::: 1.1 2.2 3.3 4.4; cat /tmp/joblog2 | wc -lw; rm -f /tmp/joblog2; echo '### Test --header'
2013-03-23 20:39:48 +00:00
5 49
### Test --resume --joblog followed by --resume --joblog
5 49
### Test --header
2015-01-03 17:57:37 +00:00
printf "a\tb\n1.2\t3/4.5" | parallel --colsep "\t" --header "\n" echo {b} {a} {b.} {b/} {b//} {b/.}
2013-03-23 20:39:48 +00:00
3/4.5 1.2 3/4 4.5 3 4
2015-01-03 17:57:37 +00:00
echo '### 64-bit wierdness - this did not complete on a 64-bit machine'; seq 1 2 | parallel -j1 'seq 1 1 | parallel true'
2013-03-23 20:39:48 +00:00
### 64-bit wierdness - this did not complete on a 64-bit machine
2015-01-03 17:57:37 +00:00
echo "### BUG-fix: bash -c 'parallel -a <(seq 1 3) echo'"
2013-03-23 20:39:48 +00:00
### BUG-fix: bash -c 'parallel -a <(seq 1 3) echo'
2015-01-03 17:57:37 +00:00
stdout bash -c 'parallel -k -a <(seq 1 3) echo'
2013-03-23 20:39:48 +00:00
1
2
3
2015-01-03 17:57:37 +00:00
echo "### bug #35268: shell_quote doesn't treats [] brackets correctly"
2013-03-23 20:39:48 +00:00
### bug #35268: shell_quote doesn't treats [] brackets correctly
2015-02-01 15:57:31 +00:00
touch /tmp/foo1; stdout parallel echo ::: '/tmp/foo[123]'; rm /tmp/foo1
2013-03-23 20:39:48 +00:00
/tmp/foo[123]
2014-07-15 00:40:38 +00:00
echo '### Test bug #35820: sem breaks if $HOME is not writable'
2012-05-13 14:03:13 +00:00
### Test bug #35820: sem breaks if $HOME is not writable
2018-12-29 20:04:58 +00:00
echo 'Workaround: use another writable dir'; rm -rf /tmp/.parallel || echo /tmp/.parallel wrong owner?; HOME=/tmp sem echo OK; HOME=/tmp sem --wait; ssh lo 'HOME=/usr/this/should/fail stdout sem echo should fail'
2012-05-13 14:03:13 +00:00
Workaround: use another writable dir
OK
2017-04-22 20:42:11 +00:00
parallel: Error: Cannot change into non-executable dir /usr/this/should/fail/.parallel/semaphores: No such file or directory