commit | 0e72fb915dc4e96e2248f31f2e1e425cf49a535c | [log] [tgz] |
---|---|---|
author | Matthias Maennich <[email protected]> | Tue Jun 08 11:50:41 2021 +0100 |
committer | Matthias Maennich <[email protected]> | Tue Jun 08 11:52:36 2021 +0100 |
tree | 8f29d863fc328f1c1e54a3842109409de0367921 | |
parent | a03c18803d9bd53d9a9cd96cb6e4606b66ed00ac [diff] |
build: make strutil_bench a separate host_test strutil_bench is a standalone benchmarking executable to be run on the host for testing purposes. Define it as such. Signed-off-by: Matthias Maennich <[email protected]> Change-Id: Ib4a0fc4cf13b017fde5d7a83e45619a87aafac26
kati is an experimental GNU make clone. The main goal of this tool is to speed-up incremental build of Android.
Currently, kati does not offer a faster build by itself. It instead converts your Makefile to a ninja file.
Building:
$ make ckati
The above command produces a ckati
binary in the project root.
Testing (best ran in a Ubuntu 18.04 environment):
$ make test $ go test --ckati $ go test --ckati --ninja $ go test --ckati --ninja --all
The above commands run all cKati and Ninja tests in the testcases/
directory.
Alternatively, you can also run the tests in a Docker container in a prepared test enviroment:
$ docker build -t kati-test . && docker run kati-test
For Android-N+, ckati and ninja is used automatically. There is a prebuilt checked in under prebuilts/build-tools that is used.
All Android's build commands (m, mmm, mmma, etc.) should just work.