ISISComputingGroup / IBEX

Top level repository for IBEX stories
5 stars 2 forks source link

[IOC Test Framework]: Find generic way to close an emulator #8289

Closed Chsudeepta closed 4 months ago

Chsudeepta commented 5 months ago

Where?

As a developer we should be able to use a custom emulator (this is already possible) other than Lewis and after the tests have completed the emulator should close down graciously.

How?

Suppose you want to use a custom emulator for testing IOC. The solution is to use the following tags in the IOCs block: "emulator_launcher_class": CommandLineEmulatorLauncher, "emulator_command_line": "responder.bat", where responder.bat is a bat file that probably calls the simulator exe.

The issue is once the IOC tests are run and the simulator exe is executed, there probably there is no way to close the exe or the cmd window which ran the exe. The lindy ioc tests run into this issue, but have a rough solution that should be replaced.

Reproducible?

[Yes]

To Reproduce

-Remove kill the emulator from the end of the test bat and then run the lindy IOC test cases

Acceptance criteria

How to Test

verbose instructions for reviewer to test changes (Add before making a PR)

Time in Planning

28:48 02/05/24

LowriJenkins commented 4 months ago

release notes Test framework LNDYISW