-
Notifications
You must be signed in to change notification settings - Fork 98
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
[WIP] Tests via CTest/CMake #199
Open
Neui
wants to merge
34
commits into
vhelin:master
Choose a base branch
from
Neui:cmake-tests
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Neui
force-pushed
the
cmake-tests
branch
3 times, most recently
from
February 19, 2019 15:54
672ea78
to
73aaa74
Compare
This adds an simple 'framework' for testing small projects. It basically assembled small projects. It doesn't do any test on the functions inside wla. Please read `README.md` for more information.
Exporting and using a variable in a section that is getting discarded produces the following error: The computation of definition "FAULTY_VAR" hasn't been solved.
It hasn't been fixed yet and so this is disabled for now till it has been fixed. If that is the case (or you're working on a fix), please revert this commit.
Redefinition with a negative number fails.
For some reason, the makefile uses `exmain.s` to assemble `main.o`, which was very annoying to debug since I thought it assembled `main.s` and not `exmain.s`. For now I've replaced `main.s` with `exmain.s`. I don't see a reason to keep the old `main.s`.
`wla_filename` was just too long because the test framework uses absolute paths, which are long and thus don't fit into the ROM.
…ered in a another test
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tests using CMakes CTest. Builds upon PR #184 (so that should be merged first), originally from PR #164. Would help #105. Still Work In Progress.
wla-*
andwlalink
for the moment (doesn't test functions alone)example
directory as testsgb-z80
has been renamed togb
gb-z80/linker_test/main.s
doesn't assemble, but makefile referencesexmain.s
instead. Somain.s
has been replaced byexmain.s
.spc-700
has been renamed tospc700
bug_exhibition
in favour of the tests (but template projects has been migrated over)I tried to document some internals and info in
test/README.md
. Also Work In Progress, but feedback appreciated.What I still want to do:
Note: Github seems to sort the commits NOT by their "internal" order but rather by something else (date?). So some commits may appear not logically.