summaryrefslogtreecommitdiff
path: root/test/test
diff options
context:
space:
mode:
Diffstat (limited to 'test/test')
-rwxr-xr-xtest/test26
1 files changed, 5 insertions, 21 deletions
diff --git a/test/test b/test/test
index c018c32..f944512 100755
--- a/test/test
+++ b/test/test
@@ -1,37 +1,21 @@
#!/usr/bin/env bash
set -e
-BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-cd "${BASEDIR}"
+export BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
+cd "${BASEDIR}/test"
. "./driver-lib.bash"
+date_stamp="$(date --rfc-3339=ns)"
start="$(date +%s)"
-check_prereqs || die "prerequisites unsatsfied."
-
-# command line options
-while [[ $# > 1 ]]
-do
- key="${1}"
- case $key in
- -v|--version)
- VERSION="${2}"
- shift && shift
- ;;
- *)
- # unknown option
- break
- ;;
- esac
-done
-VERSION="${VERSION:-3.6.4}"
+check_env
declare -a tests=()
if [ $# -eq 0 ]; then
while read file; do
tests+=("${file}")
- done < <(find tests -type f -name '*.bash')
+ done < <(find tests -type f -name '*.bash' | sort)
else
tests=("$@")
fi