From 45b26ce465ec510f277bf86ec6085f188a52564e Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Thu, 2 May 2024 05:48:05 -0700 Subject: [PATCH] stdlib: Specialize scalar tests; use 'pystat', not 'simstat' 1. Thests here for the Scalar tasks are named appropriately. Not just generic "SimStats tess". 2. We remove 'simstat' terminology. The correct word is "Pystats". Change-Id: Idebc4e750f4be7f140ad6bff9c6772f580a24861 --- ...at_output_check.py => pystat_scalar_check.py} | 10 +++++----- ..._simstats_output.py => test_pystat_output.py} | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) rename tests/gem5/stats/configs/{simstat_output_check.py => pystat_scalar_check.py} (89%) rename tests/gem5/stats/{test_simstats_output.py => test_pystat_output.py} (95%) diff --git a/tests/gem5/stats/configs/simstat_output_check.py b/tests/gem5/stats/configs/pystat_scalar_check.py similarity index 89% rename from tests/gem5/stats/configs/simstat_output_check.py rename to tests/gem5/stats/configs/pystat_scalar_check.py index e5379c4e39..3c98f901df 100644 --- a/tests/gem5/stats/configs/simstat_output_check.py +++ b/tests/gem5/stats/configs/pystat_scalar_check.py @@ -34,13 +34,13 @@ from m5.objects import ( ) from m5.stats.gem5stats import get_simstat -"""This script is used for checking that statistics set in the simulation are -correctly parsed through to the python SimStats. This script sets the -statistics using the "StatTester" simobjects and ensures verifies correctness -against the expected JSON output and that produced by the SimStats module. +"""This script is used for checking that Scaler statistics set in the simulation are +correctly parsed through to the python Pystats. """ -parser = argparse.ArgumentParser(description="Tests the output of a SimStat.") +parser = argparse.ArgumentParser( + description="Tests the output of a Scaler Pystat." +) parser.add_argument( "value", type=float, help="The value of the scalar statistic." diff --git a/tests/gem5/stats/test_simstats_output.py b/tests/gem5/stats/test_pystat_output.py similarity index 95% rename from tests/gem5/stats/test_simstats_output.py rename to tests/gem5/stats/test_pystat_output.py index da0c9bdca9..619509dc56 100644 --- a/tests/gem5/stats/test_simstats_output.py +++ b/tests/gem5/stats/test_pystat_output.py @@ -27,7 +27,7 @@ from testlib import * gem5_verify_config( - name="simstat-scaler-int-test", + name="pystat-scaler-int-test", fixtures=(), verifiers=[], config=joinpath( @@ -36,7 +36,7 @@ gem5_verify_config( "gem5", "stats", "configs", - "simstat_output_check.py", + "pystat_scalar_check.py", ), config_args=[ "42", @@ -50,7 +50,7 @@ gem5_verify_config( ) gem5_verify_config( - name="simstat-scaler-int-zero-test", + name="pystat-scaler-int-zero-test", fixtures=(), verifiers=[], config=joinpath( @@ -59,7 +59,7 @@ gem5_verify_config( "gem5", "stats", "configs", - "simstat_output_check.py", + "pystat_scalar_check.py", ), config_args=[ "0", @@ -69,7 +69,7 @@ gem5_verify_config( ) gem5_verify_config( - name="simstat-scaler-int-negative-test", + name="pystat-scaler-int-negative-test", fixtures=(), verifiers=[], config=joinpath( @@ -78,7 +78,7 @@ gem5_verify_config( "gem5", "stats", "configs", - "simstat_output_check.py", + "pystat_scalar_check.py", ), config_args=[ "-245", @@ -88,7 +88,7 @@ gem5_verify_config( ) gem5_verify_config( - name="simstat-scaler-float-test", + name="pystat-scaler-float-test", fixtures=(), verifiers=[], config=joinpath( @@ -97,7 +97,7 @@ gem5_verify_config( "gem5", "stats", "configs", - "simstat_output_check.py", + "pystat_scalar_check.py", ), config_args=[ "42.869",