libtest-mimic icon indicating copy to clipboard operation
libtest-mimic copied to clipboard

no_std support?

Open berkus opened this issue 3 years ago • 3 comments

I am using a custom test harness for OSdev, but wondering if this could do no_std as well?

berkus avatar Nov 06 '22 09:11 berkus

Hi! I don't quite understand the use case yet. Is it a requirement to run the tests in a no-std environment? Usually for tests you can just use your development machine, no? Care to elaborate on your use case?

Apart from that, I don't really see how this library could become no_std. For one, it parses command line arguments via clap: clap doesn't yet support no_std and how would that work without std::env anyway? Also, libtest-mimic uses multi-threading to run tests in parallel. That couuuld in theory be gated behind a crate feature, but I don't think I woudl want the extra maintenance overhead.

LukasKalbertodt avatar Nov 06 '22 09:11 LukasKalbertodt

Yes, the tests run in the no_std environment, usually via QEMU or other emulator.

berkus avatar Nov 06 '22 21:11 berkus

This is how it typically works.

berkus avatar Nov 06 '22 21:11 berkus