2023-12-24 17:13:17 -07:00
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
2024-01-15 23:28:52 -07:00
|
|
|
|
# Copyright (c) 2023–2024 Emma Tebibyte <emma@tebibyte.media>
|
2023-12-24 17:13:17 -07:00
|
|
|
|
# SPDX-License-Identifier: FSFAP
|
|
|
|
|
#
|
|
|
|
|
# Copying and distribution of this file, with or without modification, are
|
|
|
|
|
# permitted in any medium without royalty provided the copyright notice and this
|
|
|
|
|
# notice are preserved. This file is offered as-is, without any warranty.
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
2024-05-27 22:17:30 -06:00
|
|
|
|
. "./locales/$LANG"
|
|
|
|
|
|
2024-04-24 14:58:35 -06:00
|
|
|
|
export BIN=build/bin
|
|
|
|
|
|
|
|
|
|
if ! ls Makefile >/dev/null 2>&1
|
|
|
|
|
then
|
2024-05-27 22:23:49 -06:00
|
|
|
|
printf '%s: %s\n' "$0" "$RUN_ERR" 1>&2
|
2024-04-24 14:58:35 -06:00
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
for script in tests/bonsai/*.sh; do
|
|
|
|
|
export UTIL="$(printf '%s\n' "$script" \
|
|
|
|
|
| sed -e 's/\.sh//g' -e 's;tests\/bonsai\/;;g')"
|
|
|
|
|
|
2024-05-27 22:17:30 -06:00
|
|
|
|
printf '%s: %s: %s\n' "$0" "$UTIL" "$TEST_STR"
|
2024-04-24 14:58:35 -06:00
|
|
|
|
"$script"
|
|
|
|
|
printf '\n'
|
|
|
|
|
done
|
|
|
|
|
|
2024-04-27 15:16:52 -06:00
|
|
|
|
for test in tests/posix/*.sh; do
|
2024-04-27 15:18:09 -06:00
|
|
|
|
export PATH="$BIN:$PATH"
|
2024-05-27 22:23:49 -06:00
|
|
|
|
printf '%s: %s: %s\n' "$0" "$test" "$TEST_STR"
|
2023-12-24 17:13:17 -07:00
|
|
|
|
"$utility"
|
|
|
|
|
printf '\n'
|
|
|
|
|
done
|