commit | 53b9bfb42a5f1426c5eb21234d2b4d2a4ad0222c | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Wed Sep 20 14:15:30 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Thu Sep 21 15:49:01 2017 -0700 |
tree | 390f95ed5a9e8ffb54801edee39a5fd543f4adee | |
parent | 32a9eccae19b96573a21fa5b65e12e3b9c83f8b2 [diff] |
Add hidl-gen-host_test. Note the primary difference between this and utils_test is that these tests are host only whereas utils_test is testing the part of hidl-gen that is available both on host and on device. This only contains tests for Coordinator and Location because they have been modified recently. More tests will be added in the future. Also updated run_all_host_tests.sh to accept additional host tests. Test: run_all_host_tests Change-Id: Ie5a0727157ea109f2e6d408c1d5acc84517e9587
croot make hidl-gen
hidl-gen -o output-path -L language (-r interface-root) fqname output-path: directory to store the output files. language: output file for given language. e.g.c++, vts.. fqname: fully qualified name of the input files. For singe file input, follow the format: package@version::fileName For directory input, follow the format: package@version interface-root(optional): prefix and root path for fqname. If not set, use the default prefix: android.hardware and default root path defined in $TOP. examples: croot hidl-gen -o output -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0