Skip to content

Commit 8ba8b11

Browse files
update wildcard
1 parent 1485296 commit 8ba8b11

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

code/tests/tools/wildcard.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
import glob
2+
import sys
23

34
# Collect all .c and .cpp files directly in the cases directory (not subdirectories)
45
source_files = glob.glob("cases/*.c") + glob.glob("cases/*.cpp")
56

7+
# On Apple platforms, also include Objective-C and Objective-C++ files
8+
if sys.platform == "darwin":
9+
source_files += glob.glob("cases/*.m") + glob.glob("cases/*.mm")
10+
611
# Print each file name with "cases/" prefix
712
for file in source_files:
813
print(file)

0 commit comments

Comments
 (0)