Skip to content

Commit 858e992

Browse files
committed
tests/run-perfbench.py: Skip complex tests if target doesn't enable it.
1 parent f188263 commit 858e992

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/run-perfbench.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,17 @@ def run_benchmark_on_target(target, script):
7777
return -1, -1, 'CRASH: %r' % err
7878

7979
def run_benchmarks(target, param_n, param_m, n_average, test_list):
80+
skip_complex = run_feature_test(target, 'complex') != 'complex'
8081
skip_native = run_feature_test(target, 'native_check') != ''
8182

8283
for test_file in sorted(test_list):
8384
print(test_file + ': ', end='')
8485

8586
# Check if test should be skipped
86-
skip = skip_native and test_file.find('viper_') != -1
87+
skip = (
88+
skip_complex and test_file.find('bm_fft') != -1
89+
or skip_native and test_file.find('viper_') != -1
90+
)
8791
if skip:
8892
print('skip')
8993
continue

0 commit comments

Comments
 (0)