-
Notifications
You must be signed in to change notification settings - Fork 9
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
Create utf.r2py
#67
Comments
Alternatively, how about a seash module? |
I'll summarize discussions with @lukpueh about this issue.
What's mentioned above (having a I think that overall, the |
+1 for the Also I think we could and should take it a step further and decouple the
And here is what we have to do:
|
Thumbs up for thinking this through from the user's perspective too! I should add that "seash modules" are really implementations of additional The good news is that we don't require any |
This is a doodle in reference to SeattleTestbed/utf#67, "Create utf.r2py". It provides `testrunner.r2py`, a RepyV2 script that runs its first callarg inside a virtual namespace and performs `#pragma` checks similar to what `utf.py` does for unit test cases. The `runtests` seash module should take care of uploading a directory full of tests, and then run each test case on the target vessel(s) using `testrunner`. Ideally, this results in a vessel log full of "(test case name) PASSED" messages. In less ideal cases, errors are shown.
Increasingly frequently, we want to run unit tests on devices/platforms where there is either no shell, no Python interpreter we can use, no direct way to
ssh
in, or a combination of the above. Testing on Android is a typical example, where setting up a proper shell plus Python is a huge pain, and requires you to enable the device's debugging mode in the first place.For situations like this, there should be a RepyV2 "port" of
utf.py
that allows us to run RepyV2 unit tests with minimal user interaction. I imagine this to work like so,The program should take care of interpreting the various
#pragma
directives, just like its Python counterpart, be able to run file/module-level tests, respect thesubprocess
convention, etc.The text was updated successfully, but these errors were encountered: