e0cccf26a4
This allows code coverage report to be generated must faster with the help of parallel VMs executing test cases. Signed-off-by: Jouni Malinen <j@w1.fi>
31 lines
1,015 B
Bash
Executable file
31 lines
1,015 B
Bash
Executable file
#!/bin/bash
|
|
|
|
LOGDIR=$1
|
|
POSTFIX=$2
|
|
|
|
DIR=$PWD
|
|
TMPDIR=/tmp/logs
|
|
|
|
mv $LOGDIR/alt-wpa_supplicant $TMPDIR
|
|
mv $LOGDIR/alt-hostapd $TMPDIR
|
|
mv $LOGDIR/alt-hostapd-as $TMPDIR
|
|
mv $LOGDIR/alt-hlr_auc_gw $TMPDIR
|
|
|
|
cd $TMPDIR/alt-wpa_supplicant/wpa_supplicant
|
|
lcov -c -d .. 2> lcov.log | sed s%SF:/tmp/logs/alt-[^/]*/%SF:/tmp/logs/alt-wpa_supplicant/% > $TMPDIR/lcov-wpa_supplicant.info-$POSTFIX &
|
|
|
|
cd $TMPDIR/alt-hostapd/hostapd
|
|
lcov -c -d .. 2> lcov.log | sed s%SF:/tmp/logs/alt-[^/]*/%SF:/tmp/logs/alt-wpa_supplicant/% > $TMPDIR/lcov-hostapd.info-$POSTFIX &
|
|
|
|
cd $TMPDIR/alt-hostapd-as/hostapd
|
|
lcov -c -d .. 2> lcov.log | sed s%SF:/tmp/logs/alt-[^/]*/%SF:/tmp/logs/alt-wpa_supplicant/% > $TMPDIR/lcov-hostapd-as.info-$POSTFIX &
|
|
|
|
cd $TMPDIR/alt-hlr_auc_gw/hostapd
|
|
lcov -c -d .. 2> lcov.log | sed s%SF:/tmp/logs/alt-[^/]*/%SF:/tmp/logs/alt-wpa_supplicant/% > $TMPDIR/lcov-hlr_auc_gw.info-$POSTFIX &
|
|
wait
|
|
|
|
cd $DIR
|
|
rm -r $TMPDIR/alt-wpa_supplicant
|
|
rm -r $TMPDIR/alt-hostapd
|
|
rm -r $TMPDIR/alt-hostapd-as
|
|
rm -r $TMPDIR/alt-hlr_auc_gw
|