uncovered 612 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash -eur
  2. #
  3. # Find python modules uncovered by oe-seltest
  4. #
  5. # Copyright (c) 2016, Intel Corporation
  6. #
  7. # SPDX-License-Identifier: GPL-2.0-only
  8. #
  9. # Author: Ed Bartosh <ed.bartosh@linux.intel.com>
  10. #
  11. if [ ! "$#" -eq 1 -o -t 0 ] ; then
  12. echo 'Usage: coverage report | ./scripts/contrib/uncovered <dir>' 1>&2
  13. exit 1
  14. fi
  15. path=$(readlink -ev $1)
  16. if [ ! -d "$path" ] ; then
  17. echo "directory $1 doesn't exist" 1>&2
  18. exit 1
  19. fi
  20. diff -u <(grep "$path" | grep -v '0%$' | cut -f1 -d: | sort) \
  21. <(find $path | xargs file | grep 'Python script' | cut -f1 -d:| sort) | \
  22. grep "^+$path" | cut -c2-