Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 1 | # |
Yeoreum Yun | 599c456 | 2025-07-23 10:10:56 +0100 | [diff] [blame] | 2 | # Copyright (c) 2019-2025 Arm Limited. All rights reserved. |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 6 | # Expect script for Trusted Firmware + EDK2 UART0 |
| 7 | # |
| 8 | # Refer to handle-arguments.inc for the list of parameters. |
| 9 | # |
| 10 | |
| 11 | source [file join [file dirname [info script]] handle-arguments.inc] |
| 12 | |
| 13 | # Trusted Firmware boot section |
| 14 | source [file join [file dirname [info script]] trusted-firmware.inc] |
| 15 | |
Yeoreum Yun | 599c456 | 2025-07-23 10:10:56 +0100 | [diff] [blame] | 16 | expect_string "UEFI Interactive Shell" "EDK2 shell starting" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 17 | |
| 18 | expect { |
| 19 | "any other key to continue." { |
| 20 | send "\r" |
| 21 | } |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | expect { |
| 25 | "Shell>" { |
| 26 | send "fs0:\r" |
| 27 | } |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | expect { |
| 31 | "FS0:" { |
Yeoreum Yun | 599c456 | 2025-07-23 10:10:56 +0100 | [diff] [blame] | 32 | send "HelloWorld.efi\r" |
Chris Kay | 78ea2c3 | 2022-11-15 12:24:24 +0000 | [diff] [blame] | 33 | message "Loading UEFI application" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 34 | } |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | expect { |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 38 | "FS0:" { |
Chris Kay | 78ea2c3 | 2022-11-15 12:24:24 +0000 | [diff] [blame] | 39 | message "UEFI application loaded" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 40 | } |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | exit_uart 0 |