slothy-optimizer / slothy

Assembly super-optimization via constraint solving
https://slothy-optimizer.github.io/slothy/
Other
167 stars 10 forks source link

Add unit testing framework with functional tests #107

Open hanno-becker opened 4 days ago

hanno-becker commented 4 days ago

The selfcheck catches a lot of bugs, but not all. We should have a testing framework that allows us to quickly add minimal tests for various features. In addition to the selfcheck, the equivalence of input and output should be empirically tested by wrapping it into an executable stub, running it (in an emulator) with random inputs, and comparing the results.