uweseimet / scsi2pi

Advanced performant SCSI/SASI emulation and tools for the PiSCSI/RaSCSI board
https://www.scsi2pi.net
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

s2pexec: Add an interactive mode #49

Closed uweseimet closed 7 months ago

uweseimet commented 7 months ago

The in_process_bus test (test/in_process_bus.cpp) can only execute a single command with each test, and this command has to be provided on the command line. For s2pexec as an initiator client an interactive mode shall be added. This mode will make it more convenient to test SCSI commands without a Pi, because you can run subsequent commands against the same s2p process, and you can also run a script with command, like it is already supported for s2pctl. A typical use case is checking the sector size of a drive with READ CAPACITY, then changing it with MODE SELECT, and then checking with another READ CAPACITY whether the size has actually been changed. https://github.com/uweseimet/scsi2pi/wiki/Advanced-Testing has more details.