|
@ -0,0 +1,29 @@ |
|
|
|
|
|
#!/usr/bin/env bash-shlib |
|
|
|
|
|
# -*- mode: shell-script -*- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include common |
|
|
|
|
|
|
|
|
|
|
|
exname="$(basename $0)" |
|
|
|
|
|
|
|
|
|
|
|
if ! [ -e "../.package" ]; then |
|
|
|
|
|
echo "Please execute this in test directory, with '../bin/$exname'." >&2 |
|
|
|
|
|
echo "Or, if pkgcmd is installed, use 't'..." |
|
|
|
|
|
exit 1 |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
base=$(realpath "$PWD/..") |
|
|
|
|
|
export base |
|
|
|
|
|
|
|
|
|
|
|
cd "$base/test" |
|
|
|
|
|
|
|
|
|
|
|
for tfile in *; do |
|
|
|
|
|
[ -e "$tfile" ] || continue |
|
|
|
|
|
[ -d "$tfile" ] && continue |
|
|
|
|
|
( |
|
|
|
|
|
/usr/bin/env bash-shlib "$tfile" "$@" |
|
|
|
|
|
) && continue |
|
|
|
|
|
exit "$?" |
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
|