gpsd-debian-regressions.sh 581 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. # This file is Copyright 2010 by the GPSD project
  3. # SPDX-License-Identifier: BSD-2-clause
  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}"