Confirmed users
1,759
edits
Line 199: | Line 199: | ||
== cppunittests == | == cppunittests == | ||
[https://developer.mozilla.org/en/docs/Compiled-code_automated_tests] | |||
To run a single compiled code test: | To run a single compiled code test: | ||
mach cppunittest <test> | |||
For example, | |||
mach cppunittest <absolute-path-to-objdir>/xpcom/tests/TestTimers | |||
To run all the compiled code tests listed in the master cppunittests.ini manifest: | |||
mach cppunittest | |||
Notes: | Notes: | ||
* | * Specifying the test by relative path is difficult; specify an absolute path to the test binary. | ||
* It is not possible to run all tests in a directory. | |||
* All files are copied to /data/local/tests by default. On some devices, you may need to create /data/local/tests and make it world writable. | * All files are copied to /data/local/tests by default. On some devices, you may need to create /data/local/tests and make it world writable. | ||