2014-07-14 19:32:44 +00:00
|
|
|
#!/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.
|
2015-08-06 04:09:15 +00:00
|
|
|
DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
|
2014-07-14 19:32:44 +00:00
|
|
|
|
|
|
|
# Add repo version of Isabelle to our path.
|
|
|
|
export PATH="${DIR}/isabelle/bin:$PATH"
|
|
|
|
|
2016-07-20 06:37:42 +00:00
|
|
|
# Export L4V_ARCH variable as ARM_HYP
|
|
|
|
export L4V_ARCH="${L4V_ARCH:-ARM_HYP}"
|
|
|
|
echo "Testing for L4V_ARCH=${L4V_ARCH}:"
|
|
|
|
|
2016-08-03 05:36:28 +00:00
|
|
|
# For the time being, we allow sorries in invariant proofs:
|
|
|
|
export INVS_QUICK_AND_DIRTY=1
|
|
|
|
|
2014-07-14 19:32:44 +00:00
|
|
|
# Run the tests from the script directory.
|
|
|
|
cd ${DIR}
|
|
|
|
|
2016-08-03 05:36:28 +00:00
|
|
|
default="ASpec ExecSpec ASpec_ARM ExecSpec_ARM AInvs HaskellKernel"
|
|
|
|
python ./misc/regression/run_tests.py $@ ${@:-${default}} $([ -z ${bamboo_planKey} ] || echo $default)
|