xmpp-compliance-tester

XMPP Compliance Tester, forked from github.com/iNPUTmice/ComplianceTester
git clone https://git.in0rdr.ch/xmpp-compliance-tester.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

commit d29a91540d8e1d323ec8f5b73dae26ea4af4ebd2
parent 35f4be8c4292f0ae6dd5dd7446a0788d6532efac
Author: Daniel Gultsch <daniel@gultsch.de>
Date:   Sat, 22 Jul 2017 20:15:47 +0200

modified runall script to execute jobs in parallel

Diffstat:
Mrunall.sh | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/runall.sh b/runall.sh @@ -1,6 +1,13 @@ #!/bin/bash +function pwait() { + while [ $(jobs -p | wc -l) -ge $1 ]; do + sleep 1 + done +} for account in `grep entry accounts.xml | awk -F '"' '{print $2}'`; do server=$(echo $account | awk -F '@' '{print $2}') echo "testing $server" - java -jar target/ComplianceTester-0.1.jar $account > reports/$server.txt + java -jar target/ComplianceTester-0.1.jar $account > reports/$server.txt& + pwait 5 done; +