15 lines
460 B
Bash
15 lines
460 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
SOURCE=${BASH_SOURCE[0]}
|
||
|
while [ -L "$SOURCE" ]; do
|
||
|
DIR=$(cd -P "$(dirname "$SOURCE")" >/dev/null 2>&1 && pwd)
|
||
|
SOURCE=$(readlink "$SOURCE")
|
||
|
[[ $SOURCE != /* ]] && SOURCE=$DIR/$SOURCE
|
||
|
done
|
||
|
DIR=$(cd -P "$(dirname "$SOURCE")" >/dev/null 2>&1 && pwd)
|
||
|
|
||
|
ROOT_DIR=$(realpath ${DIR}/..)
|
||
|
LIB_DIR=$(realpath ${DIR}/../lib)
|
||
|
TEST_DIR=$(realpath ${DIR}/../tests)
|
||
|
|
||
|
cd ${ROOT_DIR} && find ${LIB_DIR} ${TEST_DIR} -iname '*.dart' | entr -r ${DIR}/darttest.sh
|