mirror of
https://github.com/denisidoro/navi
synced 2024-11-25 13:00:20 +00:00
19 lines
No EOL
247 B
Bash
19 lines
No EOL
247 B
Bash
#!/usr/bin/env bash
|
|
|
|
source "${SCRIPT_DIR}/src/main.sh"
|
|
|
|
test::success() {
|
|
echo "Test passed!"
|
|
}
|
|
|
|
test::fail() {
|
|
echo "Test failed..."
|
|
exit 42
|
|
}
|
|
|
|
test::run() {
|
|
echo
|
|
echo "-> $1"
|
|
shift
|
|
eval "$*" && test::success || test::fail
|
|
} |