add automation scripts.

This commit is contained in:
Jordan
2024-03-11 10:42:48 -07:00
parent b3cd0316b7
commit 29483913d6
8 changed files with 154 additions and 28 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/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)
printf "\033c"
dart --define=CURRENT_EXEC_DIR="${ROOT_DIR}" test ${TEST_DIR}
+15
View File
@@ -0,0 +1,15 @@
#!/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