tree: 9150888a012cd44701d8cf72b60a00a71515946d [path history] [tgz]
  1. .gn
  2. ArcAccessibilityTest/
  3. ArcAnimationPerformanceTest/
  4. ArcAppValidityTest/
  5. ArcAudioTest/
  6. ArcBackupTest/
  7. ArcBlackFlashTest/
  8. ArcCameraFpsTest/
  9. ArcChromeIntentPickerTest/
  10. ArcChromeSharesheetTest/
  11. ArcChromeWebApkTest/
  12. ArcClipboardTest/
  13. ArcConfigChangesTest/
  14. ArcConnectivityTest/
  15. ArcDownloadManagerTest/
  16. ArcDragSourceTest/
  17. ArcDragTargetTest/
  18. ArcExternalStorageTest/
  19. ArcFileReaderTest/
  20. ArcGamePerformanceTest/
  21. ArcGamepadTest/
  22. ArcImagePasteTest/
  23. ArcImeBlockingTest/
  24. ArcInputCompatTest/
  25. ArcInputLatencyTest/
  26. ArcInputMethodTest/
  27. ArcKeyCharacterMapTest/
  28. ArcKeyboardTest/
  29. ArcLifecycleTest/
  30. ArcMidiClientTest/
  31. ArcMotionInputTest/
  32. ArcMultiDisplayTest/
  33. ArcMulticastForwarderTest/
  34. ArcNotificationTest/
  35. ArcPerAppDensityTest/
  36. ArcPipTest/
  37. ArcPipVideoTest/
  38. ArcPreImeKeyEventTest/
  39. ArcPrintTest/
  40. ArcQuarterSizedWindowZoomingTest/
  41. ArcQuotaProjectIdTest/
  42. ArcResizeLockTest/
  43. ArcSensorLatencyTest/
  44. ArcSoftInputModeTest/
  45. ArcSurfaceInsetsTest/
  46. ArcTtsTest/
  47. ArcWMTestApp/
  48. BUILD.gn
  49. BUILDCONFIG.gn
  50. OWNERS
  51. README.md
  52. build/
  53. certs/
android/README.md

Android projects used by Tast tests

This directory contains Android projects that are used by Tast tests. They are built at the same time the Chrome OS test image is built, and not updated by tast run command automatically.

Using an APK under the directory in Tast

Take ArcGamepadTest.apk for example.

p := s.PreValue().(arc.PreData)
a := p.ARC

if err := a.Install(ctx, arc.APKPath("ArcGamepadTest.apk")); err != nil {
  s.Fatal("Failed to install the APK: ", err)
}

Updating APKs on the device

# one time setup
setup_board --board=${BOARD}
./build_packages --board=${BOARD}

cros_workon --board=${BOARD} start tast-local-apks-cros
emerge-${BOARD} tast-local-apks-cros
cros deploy --root=/usr/local ${DUT_IP} tast-local-apks-cros

Then you can run normal tast run command.

Finding the built APKs

In the chroot they can be found under /build/$BOARD/usr/libexec/tast/apks/local/cros

On the DUT they can be found under /usr/local/libexec/tast/apks/local/cros/