Browse Source

new: pkg: change to multifile tests.

test
Valentin Lab 6 years ago
parent
commit
2d99ffa066
  1. 0
      .package
  2. 28
      bin/test
  3. 0
      test/base

0
.package

28
bin/test

@ -0,0 +1,28 @@
#!/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

0
test/test → test/base

Loading…
Cancel
Save