2014-07-15 00:40:38 +00:00
|
|
|
echo '### Test of --eta'
|
2010-08-21 23:29:26 +00:00
|
|
|
### Test of --eta
|
2014-07-15 00:40:38 +00:00
|
|
|
seq 1 10 | stdout parallel --eta "sleep 1; echo {}" | wc -l
|
2010-08-21 23:29:26 +00:00
|
|
|
16
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '### Test of --eta with no jobs'
|
2010-08-26 18:03:59 +00:00
|
|
|
### Test of --eta with no jobs
|
2014-07-15 00:40:38 +00:00
|
|
|
stdout parallel --eta "sleep 1; echo {}" < /dev/null
|
2010-08-26 18:03:59 +00:00
|
|
|
|
|
|
|
Computers / CPU cores / Max jobs to run
|
2013-11-22 17:24:09 +00:00
|
|
|
1:local / 8 / 1
|
2014-08-27 21:29:15 +00:00
|
|
|
ETA: 0s Left: 0 AVG: 0.00s 0
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '### Test of --progress'
|
2010-08-21 23:29:26 +00:00
|
|
|
### Test of --progress
|
2014-07-15 00:40:38 +00:00
|
|
|
seq 1 10 | stdout parallel --progress "sleep 1; echo {}" | wc -l
|
2010-08-21 23:29:26 +00:00
|
|
|
16
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '### Test of --progress with no jobs'
|
2010-08-26 18:03:59 +00:00
|
|
|
### Test of --progress with no jobs
|
2014-07-15 00:40:38 +00:00
|
|
|
stdout parallel --progress "sleep 1; echo {}" < /dev/null
|
2010-08-26 18:03:59 +00:00
|
|
|
|
|
|
|
Computers / CPU cores / Max jobs to run
|
2013-11-22 17:24:09 +00:00
|
|
|
1:local / 8 / 1
|
2012-10-22 06:32:39 +00:00
|
|
|
0
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '### bug #34422: parallel -X --eta crashes with div by zero'
|
2011-10-23 00:28:51 +00:00
|
|
|
### bug #34422: parallel -X --eta crashes with div by zero
|
2014-07-15 00:40:38 +00:00
|
|
|
# We do not care how long it took
|
|
|
|
seq 2 | stdout parallel -X --eta echo | grep -E -v 'ETA:.*AVG'
|
2011-10-23 00:28:51 +00:00
|
|
|
|
|
|
|
Computers / CPU cores / Max jobs to run
|
2013-11-22 17:24:09 +00:00
|
|
|
1:local / 8 / 1
|
2010-08-26 18:03:59 +00:00
|
|
|
|
2012-04-20 18:49:40 +00:00
|
|
|
Computer:jobs running/jobs completed/%of started jobs/Average seconds to complete
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '### --timeout --onall on remote machines: 2*slept 1, 2 jobs failed'
|
2012-08-06 22:52:08 +00:00
|
|
|
### --timeout --onall on remote machines: 2*slept 1, 2 jobs failed
|
2014-07-15 00:40:38 +00:00
|
|
|
parallel -j0 --timeout 6 --onall -S localhost,parallel@parallel-server1 'sleep {}; echo slept {}' ::: 1 8 9 ; echo jobs failed: $?
|
2012-08-06 22:52:08 +00:00
|
|
|
slept 1
|
2012-01-07 02:29:48 +00:00
|
|
|
slept 1
|
|
|
|
jobs failed: 2
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '### --pipe without command'
|
2011-12-18 20:49:37 +00:00
|
|
|
### --pipe without command
|
2014-07-15 00:40:38 +00:00
|
|
|
seq -w 10 | stdout parallel --pipe
|
2012-08-08 16:38:29 +00:00
|
|
|
parallel: Error: --pipe must have a command to pipe into (e.g. 'cat').
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '### bug #36260: {n} expansion in --colsep files fails for empty fields if all following fields are also empty'
|
2012-04-20 18:49:40 +00:00
|
|
|
### bug #36260: {n} expansion in --colsep files fails for empty fields if all following fields are also empty
|
2014-07-15 00:40:38 +00:00
|
|
|
echo A,B,, | parallel --colsep , echo {1}{3}{2}
|
2012-04-20 18:49:40 +00:00
|
|
|
AB
|