#!/usr/bin/env bash set -euo pipefail main() { echo "Running tests..." local ctest_result=0 local bats_result=0 if ! (cd build && ctest --output-on-failure); then ctest_result=1 fi if ! ./tests/vendor/bats-core/bin/bats ./tests/justify.bats; then bats_result=1 fi exit $((ctest_result || bats_result)) } main "$@"