commit | cb711058c8b12522c9d4252e3c406d4bd5cbc772 | [log] [tgz] |
---|---|---|
author | Jim Tang <jimtang@google.com> | Wed May 08 16:38:25 2019 +0800 |
committer | Jim Tang <jimtang@google.com> | Wed Jun 12 18:03:05 2019 +0800 |
tree | a7a157adcbc50b0323db3c6a3747f690513055a3 | |
parent | cbd58f10ea36438abd9b8cbbf1577b15b62c7a80 [diff] |
Atest: Create a cache file for locate. "updatedb" is not available on Darwin platform. Without it, Atest will not be able to utilise locate command to speed up finding files. This CL provides a rewritten "updatedb" script for Darwin to create a database readable for "locate" command, which can read the database without traversing the filesystem over and over again. The purpose of it is to copy it to HOST_OUT and rename it "updatedb" in Darwin, and invoke tools/atest_updatedb.py in both Linux and Darwin. Bug: 132217764 Test: $ source build/envsetup.sh; lunch $ cd tools/tradefederation/core/atest/tools $ ./updatedb_darwin.sh -h # helping message # generate a database in $ANDROID_HOST_OUT/locate.database $ ./atest_updatedb.py # speed comparison: $ time find $ANDROID_BUILD_TOP -name gtest.cc (0m7.880s) $ time locate -d $ANDROID_HOST_OUT/locate.database gtest.cc (0m0.645s) Change-Id: I0afbc23448d37d90cc8ac128db60fe179fe70f6c
TF is a test harness used to drive Android automated testing. It runs on test hosts and monitors the connected devices, handling test scheduling & execution and device management.
Other test harnesses like Compatibility Test Suite (CTS) and Vendor Test Suite (VTS) use TF as a basis and extend it for their particular needs.
Building TF:
More information at: https://source.android.com/devices/tech/test_infra/tradefed/
See more details about Tradefed Architecture at: https://source.android.com/devices/tech/test_infra/tradefed/architecture