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
This commit is contained in:
@@ -34,13 +34,13 @@ from m5.objects import (
|
|||||||
)
|
)
|
||||||
from m5.stats.gem5stats import get_simstat
|
from m5.stats.gem5stats import get_simstat
|
||||||
|
|
||||||
"""This script is used for checking that statistics set in the simulation are
|
"""This script is used for checking that Scaler statistics set in the simulation are
|
||||||
correctly parsed through to the python SimStats. This script sets the
|
correctly parsed through to the python Pystats.
|
||||||
statistics using the "StatTester" simobjects and ensures verifies correctness
|
|
||||||
against the expected JSON output and that produced by the SimStats module.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description="Tests the output of a SimStat.")
|
parser = argparse.ArgumentParser(
|
||||||
|
description="Tests the output of a Scaler Pystat."
|
||||||
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"value", type=float, help="The value of the scalar statistic."
|
"value", type=float, help="The value of the scalar statistic."
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
from testlib import *
|
from testlib import *
|
||||||
|
|
||||||
gem5_verify_config(
|
gem5_verify_config(
|
||||||
name="simstat-scaler-int-test",
|
name="pystat-scaler-int-test",
|
||||||
fixtures=(),
|
fixtures=(),
|
||||||
verifiers=[],
|
verifiers=[],
|
||||||
config=joinpath(
|
config=joinpath(
|
||||||
@@ -36,7 +36,7 @@ gem5_verify_config(
|
|||||||
"gem5",
|
"gem5",
|
||||||
"stats",
|
"stats",
|
||||||
"configs",
|
"configs",
|
||||||
"simstat_output_check.py",
|
"pystat_scalar_check.py",
|
||||||
),
|
),
|
||||||
config_args=[
|
config_args=[
|
||||||
"42",
|
"42",
|
||||||
@@ -50,7 +50,7 @@ gem5_verify_config(
|
|||||||
)
|
)
|
||||||
|
|
||||||
gem5_verify_config(
|
gem5_verify_config(
|
||||||
name="simstat-scaler-int-zero-test",
|
name="pystat-scaler-int-zero-test",
|
||||||
fixtures=(),
|
fixtures=(),
|
||||||
verifiers=[],
|
verifiers=[],
|
||||||
config=joinpath(
|
config=joinpath(
|
||||||
@@ -59,7 +59,7 @@ gem5_verify_config(
|
|||||||
"gem5",
|
"gem5",
|
||||||
"stats",
|
"stats",
|
||||||
"configs",
|
"configs",
|
||||||
"simstat_output_check.py",
|
"pystat_scalar_check.py",
|
||||||
),
|
),
|
||||||
config_args=[
|
config_args=[
|
||||||
"0",
|
"0",
|
||||||
@@ -69,7 +69,7 @@ gem5_verify_config(
|
|||||||
)
|
)
|
||||||
|
|
||||||
gem5_verify_config(
|
gem5_verify_config(
|
||||||
name="simstat-scaler-int-negative-test",
|
name="pystat-scaler-int-negative-test",
|
||||||
fixtures=(),
|
fixtures=(),
|
||||||
verifiers=[],
|
verifiers=[],
|
||||||
config=joinpath(
|
config=joinpath(
|
||||||
@@ -78,7 +78,7 @@ gem5_verify_config(
|
|||||||
"gem5",
|
"gem5",
|
||||||
"stats",
|
"stats",
|
||||||
"configs",
|
"configs",
|
||||||
"simstat_output_check.py",
|
"pystat_scalar_check.py",
|
||||||
),
|
),
|
||||||
config_args=[
|
config_args=[
|
||||||
"-245",
|
"-245",
|
||||||
@@ -88,7 +88,7 @@ gem5_verify_config(
|
|||||||
)
|
)
|
||||||
|
|
||||||
gem5_verify_config(
|
gem5_verify_config(
|
||||||
name="simstat-scaler-float-test",
|
name="pystat-scaler-float-test",
|
||||||
fixtures=(),
|
fixtures=(),
|
||||||
verifiers=[],
|
verifiers=[],
|
||||||
config=joinpath(
|
config=joinpath(
|
||||||
@@ -97,7 +97,7 @@ gem5_verify_config(
|
|||||||
"gem5",
|
"gem5",
|
||||||
"stats",
|
"stats",
|
||||||
"configs",
|
"configs",
|
||||||
"simstat_output_check.py",
|
"pystat_scalar_check.py",
|
||||||
),
|
),
|
||||||
config_args=[
|
config_args=[
|
||||||
"42.869",
|
"42.869",
|
||||||
Reference in New Issue
Block a user