telyn / ps2-cunit-port Goto Github PK
View Code? Open in Web Editor NEWScript to port CUnit to the PS2
License: MIT License
Script to port CUnit to the PS2
License: MIT License
A picture paints a thousand words, and a video paints multiple picture per second - time to show this bad boy off.
Wait til AFTER the jank is worked out though telyn.
The test
dir contains the tests for the IOP CUnit compatibility layer. By running those tests on the IOP, we'd gain greater confidence that the compatibility layer works (of course - it requires the compatibility layer already works well-enough to get CUnit running on the IOP, but that's beside the point).
Also it allows us to show off a full build, test, release pipeline for the PS2 including IOP.
Among other things I would like this repo to be an example of how to get my ps2runner stuff all nicely running in a gitlab pipeline, and an example of running a real CUnit test suite on the IOP. (Also I appreciate the meta-ness of running the unit tests for the code that makes the test framework work on the IOP, on the IOP)
test
dir iop compatibilitytest
dir ee compatibilityps2exec
script in ps2runner repoNot as easy as one could've hoped - CUnit depends on a couple of stdlib functions that aren't available on the IOP:
%s
specifiers
-
)%d
specifiers
%f
specifiers
assert
I think I've implemented all the above functions, however at link time I now have some issues. The big-ticket one is the lack of floating point math - -msoft-float
doesn't work so I think I need to find a floating point implementation and plug it in.
find a floating point implementation and plug it in. Should fix these issues:
_ps2_cunit_snprintf
(this is my fault - I think I need to convince the linker to compile _ps2_cunit_snprintf
into libcunit.a
`clock' (might be a toughie)
Easy ones:
The test
dir contains the tests for the iop compatibility stuff. If compiled for EE, we could run those tests (a real CUnit test suite) on the EE.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.