tree: b2dc7e2a6406f24166df32157a8ad7e3d8baf18d [path history] [tgz]
  1. test_soft_reboot/
  2. testbeds/
  3. __init__.py
  4. BUILD.gn
  5. README.md
src/testing/end_to_end/examples/README.md

Example Mobly Tests execution

Setup

  1. Ensure device type that you want to run the test on (will be listed in “device_type” field in test case's BUILD.gn file) is connected to host and detectable by FFX

    $ ffx target list
    NAME                SERIAL       TYPE             STATE      ADDRS/IP                           RCS
    fuchsia-emulator*   <unknown>    core.qemu-x64    Product    [fe80::1a1c:ebd2:2db:6104%qemu]    Y
    

    If you need instructions to start an emulator, refer to Fuchsia Emulator.

  2. Ensure the testbeds used by the test case (will be listed in “local_config_source” field in test case's BUILD.gn file) has correct device information listed (name and ssh_private_key fields. For more information about these fields, refer to Lacewing Mobly Config YAML file)

Test execution in local mode

Soft Reboot Test

$ fx set core.qemu-x64 \
    --with //src/testing/sl4f \
    --with //src/sys/bin/start_sl4f \
    --args 'core_realm_shards += [ "//src/testing/sl4f:sl4f_core_shard" ]' \
    --with-host //src/testing/end_to_end/examples:tests

# start the emulator with networking enabled
$ ffx emu stop ; ffx emu start -H --net tap

$ fx test //src/testing/end_to_end/examples/test_soft_reboot:soft_reboot_test --e2e --output