attr.sh 385 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # Perf attribute expectations test
  3. # SPDX-License-Identifier: GPL-2.0
  4. err=0
  5. cleanup() {
  6. trap - EXIT TERM INT
  7. }
  8. trap_cleanup() {
  9. echo "Unexpected signal in ${FUNCNAME[1]}"
  10. cleanup
  11. exit 1
  12. }
  13. trap trap_cleanup EXIT TERM INT
  14. shelldir=$(dirname "$0")
  15. perf_path=$(which perf)
  16. python "${shelldir}"/lib/attr.py -d "${shelldir}"/attr -v -p "$perf_path"
  17. cleanup
  18. exit $err