File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 3
3
4
4
# Runs all samples in benchmark mode and stores all validation messages into a single text file
5
5
6
- # Note: Need to be copied to where the binary files have been compiled
6
+ # Note: Needs to be copied to where the binary files have been compiled (e.g. build/windows/bin/debug)
7
7
8
8
import glob
9
9
import subprocess
10
10
import os
11
+ import platform
11
12
12
13
if os .path .exists ("validation_output.txt" ):
13
14
os .remove ("validation_output.txt" )
14
- for sample in glob .glob ("*.exe" ):
15
- # Skip headless samples, as they require manual keypress
15
+ if platform .system () == 'Linux' or platform .system () == 'Darwin' :
16
+ binaries = "./*"
17
+ else :
18
+ binaries = "*.exe"
19
+ for sample in glob .glob (binaries ):
20
+ # Skip headless samples, as they require a manual keypress
16
21
if "headless" in sample :
17
22
continue
18
23
subprocess .call ("%s -v -vl -b -bfs %s" % (sample , 50 ), shell = True )
You can’t perform that action at this time.
0 commit comments