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}:"
|
|
|
|
|
2017-05-12 07:00:46 +00:00
|
|
|
# Enable quick_and_dirty mode for various images
|
|
|
|
if [ -n "${QUICK_AND_DIRTY}" ]
|
|
|
|
then
|
|
|
|
export INVS_QUICK_AND_DIRTY=1
|
|
|
|
export REFINE_QUICK_AND_DIRTY=1
|
|
|
|
export CREFINE_QUICK_AND_DIRTY=1
|
|
|
|
echo "Testing with QUICK_AND_DIRTY"
|
|
|
|
fi
|
2016-08-03 05:36:28 +00:00
|
|
|
|
2017-05-12 07:00:46 +00:00
|
|
|
# Enable skip_proofs mode for various images
|
2017-04-16 12:09:57 +00:00
|
|
|
|
2017-05-12 07:00:46 +00:00
|
|
|
if [ -n "${REFINE_PROOFS}" ]
|
|
|
|
then
|
|
|
|
export SKIP_REFINE_PROOFS=1
|
|
|
|
export SKIP_INVS_PROOFS=1
|
|
|
|
echo "Testing with SKIP_PROOFS"
|
|
|
|
fi
|
2017-02-22 04:29:02 +00:00
|
|
|
|
2014-07-14 19:32:44 +00:00
|
|
|
# Run the tests from the script directory.
|
|
|
|
cd ${DIR}
|
|
|
|
|
2017-05-12 07:00:46 +00:00
|
|
|
# Default exclusions for ARM_HYP
|
|
|
|
|
|
|
|
declare -A EXCLUDE
|
|
|
|
|
|
|
|
EXCLUDE[ARM_HYP]="
|
|
|
|
-r CamkesAdlSpec \
|
|
|
|
-r CamkesGlueSpec \
|
|
|
|
-r SimpleSystem \
|
|
|
|
-r RelyGuarantee \
|
|
|
|
-r Sep_Algebra \
|
|
|
|
-r tests-xml-correct \
|
|
|
|
-r SepTactics \
|
|
|
|
-r SepTacticsExamples \
|
|
|
|
-r DBaseRefine \
|
|
|
|
-r DRefine \
|
|
|
|
-r Access \
|
|
|
|
-r InfoFlow \
|
|
|
|
-r ArmConfidentiality \
|
|
|
|
-r DPolicy \
|
|
|
|
-r CamkesCdlRefine \
|
|
|
|
-r Bisim \
|
|
|
|
-r DSpec \
|
|
|
|
-r SepDSpec \
|
|
|
|
-r DSpecProofs \
|
|
|
|
-r TakeGrant \
|
|
|
|
-r ASepSpec \
|
|
|
|
-r HaskellKernel \
|
|
|
|
-r SysInit \
|
|
|
|
-r SysInitExamples \
|
|
|
|
-r InfoFlowCBase \
|
|
|
|
-r InfoFlowC \
|
|
|
|
-r SimplExportAndRefine \
|
|
|
|
-r CParserTest \
|
|
|
|
-r CParserTestX64 \
|
|
|
|
-r CParserTools \
|
|
|
|
-r AutoCorres \
|
|
|
|
-r CamkesGlueProofs \
|
|
|
|
-r CamkesDarpaReport \
|
|
|
|
-r theory_imports \
|
|
|
|
-r AutoCorresDoc \
|
|
|
|
-r AutoCorresTest \
|
|
|
|
-r AutoCorresSEL4 \
|
|
|
|
"
|
|
|
|
|
|
|
|
python ./misc/regression/run_tests.py ${EXCLUDE[${L4V_ARCH}]} $@
|