tests/run-perfbench.py: Skip complex tests if target doesn't enable it.
parent
f1882636c0
commit
858e992d2e
|
@ -77,13 +77,17 @@ def run_benchmark_on_target(target, script):
|
||||||
return -1, -1, 'CRASH: %r' % err
|
return -1, -1, 'CRASH: %r' % err
|
||||||
|
|
||||||
def run_benchmarks(target, param_n, param_m, n_average, test_list):
|
def run_benchmarks(target, param_n, param_m, n_average, test_list):
|
||||||
|
skip_complex = run_feature_test(target, 'complex') != 'complex'
|
||||||
skip_native = run_feature_test(target, 'native_check') != ''
|
skip_native = run_feature_test(target, 'native_check') != ''
|
||||||
|
|
||||||
for test_file in sorted(test_list):
|
for test_file in sorted(test_list):
|
||||||
print(test_file + ': ', end='')
|
print(test_file + ': ', end='')
|
||||||
|
|
||||||
# Check if test should be skipped
|
# Check if test should be skipped
|
||||||
skip = skip_native and test_file.find('viper_') != -1
|
skip = (
|
||||||
|
skip_complex and test_file.find('bm_fft') != -1
|
||||||
|
or skip_native and test_file.find('viper_') != -1
|
||||||
|
)
|
||||||
if skip:
|
if skip:
|
||||||
print('skip')
|
print('skip')
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue