Sync expect scripts with internal CI
Sync expect scripts with platform-ci commit:
539c151d0cd99a5e6ca6c0e6966f6d8579fe864e
Signed-off-by: Zelalem <zelalem.aweke@arm.com>
Change-Id: I4b0ed80659aaad1f3b05f8891009238f51400546
diff --git a/expect/disable_dyn_auth.exp b/expect/disable_dyn_auth.exp
new file mode 100644
index 0000000..50dd5be
--- /dev/null
+++ b/expect/disable_dyn_auth.exp
@@ -0,0 +1,33 @@
+#
+# Copyright (c) 2020, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+# Script to interact with an TF-A built with Trusted Board Boot
+#
+source [file join [file dirname [info script]] handle-arguments.inc]
+
+# This script tries to catch if dynamic authentication of images is enabled
+# during trusted board boot(BL2). The authentication is done using certificates.
+
+expect_string "BL1: Booting BL2" "BL2 booting"
+expect_string "Disabling authentication of images dynamically" "Authentication disabled dynamically"
+expect {
+ # Catch all loading of authentication certificates i.e.,
+ # TRUSTED_BOOT_FW_CERT_ID U(6)
+ # TRUSTED_KEY_CERT_ID U(7)
+ # SCP_FW_KEY_CERT_ID U(8)
+ # SOC_FW_KEY_CERT_ID U(9)
+ # TRUSTED_OS_FW_KEY_CERT_ID U(10)
+ # NON_TRUSTED_FW_KEY_CERT_ID U(11)
+ # SCP_FW_CONTENT_CERT_ID U(12)
+ # SOC_FW_CONTENT_CERT_ID U(13)
+ # TRUSTED_OS_FW_CONTENT_CERT_ID U(14)
+ # NON_TRUSTED_FW_CONTENT_CERT_ID U(15)
+
+ -re "Loading image id=(6|7|8|9|10|11|12|13|14|15) at address " {
+ puts "<<Dynamic Authentication not disabled>>"
+ exit_uart -1
+ }
+ }
+exit_uart 0