зеркало из https://github.com/mozilla/gecko-dev.git
b24022116e
When passed the `--verbose` flag, `mach xpcshell-test` already prints the current directory, environment variables, and command used for the test. However, it prints them in Python syntax. This seems like a good thing to do, as it's a clear indication of what the test is actually doing. But if one wants to reproduce a problem by running the xpcshell command directly, it's an error-prone pain to convert from Python lists of strings to the Bourne shell syntax. Fortunately, the Python 2.7 `pipes` module has a function, `pipes.quote`, which produces properly quoted Unix shell commands, ready to be copied and pasted into one's terminal. Unfortunately, the xpcshell tests still clean up the $obj/temp/xpc-plugins-FOO directory, so this still isn't quite ready to go. Differential Revision: https://phabricator.services.mozilla.com/D10392 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
example | ||
moz-http2 | ||
node-http2 | ||
README | ||
dbg-actors.js | ||
head.js | ||
mach_commands.py | ||
mach_test_package_commands.py | ||
moz.build | ||
python.ini | ||
remotexpcshelltests.py | ||
runxpcshelltests.py | ||
selftest.py | ||
xpcshellcommandline.py |
README
Simple xpcshell-based test harness converted from netwerk/test/unit Some documentation at http://developer.mozilla.org/en/docs/Writing_xpcshell-based_unit_tests See also http://wiki.mozilla.org/SoftwareTesting:Tools:Simple_xpcshell_test_harness