Add build and run configs to exercise ARM_LINUX_KERNEL_AS_BL33 feature
This patch also adds test configurations that boot Linux kernel
directly without a normal world bootloader such as U-Boot
Refer to the following patches which fix the false dependency of
ARM_LINUX_KERNEL_AS_BL33 on RESET_TO_BL31 feature:
https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/8353
https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/8352
Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
Change-Id: I2eb1dfcc3ee6b4417a887c0bd3840f3d9da20dd0
diff --git a/expect/linux-bl33.exp b/expect/linux-bl33.exp
new file mode 100644
index 0000000..2de23bd
--- /dev/null
+++ b/expect/linux-bl33.exp
@@ -0,0 +1,27 @@
+#
+# Copyright (c) 2021 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+# Expect script for Trusted Firmware + Linux boot process
+#
+# Refer to handle-arguments.inc for the list of parameters.
+#
+
+source [file join [file dirname [info script]] handle-arguments.inc]
+
+# Trusted Firmware boot section
+source [file join [file dirname [info script]] trusted-firmware.inc]
+
+# Linux kernel boot section
+expect_string "Booting Linux on physical CPU" "Booting Linux"
+expect_string "Linux version" "Linux starting"
+
+# The kernel prints some information it takes from the preloaded DTB.
+# Check for following information to see that we actually got the right DTB.
+# 1. Machine model
+# 2. Command line passed via the "/chosen" node
+expect_re "Machine model: FVP (Base|Foundation)" "Machine identified"
+expect_string "Kernel command line: console=ttyAMA0" "Kernel command line"
+
+exit_uart 0