combine-codecov.sh 573 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. LOGDIR=$1
  3. if [ -n "$2" ]; then
  4. ODIR=$2
  5. else
  6. ODIR=.
  7. fi
  8. TMPDIR=/tmp/logs
  9. mv $LOGDIR/alt-* $TMPDIR
  10. cd $TMPDIR
  11. args=""
  12. for i in lcov-*.info-*; do
  13. args="$args -a $i"
  14. done
  15. lcov $args -o $LOGDIR/combined.info > $LOGDIR/combined-lcov.log 2>&1
  16. cd $LOGDIR
  17. genhtml -t "wpa_supplicant/hostapd combined for hwsim test run $(date +%s)" combined.info --output-directory $ODIR > lcov.log 2>&1
  18. rm -r /tmp/logs/alt-wpa_supplicant
  19. rm -r /tmp/logs/alt-hostapd
  20. rm -r /tmp/logs/alt-hostapd-as
  21. rm -r /tmp/logs/alt-hlr_auc_gw
  22. rm /tmp/logs/lcov-*info-*
  23. rmdir /tmp/logs