diff --git a/.package b/.package new file mode 100644 index 0000000..e69de29 diff --git a/bin/test b/bin/test new file mode 100755 index 0000000..2776105 --- /dev/null +++ b/bin/test @@ -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 + + diff --git a/test/test b/test/base similarity index 100% rename from test/test rename to test/base