blob: 09d4252af9ffc184d9f25d9377c2329e8b7cac59 [file] [log] [blame]
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Script to interact with a Linux kernel
#
# This script is not standalone and should be sourced by a top expect script.
#
# Expect 8 CPUs in total by default
if {[info exists ::env(num_cpus)]} {
set num_cpus $env(num_cpus)
} else {
set num_cpus 8
}
expect_string "Linux version" "Linux starting"
expect_re "SMP: Total of $num_cpus processors activated" "Brought up secondary CPUs"
expect_string "Freeing unused kernel memory" "End of Linux boot"