07-31-2011, 12:47 PM
I have moved my tests to the new project and added an external to dpspemu. http://code.google.com/p/pspautotests/
Also I have added several of the jpcsp owners as owners of the project (feel free to add the people you think can help with this).
At the moment, most of the tests uses a pspDebugPrintf + Kprintf. The main problem is that psp doesn't run them on usermode.
Maybe we can hook normal printf output to a file like SDL does, or output via Kprintf on emulators. Or maybe a simple approach could be to have a special file: for example ms0:/__testoutput.txt that would be hooked by emulators and interpreted as testing output.
Also we have to check several tests.
For example. My CWD tests expects the program to be here 'ms0:/PSP/GAME/virtual':
http://code.google.com/p/pspautotests/so...d.expected
Since my VirtualFileSystem is pretty flexible, allows to mount filesystems on any folder like *nix does. So I mount 'ms0:/PSP/GAME/virtual' on the executable folder on homebrew applications, also disallowing the access of the parent's root folder.
To have universal tests we should agree in some conventions like that.
Also I have added several of the jpcsp owners as owners of the project (feel free to add the people you think can help with this).
At the moment, most of the tests uses a pspDebugPrintf + Kprintf. The main problem is that psp doesn't run them on usermode.
Maybe we can hook normal printf output to a file like SDL does, or output via Kprintf on emulators. Or maybe a simple approach could be to have a special file: for example ms0:/__testoutput.txt that would be hooked by emulators and interpreted as testing output.
Also we have to check several tests.
For example. My CWD tests expects the program to be here 'ms0:/PSP/GAME/virtual':
http://code.google.com/p/pspautotests/so...d.expected
Since my VirtualFileSystem is pretty flexible, allows to mount filesystems on any folder like *nix does. So I mount 'ms0:/PSP/GAME/virtual' on the executable folder on homebrew applications, also disallowing the access of the parent's root folder.
To have universal tests we should agree in some conventions like that.