gecko-dev/testing/xpcshell
Jim Blandy b24022116e Bug 1503613: Make 'mach xpcshell-test' print the command in shell syntax. r=ted
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
2018-12-19 15:37:32 +00:00
..
example Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
moz-http2 Bug 1507139 - Fix h2 push for esni r=bagder 2018-11-15 13:10:54 +00:00
node-http2 Bug 1429973 part 0 - Update node-http2 to v3.3.8 for required bugfix. r=bagder 2018-02-15 10:12:38 -08:00
dbg-actors.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
head.js Bug 1514248 - Reimplement xpcshell test debugging using a public thread-actor API. r=jlast 2018-12-14 17:33:45 +00:00
mach_commands.py Bug 1440714 - Convert Android mach commands to adb.py; r=bc 2018-04-05 12:50:29 -06:00
mach_test_package_commands.py
moz.build
python.ini Bug 1491766 - Enable selftest.py on Mac now that all our builds are later than 10.7. r=ahal 2018-09-17 14:05:39 +00:00
README
remotexpcshelltests.py Bug 1470266 - [ci] Schedule serviceworker-e10s xpcshell tasks with linux64/debug on mozilla-central, r=jmaher 2018-11-08 22:08:16 +00:00
runxpcshelltests.py Bug 1503613: Make 'mach xpcshell-test' print the command in shell syntax. r=ted 2018-12-19 15:37:32 +00:00
selftest.py Bug 1455176: Follow-up: Fix build bustage from xpcshell self-test. r=bustage CLOSED TREE 2018-04-19 15:11:15 -07:00
xpcshellcommandline.py Bug 1460914 - [xpcshell] Add --setpref to the command line, r=ted 2018-11-08 14:50:32 +00:00

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