mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-24 00:29:57 +00:00
Merge branch 'test-runner' of https://github.com/unknownbrackets/ppsspp into unknownbrackets-test-runner
Conflicts: test.py
This commit is contained in:
commit
5d22527bed
29
test.py
29
test.py
@ -5,9 +5,25 @@ import sys
|
||||
import os
|
||||
import subprocess
|
||||
import threading
|
||||
import glob
|
||||
|
||||
|
||||
PPSSPP_EXECUTABLES = [ "Windows\\Release\\PPSSPPHeadless.exe", "build/PPSSPPHeadless","./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",
|
||||
"./PPSSPPHeadless"
|
||||
]
|
||||
|
||||
PPSSPP_EXE = None
|
||||
TEST_ROOT = "pspautotests/tests/"
|
||||
teamcity_mode = False
|
||||
@ -202,10 +218,13 @@ def init():
|
||||
print("(checked for existence of cpu/cpu_alu/cpu_alu.prx)")
|
||||
sys.exit(1)
|
||||
|
||||
for p in PPSSPP_EXECUTABLES:
|
||||
if os.path.exists(p):
|
||||
PPSSPP_EXE = p
|
||||
break
|
||||
possible_exes = [glob.glob(f) for f in PPSSPP_EXECUTABLES]
|
||||
possible_exes = [x for sublist in possible_exes for x in sublist]
|
||||
existing = filter(os.path.exists, possible_exes)
|
||||
if existing:
|
||||
PPSSPP_EXE = max((os.path.getmtime(f), f) for f in existing)[1]
|
||||
else:
|
||||
PPSSPP_EXE = None
|
||||
|
||||
if not PPSSPP_EXE:
|
||||
print("PPSSPP executable missing, please build one.")
|
||||
|
Loading…
Reference in New Issue
Block a user