Skip to content
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

Add runtime testing harness #48

Merged
merged 1 commit into from
Jul 9, 2019
Merged

Conversation

SamTebbs33
Copy link
Collaborator

@SamTebbs33 SamTebbs33 commented Jun 29, 2019

This patch adds a python script that acts as a runtime testing harness (test/rt-test.py), a new parameter to zig build, as well as some extra log messages for proper testing. The test harness script imports the arch-specific rt testing script from its arch directory.

It is recommended to run pkill on the qemu process after doing the testing as the process doesn't seem to be killed all the time: zig build test -Drt-test=true; pkill qemu-system-i38.

I would like to extend this to do more rigorous testing with more log statements once I find out how to tell the difference between an rt-test build and normal build from within the source, as adding more logging from a normal build would only pollute things.

Closes #12

@SamTebbs33 SamTebbs33 requested a review from DrDeano June 29, 2019 23:18
src/kernel/arch/x86/rt-test.py Outdated Show resolved Hide resolved
test/rt-test.py Outdated Show resolved Hide resolved
Copy link
Member

@DrDeano DrDeano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@SamTebbs33
Copy link
Collaborator Author

lgtm

Thanks! I addressed my comments and moved src/kernel/arch/x86/rt-test.py to test/kernel/arch/x86/rt-test.py as the test code probably shouldn't be mixed with the Zig source.

@SamTebbs33 SamTebbs33 merged commit f6a01a3 into develop Jul 9, 2019
@SamTebbs33 SamTebbs33 deleted the feature/runtime-testing branch July 9, 2019 22:29
SamTebbs33 added a commit that referenced this pull request Oct 7, 2019
SamTebbs33 added a commit that referenced this pull request Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Runtime testing framework
2 participants