summaryrefslogtreecommitdiff
path: root/experiments
AgeCommit message (Collapse)Author
2021-05-07Enables --host flag for Local TF runsandroid-s-beta-2android-s-beta-1Karl Shaffer
The cc_tf_test_launcher now checks the next positional argument for a --host flag and adds the corresponding flags to the TradeFed execution. This flag approach mimics how ATest currently handles host/device tests. Test: Manual testing, through the following steps: bazel run //build/pesto/experiments/prepare_bazel_test_env -- generate bazel run //build/pesto/experiments/prepare_bazel_test_env -- sync (For host side test) bazel test //platform_testing/tests/example/native:hello_world_test --test_output=all --test_arg=--host (For device side test, requiring a device connected and lunch selecting the correct build target) bazel test //platform_testing/tests/example/native:hello_world_test --test_output=all Change-Id: I3b92a2551a1a9d272c45cd5047f5a764d8a849c7
2021-05-04Implement the prepare_bazel_test_env scriptKarl Shaffer
The prepare_bazel_test_env script allows for the import of Soong-built test targets into a pseudo-Bazel test environment for the development of test infrastructure. Test: As of this CL, the script can be executed successfully and tested manually with the following steps: bazel run //build/pesto/experiments/prepare_bazel_test_env -- -v generate bazel run //build/pesto/experiments/prepare_bazel_test_env -- -v sync bazel test --test_output=all //platform_testing/tests/example/native:hello_world_test Change-Id: Ia66b67546e2a2f11c5c6c3870a700d3356318461
2021-04-29Add the script data filesKarl Shaffer
The data/ directory includes the `static` and `templates` directories which is used as the source for the generated Bazel environment. Files placed in the template directory are formatted and staged, and eventually synced to the source tree. Thus, they are stored in the same directory hierarchy as the source tree. Files placed in the static directory are copied into the source tree. Test: N/A Change-Id: I5adb3cd95e3142030287132b6ebc88d21da4f15c
2021-04-19Add a script to prepare a Bazel environmentKarl Shaffer
Starts the migration of the prepare_bazel_test_env script which utilizes Soong prebuilts to scaffold a Bazel environment that can be used for executing tests. Test: N/A Change-Id: Ia6f88dfa7b85f9fe9225d9d162902117d660f3bd