commit | 82b83bbf40749e747e967175ebe49fc1f7cd180c | [log] [tgz] |
---|---|---|
author | Zhuoyao Zhang <zhuoyao@google.com> | Fri Aug 12 15:15:19 2016 -0700 |
committer | Zhuoyao Zhang <zhuoyao@google.com> | Tue Aug 16 16:01:38 2016 -0700 |
tree | bc50c45539ba218253b678eae6942e7d2cb34071 | |
parent | 44039bb0e221772fe1377318473e0d5f8e2baca9 [diff] |
Add a script to test hidl-gen output Usage: python testOutput.py hidl-gen output_dir canonical_dir --output_dir: dir to store generated file, will be cleanup if all tests pass. --canonical_dir: dir that stores all canonical files used for comparason. * Currently only test for vts outputs. b/30762234 Change-Id: I7676585f051a8d2c61c1e7a184e223f27e81ad0f
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: hidl-gen -o output -L c++ android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts android.hardware.nfc@1.0 hild-gen -o test -L c++ -r android.hardware:/home/android/master/hardware/interfaces android.hardware.nfc@1.0