We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c21a796 commit dd0f9d0Copy full SHA for dd0f9d0
testing/benchmark_hooks.py
@@ -29,13 +29,15 @@
29
},
30
]
31
32
-# Automatically find all C/C++ files in testing/ (and optionally src/, include/)
33
-TARGET_FILES = (
+# Automatically find all C/C++ files in testing/
+TARGET_FILES = sorted(
34
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)
+ glob.glob("testing/**/*.cpp", recursive=True)
+ glob.glob("testing/**/*.h", recursive=True)
+ glob.glob("testing/**/*.hpp", recursive=True)
38
)
39
+if not TARGET_FILES:
40
+ raise SystemExit("No C/C++ target files found under testing/.")
41
42
REPEATS = 5
43
RESULTS_FILE = "testing/benchmark_results.txt"
0 commit comments