spiegel-keyman/linux/ibus-keyman/tests/scripts/find-tests.sh
Eberhard Beilharz db3cd5092d
maint(linux): remove several shellcheck directives and warnings
This change improves our `.shellcheckrc` file so that several directives
are no longer needed and source files are still found. Also remove some
directives that are no longer necessary, either because the changes to
`.shellcheckrc` makes them obsolete, or because the lines changed so
that they no longer contain the problem.

Also remove some shellcheck warnings.

Build-bot: skip
Test-bot: skip
2025-09-23 18:30:16 +02:00

16 lines
375 B
Bash
Executable file

#!/usr/bin/env bash
set -eu
while [[ -n "$1" ]]; do
if [[ ! -d "$1" ]]; then
shift
continue
fi
pushd "$1" > /dev/null
while IFS= read -r -d '' file; do
testname=$(basename "${file}" .kmx)
#shellcheck disable=SC2059
printf "$(basename "${file}")\t${testname#k_}\n"
done < <(find . -name \*.kmx -print0 | sort -z)
popd > /dev/null
exit 0
done