From 7fb08fcd547515e1b1764fcdae15c60d9ac81e2e Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Sun, 13 Jan 2008 13:58:53 -0500 Subject: add some test to pound on the threaded xmlrpc server a little bit --- test/test-it.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'test') diff --git a/test/test-it.sh b/test/test-it.sh index 76c3cf2..b2c8f72 100755 --- a/test/test-it.sh +++ b/test/test-it.sh @@ -171,6 +171,25 @@ sign_the_certmaster_certs() } + +pound_on_the_threads() +{ + msg "Trying to poke at the threads a bit" + THREAD_COUNT=5 + for i in $MINION_CERTS + do + for Q in `seq 1 $THREAD_COUNT` + do + # background these so they run more or less in parallel to + # each minion + echo "test add $Q 6" for $i + func $i call test add "$Q" "6" & + done + done + + +} + # just some random "poke at func and make sure it works stuff" test_funcd() { @@ -186,6 +205,7 @@ test_funcd() func $i call test add "23" "45" done + } @@ -231,6 +251,8 @@ sign_the_certmaster_certs test_funcd +pound_on_the_threads + stop_the_func # see if funcd is running # see if certmaster is installed -- cgit