Used ENABLE_GAPI_PREPROCESSING in C API tests
This commit is contained in:
parent
5d9e5c2731
commit
df9d53e3cc
@ -22,7 +22,8 @@ target_link_libraries(${TARGET_NAME}
|
||||
)
|
||||
|
||||
target_compile_definitions(${TARGET_NAME}
|
||||
PUBLIC ${ARGV}
|
||||
PRIVATE
|
||||
$<$<BOOL:ENABLE_GAPI_PREPROCESSING>:ENABLE_GAPI_PREPROCESSING>
|
||||
DATA_PATH=\"${DATA_PATH}\"
|
||||
MODELS_PATH=\"${MODELS_PATH}\" )
|
||||
|
||||
|
@ -1873,6 +1873,8 @@ TEST(ie_blob_make_memory_nv12, NV12BlobInvalidAfterDeallocateUVPlane) {
|
||||
ie_blob_free(&blob_nv12);
|
||||
}
|
||||
|
||||
#ifdef ENABLE_GAPI_PREPROCESSING
|
||||
|
||||
TEST(ie_blob_make_memory_nv12, inferRequestWithNV12Blob) {
|
||||
ie_core_t *core = nullptr;
|
||||
IE_ASSERT_OK(ie_core_create("", &core));
|
||||
@ -1944,6 +1946,8 @@ TEST(ie_blob_make_memory_nv12, inferRequestWithNV12Blob) {
|
||||
free(img_data);
|
||||
}
|
||||
|
||||
#endif // ENABLE_GAPI_PREPROCESSING
|
||||
|
||||
TEST(ie_blob_make_memory_i420, makeI420Blob) {
|
||||
dimensions_t dim_y = {4, {1, 1, 8, 12}}, dim_u = {4, {1, 1, 4, 6}}, dim_v = {4, {1, 1, 4, 6}};
|
||||
tensor_desc tensor_y, tensor_u, tensor_v;
|
||||
@ -2176,6 +2180,8 @@ TEST(ie_blob_make_memory_i420, I420BlobInvalidAfterDeallocateVPlane) {
|
||||
ie_blob_free(&blob_i420);
|
||||
}
|
||||
|
||||
#ifdef ENABLE_GAPI_PREPROCESSING
|
||||
|
||||
TEST(ie_blob_make_memory_i420, inferRequestWithI420) {
|
||||
ie_core_t *core = nullptr;
|
||||
IE_ASSERT_OK(ie_core_create("", &core));
|
||||
@ -2246,8 +2252,4 @@ TEST(ie_blob_make_memory_i420, inferRequestWithI420) {
|
||||
free(img_data);
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]){
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
#endif // ENABLE_GAPI_PREPROCESSING
|
||||
|
Loading…
Reference in New Issue
Block a user