1#!/bin/bash 2# 3# Copyright 2020 The Hafnium Authors. 4# 5# Use of this source code is governed by a BSD-style 6# license that can be found in the LICENSE file or at 7# https://opensource.org/licenses/BSD-3-Clause. 8 9# TIMEOUT, PROJECT, OUT, LOG_DIR_BASE set in: 10KOKORO_DIR="$(dirname "$0")" 11source $KOKORO_DIR/test_common.sh 12 13HFTEST=(${TIMEOUT[@]} 300s ./test/hftest/hftest.py) 14 15SPMC_PATH_VHE="$OUT/secure_aem_v8a_fvp_vhe_clang" 16HYPERVISOR_PATH_VHE="$OUT/aem_v8a_fvp_vhe_clang" 17HFTEST_VHE="${HFTEST[@]} --out_partitions $OUT/secure_aem_v8a_fvp_vhe_vm_clang" 18 19SPMC_PATH="$OUT/secure_aem_v8a_fvp_clang" 20HYPERVISOR_PATH="$OUT/aem_v8a_fvp_clang" 21HFTEST+=(--out_partitions "$OUT/secure_aem_v8a_fvp_vm_clang") 22 23HFTEST_VHE+=(--log "$LOG_DIR_BASE/vhe") 24HFTEST+=(--log "$LOG_DIR_BASE") 25 26HFTEST_VHE+=(--spmc "$SPMC_PATH_VHE/hafnium.bin" --driver=fvp) 27HFTEST+=(--spmc "$SPMC_PATH/hafnium.bin" --driver=fvp) 28 29${HFTEST[@]} --partitions_json test/vmapi/ffa_secure_partition_only/ffa_secure_partition_only_test.json 30 31${HFTEST[@]} --hypervisor "$HYPERVISOR_PATH/hafnium.bin" \ 32 --partitions_json test/vmapi/ffa_secure_partitions/ffa_both_world_partitions_test.json 33 34${HFTEST_VHE[@]} --hypervisor "$HYPERVISOR_PATH/hafnium.bin" \ 35 --partitions_json test/vmapi/ffa_secure_partitions/ffa_both_world_partitions_vhe_test.json 36