0763328464
This CL removes a dependency on the VTS test runner by dynamically
discovering all NN HAL service instances in the gtest binary itself,
and runs through all service instances with parameterized tests.
This CL converts TEST_F cases to TEST_P cases, where the test parameter
is the name of the service instance. For existing TEST_P cases (such as
the generated test cases), the service instance name is made to be the
first test parameter.
This CL enables the NN VTS tests to be more portable, e.g., they can
run directly as a presubmit test.
Fixes: 124540002
Test: mma
Test: VtsHalNeuralnetworksV1_*TargetTest (with sample-all)
Test: cd $ANDROID_BUILD_TOP/hardware/interfaces/neuralnetworks && atest
Change-Id: I1e301d7c9f9342bb8f35a267bef180f510944b19
Merged-In: I1e301d7c9f9342bb8f35a267bef180f510944b19
(cherry picked from commit 7076f629b7
)
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
{
|
|
"presubmit": [
|
|
{
|
|
"name": "VtsHalNeuralnetworksV1_0TargetTest",
|
|
"options": [
|
|
{
|
|
// Just use sample-all driver for presubmit tests for faster results.
|
|
// The other sample drivers (fast-float, quant, etc.) are subsets of
|
|
// sample-all.
|
|
"native-test-flag": "--gtest_filter=*sample_all*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "VtsHalNeuralnetworksV1_1TargetTest",
|
|
"options": [
|
|
{
|
|
// Just use sample-all driver for presubmit tests for faster results.
|
|
// The other sample drivers (fast-float, quant, etc.) are subsets of
|
|
// sample-all.
|
|
"native-test-flag": "--gtest_filter=*sample_all*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "VtsHalNeuralnetworksV1_2TargetTest",
|
|
"options": [
|
|
{
|
|
// Just use sample-all driver for presubmit tests for faster results.
|
|
// The other sample drivers (fast-float, quant, etc.) are subsets of
|
|
// sample-all.
|
|
"native-test-flag": "--gtest_filter=*sample_all*"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|