source: wpa_supplicant/vendor/current/tests/hwsim/vm/parallel-vm.sh@ 793

Last change on this file since 793 was 793, checked in by andi.b@gmx.net, 11 years ago

wpa_supplicant: initial import of wpa_supplicant2.2

  • Property svn:eol-style set to native
File size: 695 bytes
Line 
1#!/bin/bash
2
3cd "$(dirname $0)"
4
5NUM=$1
6if [ -z "$NUM" ]; then
7 echo "usage: $0 <num servers> [params..]"
8 exit 1
9fi
10shift
11
12LOGS=/tmp/hwsim-test-logs
13mkdir -p $LOGS
14DATE=$(date +%s)
15
16for i in `seq 1 $NUM`; do
17 printf "\rStarting virtual machine $i/$NUM"
18 ./vm-run.sh --ext srv.$i --split $i/$NUM $* >> $LOGS/parallel-$DATE.srv.$i 2>&1 &
19done
20echo
21
22echo "Waiting for virtual machines to complete testing"
23count=$NUM
24for i in `seq 1 $NUM`; do
25 printf "\r$count VM(s) remaining "
26 wait -n
27 count=$((count-1))
28done
29printf "\rTesting completed "
30echo
31
32echo -n "PASS count: "
33grep ^PASS $LOGS/parallel-$DATE.srv.* | wc -l
34cat $LOGS/parallel-$DATE.srv.* | grep FAIL | sort
Note: See TracBrowser for help on using the repository browser.