1#!/bin/bash 2# SPDX-License-Identifier: GPL-2.0 3# 4# Run the objtool klp tests. Each test-*.sh prints one TAP result line. 5 6set -u 7 8cd "$(dirname "$0")" || exit 1 9 10tests=( test-*.sh ) 11[ "${tests[0]}" = "test-*.sh" ] && { echo "1..0 # SKIP no tests found"; exit 0; } 12 13echo "1..${#tests[@]}" 14 15rc=0 16for t in "${tests[@]}"; do 17 ./"$t" || rc=1 18done 19 20exit $rc 21