mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 14:07:55 +00:00
testsuite: Test for --sshdelay. Fixed other tests.
This commit is contained in:
parent
7dc6927898
commit
8d7e0f4a4f
|
@ -2,5 +2,5 @@
|
||||||
|
|
||||||
cat <<'EOF' | sed -e s/\$SERVER1/$SERVER1/\;s/\$SERVER2/$SERVER2/ | parallel -j10 -k -L1
|
cat <<'EOF' | sed -e s/\$SERVER1/$SERVER1/\;s/\$SERVER2/$SERVER2/ | parallel -j10 -k -L1
|
||||||
echo '### Test bug #34241: --pipe should not spawn unneeded processes'
|
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
|
EOF
|
||||||
|
|
|
@ -112,4 +112,6 @@ echo '### -k -i -0'
|
||||||
echo '### -k -0 -i repl'
|
echo '### -k -0 -i repl'
|
||||||
printf '1\0002\0003\0004\0005\000' | stdout parallel -k -0 -i repl echo repl OK
|
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
|
EOF
|
||||||
|
|
8
testsuite/wanted-results/parallel-local-ssh1
Normal file
8
testsuite/wanted-results/parallel-local-ssh1
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
### Test bug #34241: --pipe should not spawn unneeded processes
|
||||||
|
1
|
||||||
|
2
|
||||||
|
Block_end
|
||||||
|
3
|
||||||
|
4
|
||||||
|
5
|
||||||
|
Block_end
|
|
@ -57,6 +57,7 @@ number2.c
|
||||||
### Test {#.}
|
### Test {#.}
|
||||||
a/number2
|
a/number2
|
||||||
### bug #34241: --pipe should not spawn unneeded processes
|
### bug #34241: --pipe should not spawn unneeded processes
|
||||||
|
OK
|
||||||
### Test of quoting of > bug
|
### Test of quoting of > bug
|
||||||
>/dev/null
|
>/dev/null
|
||||||
### Test of quoting of > bug if line continuation
|
### Test of quoting of > bug if line continuation
|
||||||
|
|
|
@ -197,3 +197,5 @@ OK
|
||||||
3 OK
|
3 OK
|
||||||
4 OK
|
4 OK
|
||||||
5 OK
|
5 OK
|
||||||
|
### test --sshdelay
|
||||||
|
OK
|
||||||
|
|
|
@ -42,8 +42,8 @@ def 3
|
||||||
2 6 54
|
2 6 54
|
||||||
2 6 54
|
2 6 54
|
||||||
### Test --table-size --tablesize
|
### Test --table-size --tablesize
|
||||||
39
|
42
|
||||||
39
|
42
|
||||||
### Test --debug
|
### Test --debug
|
||||||
dburl mysql://sqlunittest:CB5A1FFFA5A@localhost:3306/sqlunittest
|
dburl mysql://sqlunittest:CB5A1FFFA5A@localhost:3306/sqlunittest
|
||||||
databasedriver mysql user sqlunittest password CB5A1FFFA5A host localhost port 3306 database sqlunittest query
|
databasedriver mysql user sqlunittest password CB5A1FFFA5A host localhost port 3306 database sqlunittest query
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
### Test -k
|
### 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
|
begin
|
||||||
1
|
1
|
||||||
2
|
2
|
||||||
|
|
Loading…
Reference in a new issue