Clone this repo:
  1. bafba93 touch_firmware_test: add major/minor in linechart by Jingkui Wang · 7 months ago factory-grunt-11164.B factory-nami-10715.B factory-nocturne-10984.B factory-nocturne-11066.B factory-rammus-11289.B firmware-grunt-11031.B firmware-nami-10775.B firmware-nocturne-10984.B firmware-octopus-11297.B firmware-rammus-11275.B firmware-servo-11011.B master release-R68-10718.B release-R69-10895.B release-R70-11021.B release-R71-11151.B release-R72-11316.B stabilize-10682.B stabilize-10718.111.B stabilize-10718.69.B stabilize-10718.71.B stabilize-10718.88.B stabilize-10866.B stabilize-10895.56.B stabilize-10895.B stabilize-10985.B stabilize-11005.B stabilize-11020.B stabilize-11021.84.B stabilize-11101.B stabilize-11151.59.B stabilize-11217.B stabilize-11306.B stabilize-atlas-11022.B stabilize-atlas-11177.B stabilize-atlas.10736.B stabilize-atlas.10819.B stabilize-jetstream-11056.B stabilize-nocturne-10986.B stabilize-nocturne.10736.B stabilize-nocturne.10819.B stabilize-nocturne.10828.B
  2. 4dddd74 touch_firmware_test: Add Dockerfile by Jingkui Wang · 8 months ago
  3. e4095d6 touch_firmware_test: Add env to save report into specified dir by Jingkui Wang · 8 months ago
  4. 6fffb72 touch_firmware_test: Add requirements.txt by Jingkui Wang · 8 months ago
  5. 1ebf2e7 touch_firmware_test: change server ip to allow running in docker. by Jingkui Wang · 8 months ago

Touch Firmware Test

This repo holds the source code of the touch firmware test.

Get the source:

$ git clone https://chromium.googlesource.com/chromiumos/platform/touch_firmware_test

Run the code:

See this website for details: https://www.chromium.org/for-testers/touch-firmware-tests .

Run in Docker:

You can also run the tests in docker now. You can build your own docker image or use the one on docker hub.

How to run tests in docker

  • Connect the test device.
  • Stop the host machine adb: $ adb kill-server
  • Start docker image: $ docker run -t -i --privileged -v /dev/bus/usb:/dev/bus/usb -v $(pwd -L):/output -p 8080:8080 wjkcow/cros_touch_test bash The test report will be saved into current directory. You can change “$(pwd -L)” to any directory you want.
  • Start adb server in the container by $ adb start-server Note: The first run might fail, try it again, it should work.
  • Run the test. For android, do “python main.py -t android”.
  • Follow the instructions in terminal, go to http://127.0.0.1:8080. If you don't open the webpage, the test might stuck.