2014-07-15 00:40:38 +00:00
echo "### BUG: The length for -X is not close to max (131072)"; seq 1 60000 | nice parallel -X echo {.} aa {}{.} {}{}d{} {}dd{}d{.} |head -n 1 |wc
2012-01-09 23:09:01 +00:00
### BUG: The length for -X is not close to max (131072)
1 12821 131060
2014-07-15 00:40:38 +00:00
seq 1 60000 | nice parallel -X echo a{}b{}c |head -n 1 |wc
2012-01-09 23:09:01 +00:00
1 10948 131060
2014-07-15 00:40:38 +00:00
seq 1 60000 | nice parallel -X echo |head -n 1 |wc
2012-01-09 23:09:01 +00:00
1 23695 131064
2014-07-15 00:40:38 +00:00
seq 1 60000 | nice parallel -X echo a{}b{}c {} |head -n 1 |wc
2012-01-09 23:09:01 +00:00
1 15810 131064
2014-07-15 00:40:38 +00:00
seq 1 60000 | nice parallel -X echo {}aa{} |head -n 1 |wc
2012-01-09 23:09:01 +00:00
1 11790 131058
2014-07-15 00:40:38 +00:00
seq 1 60000 | nice parallel -X echo {} aa {} |head -n 1 |wc
2012-01-09 23:09:01 +00:00
1 25545 131055
2014-07-15 00:40:38 +00:00
echo '### bug #32191: Deep recursion on subroutine main::get_job_with_sshlogin'
2013-03-23 20:36:17 +00:00
### bug #32191: Deep recursion on subroutine main::get_job_with_sshlogin
2014-07-15 00:40:38 +00:00
seq 1 150 | stdout nice parallel -j9 --retries 2 -S localhost,: "/bin/non-existant 2>/dev/null"
echo '### Test --load locally - should take >10s'
2013-03-23 20:36:17 +00:00
### Test --load locally - should take >10s
2014-07-15 00:40:38 +00:00
echo '# This will run 10 processes in parallel for 10s'; seq 10 | parallel --nice 19 --timeout 10 -j0 -N0 "gzip < /dev/zero > /dev/null" &
2013-03-23 20:36:17 +00:00
# This will run 10 processes in parallel for 10s
2014-07-15 00:40:38 +00:00
stdout /usr/bin/time -f %e parallel --load 10 sleep ::: 1 | perl -ne '$_ > 10 and print "OK\n"'
2013-03-23 20:36:17 +00:00
OK
2014-07-15 00:40:38 +00:00
echo '### Test --load remote'
2013-03-23 20:36:17 +00:00
### Test --load remote
2014-07-15 00:40:38 +00:00
ssh parallel@parallel-server1 'seq 10 | parallel --nice 19 --timeout 10 -j0 -N0 "gzip < /dev/zero > /dev/null"' &
stdout /usr/bin/time -f %e parallel -S parallel@parallel-server1 --load 10 sleep ::: 1 | perl -ne '$_ > 10 and print "OK\n"'
2013-03-23 20:36:17 +00:00
OK
2014-07-15 00:40:38 +00:00
echo '### Test --load read from a file - more than 3s'
2013-03-23 20:36:17 +00:00
### Test --load read from a file - more than 3s
2014-07-15 00:40:38 +00:00
echo '# This will run 10 processes in parallel for 10s'; seq 10 | parallel --nice 19 --timeout 10 -j0 -N0 "gzip < /dev/zero > /dev/null" & ( echo 8 > /tmp/parallel_load_file; sleep 10; echo 1000 > /tmp/parallel_load_file ) & sleep 1;stdout /usr/bin/time -f %e parallel --load /tmp/parallel_load_file sleep ::: 1 | perl -ne '$_ > 9 and print "OK\n"'
2013-03-23 20:36:17 +00:00
# This will run 10 processes in parallel for 10s
OK
2014-07-15 00:40:38 +00:00
echo '### Test --load read from a file - less than 10s'; echo '# This will run 10 processes in parallel for 10s'; seq 10 | parallel --nice 19 --timeout 10 -j0 -N0 "gzip < /dev/zero > /dev/null" &
2013-03-23 20:36:17 +00:00
### Test --load read from a file - less than 10s
# This will run 10 processes in parallel for 10s
2014-07-15 00:40:38 +00:00
( echo 8 > /tmp/parallel_load_file2; sleep 10; echo 1000 > /tmp/parallel_load_file2 ) & sleep 1;stdout /usr/bin/time -f %e parallel --load /tmp/parallel_load_file2 sleep ::: 1 | perl -ne '$_ < 20 and print "OK\n"'
2013-03-23 20:36:17 +00:00
OK