Closed Bug 704046 Opened 15 years ago Closed 15 years ago

move mozprocess tests to mozbase repo under mozprocess

Categories

(Testing Graveyard :: Mozmill, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: k0scist, Unassigned)

References

Details

(Whiteboard: [mozbase][good first bug][mentor=jhammel])

Attachments

(1 file)

mozprocess1.py and mozprocess2.py should be made executable calling unittest.main() for running and be moved to a tests/ directory under https://github.com/mozilla/mozbase/tree/master/mozprocess
Whiteboard: [mozbase]
Whiteboard: [mozbase] → [mozbase][good first bug][mentor=jhammel]
The makefile and proclaunch.c should also be moved as well as the iniparser directory
Blocks: 696781
Attachment #575983 - Flags: review?(ahalberstadt)
Comment on attachment 575983 [details] [diff] [review] move the tests and add a unittest.main() call if __main__ Review of attachment 575983 [details] [diff] [review]: ----------------------------------------------------------------- I'm assuming all you changed were the __main__ lines. If so, r+ with conditions: 1) Please add licenses to the files that we wrote (i.e mozprocess*.py and proclaunch.c), see http://www.mozilla.org/MPL/boilerplate-1.1/. The initial developer should be 'The Mozilla Foundation'. 2) Are we leaving these tests in the mozmill repo as well? Cause I'm not entirely sure how useful they are when run outside of mutt. I think it would be nice to at least add some documentation explaining how to run the tests as well as what to expect from the output (when I run proclaunch, all I see is a bunch of 'Launching child process' statements and there is no indication of pass or fail).
Attachment #575983 - Flags: review?(ahalberstadt) → review+
1. Will do. We should probably document this for the mozbase repo 2. No, we're not. I will remove them from there once they are landed here. I'm not sure what you mean about their usefulness outside of mutt. They are standard unittests. We can certainly remove the output, and unittest should not FAIL (vs OK) at the end of the run if they fail and exit with 1, iirc
I will also add proclaunch to the .gitignore file
:ahal, what all files should be licensed?
I am probably not going to finish this any time soon because of the licensing issue, but if someone wants to land, we need these tests.
Pushed to master with licenses and other fixes: https://github.com/mozilla/mozbase/commit/32dab1880ed5eff84f5463a161a9b2d732a95119 Will next delete from the mozmill repository. Should probably post follow-ups on: - tests for introspecting `ps` - unified (simple) test harness to gather unittests. this currently lives in mozprofile but should be at the repo level with manifests in the various tests/ directory of each package
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: