Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 1 | # |
Leonardo Sandoval | 579c737 | 2020-10-23 15:23:32 -0500 | [diff] [blame] | 2 | # Copyright (c) 2019-2020 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 | # Script to interact with a Linux kernel |
| 7 | # |
| 8 | # This script is not standalone and should be sourced by a top expect script. |
| 9 | # |
| 10 | |
| 11 | # Expect 8 CPUs in total by default |
| 12 | if {[info exists ::env(num_cpus)]} { |
| 13 | set num_cpus $env(num_cpus) |
| 14 | } else { |
| 15 | set num_cpus 8 |
| 16 | } |
| 17 | |
Chris Kay | 78ea2c3 | 2022-11-15 12:24:24 +0000 | [diff] [blame] | 18 | expect_string "Linux version" "Linux printed its version" |
| 19 | expect_re "SMP: Total of $num_cpus processors activated" "Linux successfully brought up all secondary cores" |
| 20 | expect_string "Freeing unused kernel memory" "Linux booted successfully" |