forked from dragoonDorise/EmuDeck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unit-testing.sh
270 lines (151 loc) · 4.01 KB
/
unit-testing.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
#!/bin/bash
. $HOME/.config/EmuDeck/backend/functions/all.sh
. ./api.sh
YELLOW='\033[01;33m'
CYAN='\033[01;36m'
NONE='\033[00m'
#Red STDERR
exec 9>&2
exec 8> >(
while IFS='' read -r line || [ -n "$line" ]; do
echo -e "\033[31m${line}\033[0m"
done
)
function undirect(){ exec 2>&9; }
function redirect(){ exec 2>&8; }
trap "redirect;" DEBUG
PROMPT_COMMAND='undirect;'
# Git Pull
echo "" && echo -e "${YELLOW}Testing Git Pull...${NONE}"
API_pull 1> /dev/null dev
#
## Quick Settings
#
function QuickSettings(){
# AutoSave
echo "" && echo -ne "${CYAN}Testing AutoSave...${NONE}"
API_autoSave
# Bezels
echo "" && echo -ne "${CYAN}Testing Bezels...${NONE}"
API_bezels
# Sega AR
echo "" && echo -ne "${CYAN}Testing Sega AR...${NONE}"
API_ar_sega
# Nintendo AR
echo "" && echo -ne "${CYAN}Testing Nintendo AR...${NONE}"
API_ar_snes
# 3D AR
echo "" && echo -ne "${CYAN}Testing 3D AR...${NONE}"
API_setAR
# GameCube AR
echo "" && echo -ne "${CYAN}Testing GameCube AR...${NONE}"
API_ar_gamecube
# LCD Shader
echo "" && echo -ne "${CYAN}Testing LCD Shader...${NONE}"
API_shaders_LCD
# CRT Shader
echo "" && echo -ne "${CYAN}Testing CRT Shader...${NONE}"
API_shaders_CRT
# 3D CRT Shader
echo "" && echo -ne "${CYAN}Testing 3D CRT Shader...${NONE}"
API_shaders_3D
}
echo "" && echo -ne "${YELLOW}Testing QuickSettings ON...${NONE}"
echo ""
RABezels=true
RAautoSave=true
arClassic3D=169
arDolphin=169
arSega=32
arSnes=87
RAHandClassic2D=true
RAHandClassic3D=true
RAHandHeldShader=true
doSetupSaveSync=true
QuickSettings
echo ""
echo "" && echo -ne "${YELLOW}Testing QuickSettings OFF...${NONE}"
echo ""
RABezels=false
RAautoSave=false
arClassic3D=43
arDolphin=43
arSega=43
arSnes=43
RAHandClassic2D=false
RAHandClassic3D=false
RAHandHeldShader=false
doSetupSaveSync=false
QuickSettings
#
# # Emulators
#
# RA
echo "" && echo -ne "${YELLOW}Testing RA...${NONE}"
#Install
echo "" && echo -ne "${CYAN}Installation...${NONE}"
RetroArch_isInstalled
#Launcher
echo "" && echo -ne "${CYAN}Launcher...${NONE}"
#Game
echo "" && echo -ne "${CYAN}Game...${NONE}"
#Uninstall
echo "" && echo -ne "${CYAN}Uninstall...${NONE}"
#Resolution
echo "" && echo -ne "${CYAN}Resolution...${NONE}"
# Dolphin
echo "" && echo -ne "${YELLOW}Testing Dolphin...${NONE}"
# PrimeHack
echo "" && echo -ne "${YELLOW}Testing PrimeHack...${NONE}"
# PPSSPP
echo "" && echo -ne "${YELLOW}Testing PPSSPP...${NONE}"
# Duckstation
echo "" && echo -ne "${YELLOW}Testing Duckstation...${NONE}"
# melonDS
echo "" && echo -ne "${YELLOW}Testing melonDS...${NONE}"
# Citra
echo "" && echo -ne "${YELLOW}Testing Citra...${NONE}"
# PCSX2
echo "" && echo -ne "${YELLOW}Testing PCSX2...${NONE}"
# RPCS3
echo "" && echo -ne "${YELLOW}Testing RPCS3...${NONE}"
# Yuzu
echo "" && echo -ne "${YELLOW}Testing Yuzu...${NONE}"
# Ryujinx
echo "" && echo -ne "${YELLOW}Testing Ryujinx...${NONE}"
# Xemu
echo "" && echo -ne "${YELLOW}Testing Xemu...${NONE}"
# Cemu
echo "" && echo -ne "${YELLOW}Testing Cemu...${NONE}"
# SRM
echo "" && echo -ne "${YELLOW}Testing SRM...${NONE}"
# RMG
echo "" && echo -ne "${YELLOW}Testing RMG...${NONE}"
# MAME
echo "" && echo -ne "${YELLOW}Testing MAME...${NONE}"
# Vita3K
echo "" && echo -ne "${YELLOW}Testing Vita3K...${NONE}"
# Flycast
echo "" && echo -ne "${YELLOW}Testing Flycast...${NONE}"
# ScummVM
echo "" && echo -ne "${YELLOW}Testing ScummVM...${NONE}"
# Xenia
echo "" && echo -ne "${YELLOW}Testing Xenia...${NONE}"
# mGBA
echo "" && echo -ne "${YELLOW}Testing mGBA...${NONE}"
# ESDE
echo "" && echo -ne "${YELLOW}Testing ESDE...${NONE}"
# Pegasus
echo "" && echo -ne "${YELLOW}Testing Pegasus...${NONE}"
#
# Others
echo "" && echo -ne "${YELLOW}Testing Others...${NONE}"
#
# CloudSaves
echo "" && echo -ne "${YELLOW}Testing CloudSaves...${NONE}"
# RetroAchievements
echo "" && echo -ne "${YELLOW}Testing RetroAchievements...${NONE}"
# EmuDecky
echo "" && echo -ne "${YELLOW}Testing EmuDecky...${NONE}"
# GyroDSU
echo "" && echo -ne "${YELLOW}Testing GyroDSU...${NONE}"