-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New binary files for unit tests #3
Comments
#26 has raised this topic again. I think open questions 1 and 2 above (and probably 5) can be answered with "yes, we should do these things". The challenge now is creating these files. Or should we just find some files that would meet the criteria in the meantime? (Old shareware games or whatever) |
My intention in #26 was to add small executables completely under our control. win32_binaries.zip built with MSVC 6 |
Pulling the discussion back over here. @madebr brought up open watcom as a modern way to build old exes without dosbox/dosemu and an old compiler. We have some sample files (for PE) to start with. But where do we put them?
And would we have separate binary files for each test case? |
I dislike it when binaries are added to git. I propose to add build scripts to the repo and try to deduce all locations using pdbs, dbg files, linker map files, ... and put those in a json/yml. An advantage of this is it allows quick iteration if you have all toolchains available on your system. |
Further option:
Regarding separate binary files: In my opinion, these binaries are useful for two kinds of tests:
|
I think we should put the binaries in a git submodule. |
The thing I haven't been able to figure out is what kinds of tests we can run if the sample binary files might be different. All the tests we have now depend on the fact that |
That's also what is putting me off. I want to avoid a situation where we re-upload the same binary, slightly modified, over and over again. I think we should select both a C and C++ project, making use of virtual inheritance. |
The unit tests in
tests/test_islebin.py
depend onLEGO1.DLL
and make sure we correctly interpret various points of interest from the file. We need a new generic file (or files) to adapt these tests for general use.Some things to consider:
The text was updated successfully, but these errors were encountered: