blob: b7e89fef86675691f3e7276912380ab19eac0d90 [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
Chris Kayc4f00722022-11-15 12:24:24 +000018expect_string "Linux version" "Linux printed its version"
19expect_re "SMP: Total of $num_cpus processors activated" "Linux successfully brought up all secondary cores"
20expect_string "Freeing unused kernel memory" "Linux booted successfully"