tree: b93b350fad07f204ed91859c8eafa2899c1c16ad [path history] [tgz]
  1. .vpython
  2. __init__.py
  3. build-dockerimage.sh
  4. container_prep.py
  5. README.md
  6. run_docker.py
test/container/utils/README.md

How to build & run a test in the container (All of these steps are outside chroot)

Setup the artifacts & Build:

1.) cd to

/dev/test/container/utils

2.) Run the following command (with chroot_path and sysroot_path set):

./build-dockerimage.sh $chroot_path $sysroot_path <tags>

Run the test via testexecservice

3.) cd to src/platform/dev/test/container/utils

4.) Run docker_run.py with your required args:

IMPORTANT NOTE 1: You must create a request.json with a valid test/DUT. See tauto example and tast example

Example of foreground cmd only (pastes the command, you can copy/paste to start it)

python3 run_docker.py --build=$docker_image_name --input_json=../../../src/chromiumos/test/execution/data/tauto.json --results=$chroot_path/tmp/dockertest --foreground --print_cmd_only

Example of full cmd (starts the test for you, and echos stdout)

python3 run_docker.py --build=$docker_image_name --input_json=../../../src/chromiumos/test/execution/data/tauto.json --results=$chroot_path/tmp/dockertest --foreground

Example of full cmd (runs in background), provides results dir.

python3 run_docker.py --build=$docker_image_name --input_json=../../../src/chromiumos/test/execution/data/tauto.json --results=$chroot_path/tmp/dockertest