commit | 69788dc46dd4b831baf0f3d70111940d6f102ddc | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Mon Sep 18 16:13:56 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Mon Sep 18 16:50:41 2017 -0700 |
tree | 5b40cad07c668e8eebeff9b3be90256a16b98838 | |
parent | 5e5794be27d891840833beaef9f6428ad8cbcf69 [diff] |
Add unit tests for StringHelper. There were some corner cases. Going to start hidl-gen unit tests with this. Test: libhidl-gen-utils_test Change-Id: I17a6b81cb9910e614684671091eb218636cdc419
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