You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
2.5 KiB
66 lines
2.5 KiB
genrule { |
|
name: "hidl_hash_version_gen", |
|
tools: [ |
|
"hidl-gen", |
|
], |
|
cmd: "$(location hidl-gen) -L check " + |
|
" -r test.version:system/tools/hidl/test/version_test/good" + |
|
" test.version.version@1.0" + |
|
" test.version.version@2.2" + |
|
" test.version.version@2.3" + |
|
" test.version.version@2.4" + |
|
" test.version.version@2.5" + |
|
"&&" + |
|
"($(location hidl-gen) -L check " + |
|
" -r test.version:system/tools/hidl/test/version_test/bad1" + |
|
" test.version.version@2.3 2>&1 | grep \"Cannot enforce minor version\" > /dev/null)" + |
|
"&&" + |
|
"($(location hidl-gen) -L check " + |
|
" -r test.version:system/tools/hidl/test/version_test/bad2" + |
|
" test.version.version@2.4 2>&1 | grep \"Cannot enforce minor version\" > /dev/null)" + |
|
"&&" + |
|
"($(location hidl-gen) -L check " + |
|
" -r test.version:system/tools/hidl/test/version_test/bad3" + |
|
" test.version.version@2.5 2>&1 | grep \"Cannot enforce minor version\" > /dev/null)" + |
|
"&&" + |
|
"($(location hidl-gen) -L check " + |
|
" -r test.version:system/tools/hidl/test/version_test/bad4" + |
|
" test.version.version@2.3 2>&1 | grep \"doesn't pass minor version\" > /dev/null)" + |
|
"&&" + |
|
"echo 'int main(){return 0;}' > $(genDir)/TODO_b_37575883.cpp", |
|
out: ["TODO_b_37575883.cpp"], |
|
|
|
srcs: [ |
|
"bad1/version/1.0/IFoo.hal", |
|
"bad1/version/2.2/IBar.hal", |
|
"bad1/version/2.3/IBar.hal", |
|
"bad2/version/2.2/IBar.hal", |
|
"bad2/version/2.3/IBar.hal", |
|
"bad2/version/2.4/IBar.hal", |
|
"bad3/version/2.2/IBar.hal", |
|
"bad3/version/2.2/IFoo.hal", |
|
"bad3/version/2.3/IBar.hal", |
|
"bad3/version/2.4/IBar.hal", |
|
"bad3/version/2.4/IFoo.hal", |
|
"bad3/version/2.5/IBar.hal", |
|
"bad3/version/2.5/IFoo.hal", |
|
"bad4/version/1.0/IFoo.hal", |
|
"bad4/version/2.2/IBar.hal", |
|
"bad4/version/2.2/IFoo.hal", |
|
"bad4/version/2.3/IBaz.hal", |
|
"good/version/1.0/IFoo.hal", |
|
"good/version/2.2/IBar.hal", |
|
"good/version/2.2/IFoo.hal", |
|
"good/version/2.3/IBar.hal", |
|
"good/version/2.3/IBaz.hal", |
|
"good/version/2.4/IBar.hal", |
|
"good/version/2.4/IFoo.hal", |
|
"good/version/2.5/IBar.hal", |
|
"good/version/2.5/IFoo.hal", |
|
] |
|
} |
|
|
|
cc_test_host { |
|
name: "hidl_version_test", |
|
generated_sources: ["hidl_hash_version_gen"], |
|
} |