mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Make test.py run the most recently built binary.
This commit is contained in:
parent
57e82619ca
commit
6faca211b1
1 changed files with 22 additions and 5 deletions
27
test.py
27
test.py
|
@ -6,9 +6,23 @@ import io
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import threading
|
import threading
|
||||||
|
import glob
|
||||||
|
|
||||||
|
|
||||||
PPSSPP_EXECUTABLES = [ "Windows\\Release\\PPSSPPHeadless.exe", "build/PPSSPPHeadless" ]
|
PPSSPP_EXECUTABLES = [
|
||||||
|
# Windows
|
||||||
|
"Windows\\Debug\\PPSSPPHeadless.exe",
|
||||||
|
"Windows\\Release\\PPSSPPHeadless.exe",
|
||||||
|
"Windows\\x64\\Debug\\PPSSPPHeadless.exe",
|
||||||
|
"Windows\\x64\\Release\\PPSSPPHeadless.exe",
|
||||||
|
# Mac
|
||||||
|
"build*/Debug/PPSSPPHeadless",
|
||||||
|
"build*/Release/PPSSPPHeadless",
|
||||||
|
"build*/RelWithDebInfo/PPSSPPHeadless",
|
||||||
|
"build*/MinSizeRel}/PPSSPPHeadless",
|
||||||
|
# Linux
|
||||||
|
"build*/PPSSPPHeadless"
|
||||||
|
]
|
||||||
PPSSPP_EXE = None
|
PPSSPP_EXE = None
|
||||||
TEST_ROOT = "pspautotests/tests/"
|
TEST_ROOT = "pspautotests/tests/"
|
||||||
teamcity_mode = False
|
teamcity_mode = False
|
||||||
|
@ -199,10 +213,13 @@ def init():
|
||||||
print("(checked for existence of cpu/cpu_alu/cpu_alu.prx)")
|
print("(checked for existence of cpu/cpu_alu/cpu_alu.prx)")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
for p in PPSSPP_EXECUTABLES:
|
possible_exes = [glob.glob(f) for f in PPSSPP_EXECUTABLES]
|
||||||
if os.path.exists(p):
|
possible_exes = [x for sublist in possible_exes for x in sublist]
|
||||||
PPSSPP_EXE = p
|
existing = filter(os.path.exists, possible_exes)
|
||||||
break
|
if existing:
|
||||||
|
PPSSPP_EXE = max((os.path.getmtime(f), f) for f in existing)[1]
|
||||||
|
else:
|
||||||
|
PPSSPP_EXE = None
|
||||||
|
|
||||||
if not PPSSPP_EXE:
|
if not PPSSPP_EXE:
|
||||||
print("PPSSPP executable missing, please build one.")
|
print("PPSSPP executable missing, please build one.")
|
||||||
|
|
Loading…
Add table
Reference in a new issue