summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2008-01-13 13:58:53 -0500
committerAdrian Likins <alikins@redhat.com>2008-01-13 13:58:53 -0500
commit7fb08fcd547515e1b1764fcdae15c60d9ac81e2e (patch)
tree03db42a6ab08ed1cc9370f62a06fea059668abc2 /test
parent421ff0639e74b52ac723ed53c0368b2c980b838f (diff)
downloadthird_party-func-7fb08fcd547515e1b1764fcdae15c60d9ac81e2e.tar.gz
third_party-func-7fb08fcd547515e1b1764fcdae15c60d9ac81e2e.tar.xz
third_party-func-7fb08fcd547515e1b1764fcdae15c60d9ac81e2e.zip
add some test to pound on the threaded xmlrpc server a little bit
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-it.sh22
1 files changed, 22 insertions, 0 deletions
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