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-01-15 23:28:52 -07:00
|
|
|
|
if ! ls Makefile >/dev/null 2>&1
|
2023-12-24 17:13:17 -07:00
|
|
|
|
then
|
|
|
|
|
printf '%s: Run this script in the root of the project.\n' "$0" 1>&2
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
printf "Starting POSIX compatibility testing.\n"
|
|
|
|
|
|
|
|
|
|
for utility in tests/posix/*; do
|
|
|
|
|
printf '%s: %s: Testing utility.\n' "$0" "$utility"
|
|
|
|
|
"$utility"
|
|
|
|
|
printf '\n'
|
|
|
|
|
done
|