lh-l4v/run_tests

31 lines
859 B
Plaintext
Raw Normal View History

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"
# 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
2014-07-14 19:32:44 +00:00
# Run the tests from the script directory.
cd ${DIR}
default="ASpec ExecSpec ASpec_ARM ExecSpec_ARM AInvs HaskellKernel"
python ./misc/regression/run_tests.py $@ ${@:-${default}} $([ -z ${bamboo_planKey} ] || echo $default)