The regen_tests.sh file sucks, would be better to have a more rust-y solution https://github.com/decompals/slinky/blob/main/tests/regen_tests.sh