mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-12-23 05:07:54 +00:00
Fixed #31666: Start new jobs depending on load
This commit is contained in:
parent
ed6181773e
commit
6979e62916
13
testsuite/tests-to-run/test45.sh
Normal file
13
testsuite/tests-to-run/test45.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
SERVER1=parallel-server3
|
||||
SERVER2=parallel-server2
|
||||
|
||||
echo '### Test --load locally'
|
||||
seq 1 300 | nice timeout -k 1 14 parallel -j0 burnP6
|
||||
stdout /usr/bin/time -f %e parallel --load 10 sleep ::: 1 | perl -ne '$_ > 10 and print "OK\n"'
|
||||
|
||||
echo '### Test --load remote'
|
||||
seq 1 300 | ssh parallel@$SERVER2 nice timeout -k 1 14 parallel -j0 burnP6
|
||||
stdout /usr/bin/time -f %e parallel -S parallel@$SERVER2 --load 10 sleep ::: 1 | perl -ne '$_ > 10 and print "OK\n"'
|
4
testsuite/wanted-results/test45
Normal file
4
testsuite/wanted-results/test45
Normal file
|
@ -0,0 +1,4 @@
|
|||
### Test --load locally
|
||||
OK
|
||||
### Test --load remote
|
||||
OK
|
Loading…
Reference in a new issue