overdrivenpotato / rust-psp

Rust on PSP. Panic and allocation support. Access PSP system libraries.
Other
638 stars 33 forks source link

Basic PPSSPP-based test runner, with prototype vfpu trig function tests working #62

Closed MrAwesome closed 4 years ago

MrAwesome commented 4 years ago

Built a few building blocks for xargo/cargo test/xtest support.

This works nicely as a little test runner that can be scripted easily (if final line == FINAL_SUCCESS, you've passed everything), and there's some nice potential for opening up more debug functionality in-terminal in the future. There's also potential with the named pipes/fifos to implement a basic REPL shell, if that has any use.

Macros would make this prettier so you could see the actual line that's failing, but one thing at a time.

I'll put up a bigger PR for the trig functions soon, just using cosf32 as a placeholder to verify we're running code on the PSP & vfpu as expected.

Working Tests

sajattack commented 4 years ago

You can't get rid of that const_loop, const_if_match feature to clean up the warning because our minimum supported version still needs them. Also testcases should probably be in the ci folder.

sajattack commented 4 years ago

iirc, @overdrivenpotato objected to every test being a crate when I initially tried.