From c2e56dc3cbabff8e91586023afd58592ddd120ed Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 24 Sep 2021 17:44:49 +0100 Subject: [PATCH] rename shift tests, move to test cases directory --- src/openpower/decoder/isa/test_caller_shift_rot.py | 7 ++++--- .../shift_rot/shift_rot_cases2.py} | 5 ++--- 2 files changed, 6 insertions(+), 6 deletions(-) rename src/openpower/{decoder/isa/shift_rot_cases.py => test/shift_rot/shift_rot_cases2.py} (98%) diff --git a/src/openpower/decoder/isa/test_caller_shift_rot.py b/src/openpower/decoder/isa/test_caller_shift_rot.py index 09b67333..04a0e4a9 100644 --- a/src/openpower/decoder/isa/test_caller_shift_rot.py +++ b/src/openpower/decoder/isa/test_caller_shift_rot.py @@ -11,22 +11,23 @@ import sys # These tests utilize the run_hdl=False parameter to compare # simulator with expected states from soc.simple.test.test_runner import TestRunner -from openpower.decoder.isa.shift_rot_cases import ShiftRotTestCase +from openpower.test.shift_rot.shift_rot_cases2 import ShiftRotTestCase2 if __name__ == "__main__": # allow list of testing to be selected by command-line testing = sys.argv[1:] + sys.argv = sys.argv[:1] if not testing: - testing = ['shiftrot'] + testing = ['shiftrot2'] unittest.main(exit=False) suite = unittest.TestSuite() # dictionary of data for tests - tests = {'shiftrot': ShiftRotTestCase().test_data} + tests = {'shiftrot2': ShiftRotTestCase2().test_data} # walk through all tests, those requested get added for tname, data in tests.items(): diff --git a/src/openpower/decoder/isa/shift_rot_cases.py b/src/openpower/test/shift_rot/shift_rot_cases2.py similarity index 98% rename from src/openpower/decoder/isa/shift_rot_cases.py rename to src/openpower/test/shift_rot/shift_rot_cases2.py index cc2a141e..2ab6a2ef 100644 --- a/src/openpower/decoder/isa/shift_rot_cases.py +++ b/src/openpower/test/shift_rot/shift_rot_cases2.py @@ -1,13 +1,12 @@ from openpower.test.common import TestAccumulatorBase from openpower.endian import bigendian -import unittest -from openpower.decoder.power_enums import XER_bits from openpower.simulator.program import Program from openpower.decoder.selectable_int import SelectableInt from openpower.test.state import ExpectedState +import unittest -class ShiftRotTestCase(TestAccumulatorBase): +class ShiftRotTestCase2(TestAccumulatorBase): def case_0_proof_regression_rlwnm(self): lst = ["rlwnm 3, 1, 2, 16, 20"] -- 2.30.2