Closed Bug 1626351 Opened 4 months ago Closed 4 months ago

Support mach jstests and mach jit-test for android devices

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: bc, Assigned: bc)

References

Details

(Whiteboard: dev-prod-2020 )

Attachments

(1 file)

Although jit_tests.py does support running tests on Android devices, using mach on my Fedora 31 system, I see

$ ./mach jit-test --remote
Traceback (most recent call last):
  File "/home/bclary/mozilla/builds/autoland/mozilla/js/src/tests/lib/jittests.py", line 786, in get_remote_results
    for i in xrange(0, options.repeat):
NameError: name 'xrange' is not defined

jittests.py is run under python3 which does not support xrange.

jstests.py does not support running testing on Android devices.

It should be possible to use mach to run either jit-test or jstests against Android devices.

./mach jstests --remote
./mach jit-test --remote

Remove xrange usage as python3 incompatible when running
mach jit-test.

Move device initialization code from js/src/tests/lib/jittests.py
to js/src/tests/lib/remote.py. Make device initialization into a
singleton to prevent multiple attempts to initialize a device.

Initialize device in XULInfoTester and support evaluation of test
predicate conditions using the js shell on the device.

Standardize directory names on android device for both jit-test and jstest.

Add arguments to jstests to support chunking.

Pushed by bclary@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a7b9ad4535a9
Support mach jstests and mach jit-test for android devices, r=sfink.
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
Whiteboard: dev-prod-2020
You need to log in before you can comment on or make changes to this bug.