Skip to content

Commit dd0f9d0

Browse files
Update testing/benchmark_hooks.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent c21a796 commit dd0f9d0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

testing/benchmark_hooks.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@
2929
},
3030
]
3131

32-
# Automatically find all C/C++ files in testing/ (and optionally src/, include/)
33-
TARGET_FILES = (
32+
# Automatically find all C/C++ files in testing/
33+
TARGET_FILES = sorted(
3434
glob.glob("testing/**/*.c", recursive=True)
35-
+ glob.glob("testing/**/*.cpp", recursive=True)
36-
+ glob.glob("testing/**/*.h", recursive=True)
37-
+ glob.glob("testing/**/*.hpp", recursive=True)
35+
glob.glob("testing/**/*.cpp", recursive=True)
36+
glob.glob("testing/**/*.h", recursive=True)
37+
glob.glob("testing/**/*.hpp", recursive=True)
3838
)
39+
if not TARGET_FILES:
40+
raise SystemExit("No C/C++ target files found under testing/.")
3941

4042
REPEATS = 5
4143
RESULTS_FILE = "testing/benchmark_results.txt"

0 commit comments

Comments
 (0)