# SPDX-License-Identifier: MIT from pathlib import Path import runpy import struct import unittest api=runpy.run_path(str(Path(__file__).with_name('processor-scheduler.py'))) class ProcessorScheduler(unittest.TestCase): def setUp(self): self.words=dict(api['WITNESSES']);self.mem={} self.topology=dict(num_cpus=6,cpu_data_entries=[]) self.mem[api['REQUESTED']]=struct.pack('<3Q',0x3f,0x3f,0xffffffffffffffff) self.mem[api['EFFECTIVE']]=struct.pack('