From 6979e6291671cfcfe479735b6cafe4b26ac670d4 Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Mon, 6 Dec 2010 09:23:21 +0100 Subject: [PATCH] Fixed #31666: Start new jobs depending on load --- testsuite/tests-to-run/test45.sh | 13 +++++++++++++ testsuite/wanted-results/test45 | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 testsuite/tests-to-run/test45.sh create mode 100644 testsuite/wanted-results/test45 diff --git a/testsuite/tests-to-run/test45.sh b/testsuite/tests-to-run/test45.sh new file mode 100644 index 00000000..fce192f2 --- /dev/null +++ b/testsuite/tests-to-run/test45.sh @@ -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"' diff --git a/testsuite/wanted-results/test45 b/testsuite/wanted-results/test45 new file mode 100644 index 00000000..cf9a01e5 --- /dev/null +++ b/testsuite/wanted-results/test45 @@ -0,0 +1,4 @@ +### Test --load locally +OK +### Test --load remote +OK