libdart_openmvg/scripts/darttest.sh

17 lines
447 B
Bash
Raw Normal View History

2024-03-11 18:42:48 +01:00
#!/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}/..)
2024-03-11 18:42:48 +01:00
LIB_DIR=$(realpath ${DIR}/../lib)
TEST_DIR=$(realpath ${DIR}/../tests)
printf "\033c"
dart --define=CURRENT_EXEC_DIR="${ROOT_DIR}" test ${TEST_DIR}