Add rudimentary unit testing via AIN file

Building 'test/test.pje' with the SDK compiler produces a file at
'test/Run/test.ain' which can be run with xsystem4 to test various
features.

Not the greatest testing method, but it works.
This commit is contained in:
Nunuhara Cabbage
2019-10-16 20:16:19 -07:00
parent 7fa8c28d9d
commit 82c3f81d52
10 changed files with 298 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
Note
----
I am not 100% sure about the legality of distributing System40.exe and
Sys42VM.dll here, so I've left them out. They can be found in the System 4 SDK,
which you'll want to have anyways to compile these tests.
Once you've copied the files, this directory should contain the following:
System40.exe
System40.ini
DLL\Sys42VM.dll
+42
View File
@@ -0,0 +1,42 @@
; ★ System4.0 初期設定ファイル ★
; このファイルの中身は書き換えないで下さい
; iniファイルバージョン
IniFileVersion = 1
; 初期ビューサイズ
ViewWidth = 800
ViewHeight = 600
; ゲーム名
GameName = "test"
; レジストリ名
RegName = "Software\nunuhara\test"
; コード名
CodeName = "test.ain"
; VM設定
MainVM = "Sys42VM"
; セーブフォルダ設定
SaveFolder = "SaveData"
; DLLフォルダ設定
DLL = "DLL"
; スキップ名設定
MsgSkipName = "既読スキップ"
; 音楽設定
UseCD = false
; ジョイパッド設定
UseJoypad = true
; ボリュームバランサー設定
VolumeValancer[0] = "BGM"
VolumeValancer[1] = "効果音"
; end of file
+9
View File
@@ -0,0 +1,9 @@
CopyToRun = {
"System40.exe",
"System40.ini"
}
CopyToDLL = {
"DLL\Sys42VM.dll",
}