@@ -22,20 +22,29 @@ sub help {
22
22
The script run_test.pl is a test runner that work in conjunction with ps2autotests (https://github.com/unknownbrackets/ps2autotests)
23
23
24
24
Mandatory Option
25
- --exe <STRING> : the PCSX2 binary that you want to test
26
- --cfg <STRING> : a path to the a default ini configuration of PCSX2
27
- --suite <STRING> : a path to ps2autotests test (root directory)
25
+ --exe <STRING> : the PCSX2 binary that you want to test
26
+ --cfg <STRING> : a path to the a default ini configuration of PCSX2
27
+ --suite <STRING> : a path to ps2autotests test (root directory)
28
28
29
29
Optional Option
30
- --cpu=1 : the number of parallel tests launched. Might create additional issue
31
- --timeout=20 : a global timeout for hang tests
32
- --show_diff : show debug information
30
+ --cpu=1 : the number of parallel tests launched. Might create additional issue
31
+ --timeout=20 : a global timeout for hang tests
32
+ --show_diff : show debug information
33
33
34
- --test=<REGEXP> : filter test based on their names
35
- --regression : blacklist test that are known to be broken
34
+ --test=<REGEXP> : filter test based on their names
35
+ --regression : blacklist test that are known to be broken
36
+ --option <KEY>=<VAL> : overload PCSX2 configuration option
36
37
37
- --debug_me : print script info
38
- --dry_run : don't launch PCSX2
38
+ --debug_me : print script info
39
+ --dry_run : don't launch PCSX2
40
+
41
+ PCSX2 option
42
+ EnableEE=disabled : Use EE interpreter
43
+ EnableIOP=disabled : Use IOP interpreter
44
+ EnableVU0=disabled : Use VU0 interpreter
45
+ EnableVU1=disabled : Use VU1 interpreter
46
+ FPU.Roundmode=3 : EE FPU round mode
47
+ VU.Roundmode=3 : VU round mode
39
48
40
49
EOS
41
50
print $msg ;
@@ -44,7 +53,7 @@ sub help {
44
53
}
45
54
46
55
my $mt_timeout :shared;
47
- my ($o_suite , $o_help , $o_exe , $o_cfg , $o_max_cpu , $o_timeout , $o_show_diff , $o_debug_me , $o_test_name , $o_regression , $o_dry_run );
56
+ my ($o_suite , $o_help , $o_exe , $o_cfg , $o_max_cpu , $o_timeout , $o_show_diff , $o_debug_me , $o_test_name , $o_regression , $o_dry_run , %o_pcsx2_opt );
48
57
49
58
# default value
50
59
$o_max_cpu = 1;
@@ -68,6 +77,7 @@ sub help {
68
77
' dry_run' => \$o_dry_run ,
69
78
' exe=s' => \$o_exe ,
70
79
' help' => \$o_help ,
80
+ ' option=s' => \%o_pcsx2_opt ,
71
81
' regression' => \$o_regression ,
72
82
' testname=s' => \$o_test_name ,
73
83
' timeout=i' => \$o_timeout ,
@@ -251,6 +261,10 @@ sub generate_cfg {
251
261
# FIXME add interpreter vs recompiler
252
262
# FIXME add clamping / rounding option
253
263
# FIXME need separate cfg dir !
264
+ foreach my $k (keys (%o_pcsx2_opt )) {
265
+ my $v = $o_pcsx2_opt {$k };
266
+ $sed {$k } = $v ;
267
+ }
254
268
255
269
tie my @ui , ' Tie::File' , File::Spec-> catfile($out_dir , " PCSX2_ui.ini" ) or die " Fail to tie PCSX2_ui.ini $! \n " ;
256
270
tie my @vm , ' Tie::File' , File::Spec-> catfile($out_dir , " PCSX2_vm.ini" ) or die " Fail to tie PCSX2_vm.ini $! \n " ;
0 commit comments