Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (c) 2019, Arm Limited. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | # |
| 8 | # Script to interact with a Linux kernel |
| 9 | # |
| 10 | # This script is not standalone and should be sourced by a top expect script. |
| 11 | # |
| 12 | |
| 13 | # Expect 8 CPUs in total by default |
| 14 | if {[info exists ::env(num_cpus)]} { |
| 15 | set num_cpus $env(num_cpus) |
| 16 | } else { |
| 17 | set num_cpus 8 |
| 18 | } |
| 19 | |
| 20 | expect_string "Linux version" "Linux starting" |
| 21 | expect_re "SMP: Total of $num_cpus processors activated" "Brought up secondary CPUs" |
| 22 | expect_string "Freeing unused kernel memory" "End of Linux boot" |