combine-codecov.sh 517 B

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