ci(rng-trap): added build and run conf for tests
Config settings for TF-A and TFTF have been added as well as run
configs. This will perform the test created for FEAT_RNG_TRAP and
will expect an EL3 exception to be triggered, which will generate
a system panic, since no handler is set for such exception.
Signed-off-by: Juan Pablo Conde <juanpablo.conde@arm.com>
Change-Id: Ic86a1f187004312c6778641d0967ffaa99e945c0
diff --git a/run_config/fvp-aemv8a.rng_trap.bl31_panic b/run_config/fvp-aemv8a.rng_trap.bl31_panic
new file mode 100644
index 0000000..b6dcad2
--- /dev/null
+++ b/run_config/fvp-aemv8a.rng_trap.bl31_panic
@@ -0,0 +1,26 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2022, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+post_tf_archive() {
+ local model="base-aemv8a"
+
+ model="$model" \
+ # Due to a bug in the model, the FEAT_RNG_TRAP feature is not available
+ # in models that implement versions lower than 8.8, even though this is
+ # a v8.5 feature. Therefore, version 8.8 will be used while the FVP
+ # team fixes this problem. Once ready, the parameter arch_version will
+ # be changed to 8.5.
+ arch_version="8.8" \
+ has_rng_trap="1" \
+ gen_model_params
+ model="$model" gen_fvp_yaml
+}
+
+fetch_tf_resource() {
+ uart="0" timeout="60" file="timeout.exp" track_expect
+ uart="1" timeout="60" file="crash_rng_trap_unhandled_exception_at_el3.exp" track_expect
+}