parallel/testsuite/tests-to-run/test30.sh

29 lines
1 KiB
Bash
Raw Permalink Normal View History

#!/bin/bash
cat <<'EOF' | parallel -j0 -k
echo '### Test of --eta'
2014-02-16 15:34:47 +00:00
seq 1 10 | stdout parallel --eta "sleep 1; echo {}" | wc -l
echo '### Test of --eta with no jobs'
2014-02-16 15:34:47 +00:00
stdout parallel --eta "sleep 1; echo {}" < /dev/null
echo '### Test of --progress'
2014-02-16 15:34:47 +00:00
seq 1 10 | stdout parallel --progress "sleep 1; echo {}" | wc -l
echo '### Test of --progress with no jobs'
2014-02-16 15:34:47 +00:00
stdout parallel --progress "sleep 1; echo {}" < /dev/null
echo '### bug #34422: parallel -X --eta crashes with div by zero'
2012-11-19 23:42:19 +00:00
# We do not care how long it took
2014-02-16 15:34:47 +00:00
seq 2 | stdout parallel -X --eta echo | grep -E -v 'ETA:.*AVG'
echo '### --timeout --onall on remote machines: 2*slept 1, 2 jobs failed'
2014-02-16 15:34:47 +00:00
parallel -j0 --timeout 6 --onall -S localhost,parallel@parallel-server1 'sleep {}; echo slept {}' ::: 1 8 9 ; echo jobs failed: $?
echo '### --pipe without command'
2014-02-16 15:34:47 +00:00
seq -w 10 | stdout parallel --pipe
echo '### bug #36260: {n} expansion in --colsep files fails for empty fields if all following fields are also empty'
2014-02-16 15:34:47 +00:00
echo A,B,, | parallel --colsep , echo {1}{3}{2}
EOF