Files
spat/.github/scripts/ci-test.sh
2020-06-11 13:06:35 +02:00

28 lines
554 B
Bash

#!/usr/bin/env bash
trap 'echo "ERROR at line ${LINENO} (code: $?)" >&2' ERR
trap 'echo "Interrupted" >&2 ; exit 1' INT
set -o errexit
set -o nounset
echo "Running tests:"
# Download and install dependencies
#git clone https://github.com/HeisenbugLtd/si_units
#cd si_units
#git checkout v0.1.0
#cd ..
#gprbuild -p -P si_units/si_units_lib.gpr
#gprinstall -v -p -P si_units/si_units_lib.gpr
# debug, list what's available
gprinstall --list --stat
# Show help output.
./obj/run_spat -h
# Run regression tests against templates
cd test
./run_test.sh