isa-l/tools/test_autorun.sh
Greg Tucker 7ab24b769e build: Add extended test scripts
Change-Id: Ia5d57d8e1c0037ecf3d235651adcc33913049c94
Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
2017-09-07 16:52:52 -07:00

38 lines
586 B
Bash
Executable File

#!/usr/bin/env bash
set -e #exit on fail
# Override defaults if exist
READLINK=readlink
command -V greadlink >/dev/null 2>&1 && READLINK=greadlink
out="$PWD"
src=$($READLINK -f $(dirname $0))/..
cd "$src"
[ -z "$1" ] && ./tools/test_checks.sh
while [ -n "$1" ]; do
case "$1" in
check )
./tools/test_checks.sh
shift ;;
ext )
./tools/test_extended.sh
shift ;;
format )
shift ;;
all )
./tools/test_checks.sh
./tools/test_extended.sh
shift ;;
* )
echo $0 undefined option: $1
shift ;;
esac
done
./tools/check_format.sh