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 33
44# Runs all samples in benchmark mode and stores all validation messages into a single text file
55
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)
77
88import glob
99import subprocess
1010import os
11+ import platform
1112
1213if os .path .exists ("validation_output.txt" ):
1314 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
1621 if "headless" in sample :
1722 continue
1823 subprocess .call ("%s -v -vl -b -bfs %s" % (sample , 50 ), shell = True )
You can’t perform that action at this time.
0 commit comments