Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 1 | # |
Chris Kay | 3d2ae33 | 2022-11-15 11:32:03 +0000 | [diff] [blame] | 2 | # Copyright (c) 2019-2022 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 | |||||
16 | # EDK2 section | ||||
17 | expect { | ||||
18 | "UEFI firmware" { | ||||
Chris Kay | 78ea2c3 | 2022-11-15 12:24:24 +0000 | [diff] [blame] | 19 | message "EDK2 starting" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 20 | } |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 21 | } |
22 | |||||
23 | expect { | ||||
24 | "UEFI Interactive Shell" { | ||||
Chris Kay | 78ea2c3 | 2022-11-15 12:24:24 +0000 | [diff] [blame] | 25 | message "EDK2 shell starting" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 26 | } |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 27 | } |
28 | |||||
29 | expect { | ||||
30 | "any other key to continue." { | ||||
31 | send "\r" | ||||
32 | } | ||||
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 33 | } |
34 | |||||
35 | expect { | ||||
36 | "Shell>" { | ||||
37 | send "fs0:\r" | ||||
38 | } | ||||
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 39 | } |
40 | |||||
41 | expect { | ||||
42 | "FS0:" { | ||||
43 | send "UefiInfo.efi\r" | ||||
Chris Kay | 78ea2c3 | 2022-11-15 12:24:24 +0000 | [diff] [blame] | 44 | message "Loading UEFI application" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 45 | } |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 46 | } |
47 | |||||
48 | expect { | ||||
49 | -re "Loading driver at .* UefiInfo.efi" { | ||||
Chris Kay | 78ea2c3 | 2022-11-15 12:24:24 +0000 | [diff] [blame] | 50 | message "UEFI application is being loaded" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 51 | } |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 52 | } |
53 | |||||
54 | expect { | ||||
55 | "FS0:" { | ||||
Chris Kay | 78ea2c3 | 2022-11-15 12:24:24 +0000 | [diff] [blame] | 56 | message "UEFI application loaded" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 57 | } |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 58 | } |
59 | |||||
60 | exit_uart 0 |