gpsd-debian-regressions.sh 614 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. # This file is Copyright (c)2010 by the GPSD project
  3. # BSD terms apply: see the file COPYING in the distribution root for details.
  4. set -e
  5. logs='last'
  6. if [ -n "$1" ]; then
  7. logs=$1
  8. fi
  9. if [ ! -x /usr/bin/getbuildlog ]; then
  10. echo 'Please install the devscripts package!'
  11. exit 1
  12. fi
  13. TMPDIR=`mktemp -d`
  14. OLDPWD=`pwd`
  15. cd ${TMPDIR}
  16. getbuildlog gpsd $logs || true
  17. grep -c -E -- '--- (./)?test' * | grep -E ':0$' | sed 's,^gpsd_[^_]*_\([^.]*\)\.log:0,\1: no regressions,'
  18. grep -E -- '--- (./)?test' * | sed 's,\s2013.*,,;s,^gpsd_[^_]*_\([^.]*\)\.log:--- ,\1 ,' | sort -u
  19. cd ${OLDPWD}
  20. rm -rf ${TMPDIR}