2010-08-21 23:29:26 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2011-12-10 23:16:41 +00:00
|
|
|
|
|
|
|
cat <<'EOF' | parallel -j0 -k
|
2010-08-21 23:29:26 +00:00
|
|
|
echo '### Test of --eta'
|
|
|
|
seq 1 10 | stdout parallel --eta "sleep 1; echo {}" | wc -l
|
|
|
|
|
2010-08-26 18:03:59 +00:00
|
|
|
echo '### Test of --eta with no jobs'
|
|
|
|
stdout parallel --eta "sleep 1; echo {}" < /dev/null
|
|
|
|
|
2010-08-21 23:29:26 +00:00
|
|
|
echo '### Test of --progress'
|
|
|
|
seq 1 10 | stdout parallel --progress "sleep 1; echo {}" | wc -l
|
2010-08-26 18:03:59 +00:00
|
|
|
|
|
|
|
echo '### Test of --progress with no jobs'
|
|
|
|
stdout parallel --progress "sleep 1; echo {}" < /dev/null
|
2011-10-17 22:04:20 +00:00
|
|
|
|
|
|
|
echo '### bug #34422: parallel -X --eta crashes with div by zero'
|
|
|
|
seq 2 | stdout parallel -X --eta echo
|
2011-12-10 23:16:41 +00:00
|
|
|
|
|
|
|
echo '### --timeout on remote machines'
|
2012-02-20 23:40:47 +00:00
|
|
|
parallel -j0 --timeout 4 --onall -S localhost,parallel@parallel-server1 'sleep {}; echo slept {}' ::: 1 8 9 ; echo jobs failed: $?
|
2011-12-18 20:49:37 +00:00
|
|
|
|
|
|
|
echo '### --pipe without command'
|
|
|
|
seq -w 10 | stdout parallel --pipe
|
2012-04-20 18:49:40 +00:00
|
|
|
|
|
|
|
echo '### bug #36260: {n} expansion in --colsep files fails for empty fields if all following fields are also empty'
|
|
|
|
echo A,B,, | parallel --colsep , echo {1}{3}{2}
|
2011-12-10 23:16:41 +00:00
|
|
|
EOF
|