check:
shellcheck -x -e $(SHELLCHECK_EXCLUDE) -f gcc check new common/* \
- tests/*/group tests/*/[0-9]*[0-9]
+ tests/*/rc tests/*/[0-9]*[0-9]
! grep TODO tests/*/[0-9]*[0-9]
.PHONY: all check
if [[ $group_path != tests/meta ]]; then
_found_group "${group_path#tests/}" 0
fi
- done < <(find tests -mindepth 2 -type f -name group -printf '%h\0')
+ done < <(find tests -mindepth 2 -type f -name rc -printf '%h\0')
else
local filter
for filter in "$@"; do
local group="${tests["0"]%/*}"
# shellcheck disable=SC1090
- . "tests/${group}/group"
+ . "tests/${group}/rc"
if declare -fF group_requires >/dev/null && ! group_requires; then
_output_notrun "${group}/***"
exit 1
fi
mkdir -p "tests/${group}"
- cat << EOF > "tests/${group}/group"
+ cat << EOF > "tests/${group}/rc"
#!/bin/bash
#
# TODO: provide a brief description of the group here.
# _test_dev_is_foo && _test_dev_supports_bar
# }
EOF
- echo "Created tests/${group}/group"
+ echo "Created tests/${group}/rc"
fi
for ((i = 1; ; i++)); do