From 4e4f8f1347c77288822d5712e024ffdcd4be147e Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Fri, 28 Jan 2022 11:13:01 -0800 Subject: [PATCH] tests: Add o3 classic init x86 boot tests These have been included to ensure the o3 CPU is tested sufficiently. Change-Id: Ifa7564171be4a3bc94301ccfdbd85b72568d7c77 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/56203 Reviewed-by: Bobby Bruce Maintainer: Bobby Bruce Tested-by: kokoro --- tests/gem5/x86-boot-tests/test_linux_boot.py | 40 ++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/tests/gem5/x86-boot-tests/test_linux_boot.py b/tests/gem5/x86-boot-tests/test_linux_boot.py index 4b66541a6a..482cf16d5a 100644 --- a/tests/gem5/x86-boot-tests/test_linux_boot.py +++ b/tests/gem5/x86-boot-tests/test_linux_boot.py @@ -307,3 +307,43 @@ for mem_system in run_map: boot_type="systemd", length=constants.very_long_tag, ) + +# To ensure the O3 CPU is working correctly, we include some "init" tests here. +# There were not included above as booting to "systemd" takes too long with +# o3 CPUs +test_boot( + cpu="o3", + num_cpus=1, + mem_system="classic", + memory_class="DualChannelDDR4_2400", + boot_type="init", + length=constants.very_long_tag, +) + +test_boot( + cpu="o3", + num_cpus=2, + mem_system="classic", + memory_class="DualChannelDDR4_2400", + boot_type="init", + length=constants.very_long_tag, +) + +test_boot( + cpu="o3", + num_cpus=4, + mem_system="classic", + memory_class="DualChannelDDR4_2400", + boot_type="init", + length=constants.very_long_tag, +) + +test_boot( + cpu="o3", + num_cpus=8, + mem_system="classic", + memory_class="DualChannelDDR4_2400", + boot_type="init", + length=constants.very_long_tag, +) +