Add hello_classification_ov_c test (#11933)

Co-authored-by: River Li <river.li@intel.com>
This commit is contained in:
RICKIE777 2022-06-23 15:08:53 +08:00 committed by GitHub
parent 11a9888c3f
commit ebeb0a3802
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -160,8 +160,10 @@ class SamplesCommonTestClass():
executable_path = 'python ' + executable_path
else:
executable_path = 'python3 ' + executable_path
elif 'c' in sample_type.lower() and not 'c++' in sample_type.lower():
elif 'c' in sample_type.lower() and not 'c++' in sample_type.lower() and not '2.0' in sample_type:
executable_path += '_c'
elif '2.0' in sample_type:
executable_path += '_ov_c'
if is_windows and not 'python' in sample_type.lower():
executable_path += '.exe'

View File

@ -28,13 +28,13 @@ log.basicConfig(format="[ %(levelname)s ] %(message)s", level=log.INFO, stream=s
test_data_fp32 = get_tests(cmd_params={'i': [os.path.join('227x227', 'dog.bmp')],
'm': [os.path.join('squeezenet1.1', 'FP32', 'squeezenet1.1.xml')],
'd': ['CPU'],
'sample_type': ['C++', 'C']},
'sample_type': ['C++', 'C', 'C2.0']},
use_device=['d'])
test_data_fp32_unicode = get_tests(cmd_params={'i': [os.path.join('227x227', 'dog.bmp')],
'm': [os.path.join('squeezenet1.1', 'FP32', 'squeezenet1.1.xml')],
'd': ['CPU'],
'sample_type': ['C++', 'C']},
'sample_type': ['C++', 'C', 'C2.0']},
use_device=['d'])