testsuite: Test for --sshdelay. Fixed other tests.

This commit is contained in:
Ole Tange 2013-01-21 23:10:34 +01:00
parent 7dc6927898
commit 8d7e0f4a4f
7 changed files with 17 additions and 4 deletions

View file

@ -2,5 +2,5 @@
cat <<'EOF' | sed -e s/\$SERVER1/$SERVER1/\;s/\$SERVER2/$SERVER2/ | parallel -j10 -k -L1
echo '### Test bug #34241: --pipe should not spawn unneeded processes'
seq 5 | ssh csh@lo parallel --block 5 --pipe -j10 cat\\\;echo Block_end
seq 5 | ssh csh@lo parallel -k --block 5 --pipe -j10 cat\\\;echo Block_end
EOF

View file

@ -112,4 +112,6 @@ echo '### -k -i -0'
echo '### -k -0 -i repl'
printf '1\0002\0003\0004\0005\000' | stdout parallel -k -0 -i repl echo repl OK
echo '### test --sshdelay'
stdout /usr/bin/time -f %e parallel -j0 --sshdelay 0.5 -S localhost true ::: 1 2 3 | perl -ne 'print($_ > 1.80 ? "OK\n" : "Not OK\n")'
EOF

View file

@ -0,0 +1,8 @@
### Test bug #34241: --pipe should not spawn unneeded processes
1
2
Block_end
3
4
5
Block_end

View file

@ -57,6 +57,7 @@ number2.c
### Test {#.}
a/number2
### bug #34241: --pipe should not spawn unneeded processes
OK
### Test of quoting of > bug
>/dev/null
### Test of quoting of > bug if line continuation

View file

@ -197,3 +197,5 @@ OK
3 OK
4 OK
5 OK
### test --sshdelay
OK

View file

@ -42,8 +42,8 @@ def 3
2 6 54
2 6 54
### Test --table-size --tablesize
39
39
42
42
### Test --debug
dburl mysql://sqlunittest:CB5A1FFFA5A@localhost:3306/sqlunittest
databasedriver mysql user sqlunittest password CB5A1FFFA5A host localhost port 3306 database sqlunittest query

View file

@ -1,5 +1,5 @@
### Test -k
parallel: Warning: Only enough filehandles to run 20 jobs in parallel. Raising ulimit -n may help.
parallel: Warning: Only enough filehandles to run 19 jobs in parallel. Raising ulimit -n may help.
begin
1
2