next(rfa-fvp): setup scripts for initial testing of FVP
Change-Id: Ia51750ad9d15e908ecbfa7313a40ad502ae59e23
Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
diff --git a/expect/tfa-next.exp b/expect/tfa-next.exp
new file mode 100644
index 0000000..1587edf
--- /dev/null
+++ b/expect/tfa-next.exp
@@ -0,0 +1,17 @@
+#
+# Copyright (c) 2024 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+# Expect script for Rusted Firmware
+#
+
+source [file join [file dirname [info script]] handle-arguments.inc]
+
+source [file join [file dirname [info script]] trusted-firmware.inc]
+
+expect_string "Rust BL31 starting"
+
+expect_string "Page table activated."
+
+exit_uart 0
diff --git a/group/rfa-fvp/fvp-next:fvp-next b/group/rfa-fvp/fvp-next:fvp-next
new file mode 100644
index 0000000..5635b09
--- /dev/null
+++ b/group/rfa-fvp/fvp-next:fvp-next
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2024 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+post_tf_build() {
+ build_fip RUST=1 PLAT=fvp
+}
diff --git a/model/fvp_common.sh b/model/fvp_common.sh
index e52ed28..56479b4 100644
--- a/model/fvp_common.sh
+++ b/model/fvp_common.sh
@@ -120,7 +120,7 @@
# runs, so that FVP trace log was properly dumped (and parsed by LAVA).
# Don't use it for other OpenCI runs, as it may lead to race condition
# with LAVA's capturing of FVP output.
-if echo "$RUN_CONFIG" | grep -Eiq 'tftf|spm'; then
+if echo "$RUN_CONFIG" | grep -Eiq 'tftf|spm|next'; then
is_arm_env=0
if is_arm_jenkins_env; then
is_arm_env=1
diff --git a/run_config/fvp-next b/run_config/fvp-next
new file mode 100644
index 0000000..7b46cf0
--- /dev/null
+++ b/run_config/fvp-next
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2024, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+generate_lava_job() {
+ local model="base-aemv8a"
+
+ uart="0" file="tfa-next.exp" track_expect
+ # Track the rest of the UARTs to aid in debugging.
+ uart="1" file="hold_uart.exp" track_expect
+ uart="2" file="hold_uart.exp" track_expect
+ uart="3" file="hold_uart.exp" track_expect
+
+ model="$model" gen_model_params
+
+ model="$model" gen_fvp_yaml
+}