This commit is contained in:
2026-07-25 17:28:23 -05:00
parent b04e5b706d
commit d47a88587c
7 changed files with 211 additions and 45 deletions
+49
View File
@@ -0,0 +1,49 @@
#!/usr/bin/env bash
set -u
repo_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
if ((BASH_VERSINFO[0] < 4)); then
echo "Bash 4 or newer is required." >&2
exit 1
fi
for script in \
"${repo_dir}/colors.inc" \
"${repo_dir}/default.inc" \
"${repo_dir}/get-data.sh" \
"${repo_dir}/list-colors.sh" \
"${repo_dir}/test.sh"; do
bash -n "${script}" || exit 1
done
source "${repo_dir}/colors.inc"
source "${repo_dir}/default.inc"
[[ "${abet[9]}" == "j" ]] || {
echo "Expected abet[9] to be j." >&2
exit 1
}
[[ "${abet[19]}" == "t" ]] || {
echo "Expected abet[19] to be t." >&2
exit 1
}
[[ -n "${idsCL[Default]:-}" ]] || {
echo "Expected idsCL[Default] to be defined." >&2
exit 1
}
[[ -n "${idsBG[Default]:-}" ]] || {
echo "Expected idsBG[Default] to be defined." >&2
exit 1
}
[[ -n "${idsST[Reset]:-}" ]] || {
echo "Expected idsST[Reset] to be defined." >&2
exit 1
}
echo "iDS-Defaults smoke test passed."