2014-12-19 23:51:55 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
LOGDIR=$1
|
2014-12-21 15:41:59 +01:00
|
|
|
if [ -n "$2" ]; then
|
|
|
|
ODIR=$2
|
|
|
|
else
|
|
|
|
ODIR=.
|
|
|
|
fi
|
2014-12-19 23:51:55 +01:00
|
|
|
TMPDIR=/tmp/logs
|
|
|
|
|
|
|
|
mv $LOGDIR/alt-* $TMPDIR
|
|
|
|
|
|
|
|
cd $TMPDIR
|
|
|
|
args=""
|
|
|
|
for i in lcov-*.info-*; do
|
|
|
|
args="$args -a $i"
|
|
|
|
done
|
|
|
|
|
|
|
|
lcov $args -o $LOGDIR/combined.info > $LOGDIR/combined-lcov.log 2>&1
|
|
|
|
cd $LOGDIR
|
2014-12-21 15:41:59 +01:00
|
|
|
genhtml -t "wpa_supplicant/hostapd combined for hwsim test run $(date +%s)" combined.info --output-directory $ODIR > lcov.log 2>&1
|
2014-12-19 23:51:55 +01:00
|
|
|
|
|
|
|
rm -r /tmp/logs/alt-wpa_supplicant
|
|
|
|
rm -r /tmp/logs/alt-hostapd
|
|
|
|
rm -r /tmp/logs/alt-hostapd-as
|
|
|
|
rm -r /tmp/logs/alt-hlr_auc_gw
|
|
|
|
rm /tmp/logs/lcov-*info-*
|
|
|
|
rmdir /tmp/logs
|