41 lines
1.3 KiB
Bash
Executable File
41 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
#
|
|
# Copyright 2014, NICTA
|
|
#
|
|
# This software may be distributed and modified according to the terms of
|
|
# the BSD 2-Clause license. Note that NO WARRANTY is provided.
|
|
# See "LICENSE_BSD2.txt" for details.
|
|
#
|
|
# @TAG(NICTA_BSD)
|
|
#
|
|
|
|
# Fetch directory this script is stored in.
|
|
DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
|
|
|
|
# Add repo version of Isabelle to our path.
|
|
export PATH="${DIR}/isabelle/bin:$PATH"
|
|
|
|
# Export L4V_ARCH variable as ARM_HYP
|
|
export L4V_ARCH="${L4V_ARCH:-ARM_HYP}"
|
|
echo "Testing for L4V_ARCH=${L4V_ARCH}:"
|
|
|
|
# For the time being, we allow sorries in invariant proofs:
|
|
#export INVS_QUICK_AND_DIRTY=1
|
|
|
|
# For the time being, we also allow sorries in refine proofs:
|
|
export REFINE_QUICK_AND_DIRTY=1
|
|
|
|
# Run the tests from the script directory.
|
|
cd ${DIR}
|
|
|
|
default="ASpec ExecSpec ASpec_ARM ExecSpec_ARM AInvs HaskellKernel BaseRefine Refine"
|
|
if [ "${bamboo_l4v_regression_identifier}" == "test board" ]
|
|
then
|
|
bamboo_args=$(echo "$@" | ( [ -z "${bamboo_l4v_regression_options}" ] && cat - || sed 's/'"${bamboo_l4v_regression_options}"'//'))
|
|
echo "python ./misc/regression/run_tests.py ${bamboo_args} $default"
|
|
python ./misc/regression/run_tests.py ${bamboo_args} $default
|
|
else
|
|
python ./misc/regression/run_tests.py ${@:-${default}} $([ -z ${bamboo_planKey} ] || echo $default)
|
|
fi
|