rename files, test_issuer.py is for the TestIssuer,
[openpower-isa.git] / src / openpower / decoder / isa / test_caller_shift_rot.py
1 """ Decoder tests
2
3 related bugs:
4
5 *
6 """
7
8 import unittest
9 import sys
10
11 # These tests utilize the run_hdl=False parameter to compare
12 # simulator with expected states
13 from soc.simple.test.test_runner import TestRunner
14 from openpower.decoder.isa.shift_rot_cases import ShiftRotTestCase
15
16
17 if __name__ == "__main__":
18
19 # allow list of testing to be selected by command-line
20 testing = sys.argv[1:]
21
22 if not testing:
23 testing = ['shiftrot']
24
25 unittest.main(exit=False)
26 suite = unittest.TestSuite()
27
28 # dictionary of data for tests
29 tests = {'shiftrot': ShiftRotTestCase().test_data}
30
31 # walk through all tests, those requested get added
32 for tname, data in tests.items():
33 if tname in testing:
34 suite.addTest(TestRunner(data, run_hdl=False))
35
36 runner = unittest.TextTestRunner()
37 runner.run(suite)