blob: 329493f86b557fa2b40e04051b266e155be7c3fb [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#
Leonardo Sandoval579c7372020-10-23 15:23:32 -05002# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
Fathi Boudra422bf772019-12-02 11:10:16 +02006# 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
12if {[info exists ::env(num_cpus)]} {
13 set num_cpus $env(num_cpus)
14} else {
15 set num_cpus 8
16}
17
18expect_string "Linux version" "Linux starting"
19expect_re "SMP: Total of $num_cpus processors activated" "Brought up secondary CPUs"
20expect_string "Freeing unused kernel memory" "End of Linux boot"