13 lines
363 B
Bash
Executable File
13 lines
363 B
Bash
Executable File
#!/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)
|
|
|
|
BUILD_DIR=$(realpath ${DIR}/../build)
|
|
|
|
echo ${BUILD_DIR}/test_image | entr -r ${DIR}/runtests.sh |