mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-08 10:59:36 +00:00
Rewrite RGBFIX
- Make it work inside pipelines - Add RGBFIX tests to the suite - Be more flexible in accepted MBC names - Add warnings for dangerous or nonsensical input params - Improve man page
This commit is contained in:
@@ -0,0 +1 @@
|
||||
/padding*_*
|
||||
@@ -0,0 +1,16 @@
|
||||
# RGBFIX tests
|
||||
|
||||
These tests check that RGBFIX behaves properly.
|
||||
|
||||
## Structure of a test
|
||||
|
||||
- `test.bin`: The file passed as input to RGBFIX.
|
||||
- `test.flags`: The command-line flags passed to RGBFIX's invocation.
|
||||
Actually, only the first line is considered; the rest of the file may contain comments about the test.
|
||||
- `test.gb`: The expected output.
|
||||
May not exist, generally when the test expects an error, in which case the comparison is skipped.
|
||||
- `test.err`: The expected error output.
|
||||
|
||||
## Special tests
|
||||
|
||||
- `noexist.err` is the expected error output when RGBFIX is given a non-existent input file.
|
||||
@@ -0,0 +1,3 @@
|
||||
‡Ýà!H0‡;<ýNË—ñãí=ÌÊÏç^{KC}b“Q¤&�3ð ñ/]¿—¹”d�ÙZ=ÃÀ¢bÄaËi:öeSŸ>ñ›U@¼Ay<aeš‰¹$vfÅåˆâ”šý¬gŒ VC†ò~>•‘¨þ©† ³s_CÓ›Úç&nWFoKÚšíX`'ñêÁ§ë·blƒ{‡›Œ¿
|
||||
‹¯çÎ8îù†<$:VÍ"ã³™Ú�h™ÑD©¤Ð¶ñQcµïØÐ㸺Zû§T†ž©ø½¨ºVÛ¼ÝtÅ’ªÏ4ªBèÐdT“« ÄI�‡
|
||||
Ô(/×»ç¿{hÝ:ƒ�QmÓ$*|
|
||||
@@ -0,0 +1,3 @@
|
||||
warning: Ignoring 'm' in fix spec
|
||||
warning: Ignoring 'a' in fix spec
|
||||
warning: Ignoring 'o' in fix spec
|
||||
@@ -0,0 +1 @@
|
||||
-f lmao
|
||||
@@ -0,0 +1,2 @@
|
||||
╧ы+2l}~Ч╨я╕├Ж}╧Я1xЙаШЩ&)Y├q*▀ОТ═и▓┌г^ H─p@v6}Юг[┬╙&оЧ┘hё▒лBn~пT┘0Ьнuf┬\╗8╫≥÷жуЗ■ВЖц▒ЬW╫╬Ф╥ 5^Bq<░K╫"S%╤ВU!▓╦r,7┌Нg┘4х╗┴▌╔╖╜А░ЗhL╟жь²У)√÷┘У6U@Ёв█`щ▒TзT├М╕·Dи╕▓8zс5╡·~AбИ╠╫э°Щ|
|
||||
╕>Т]Е/╧K╠▄Ыd~ис"gF*AU╩"W▌7]}≈ы/Ц}<▀─s[lx■э■}п╚[МлО8Ё█≥╛А═
|
||||
@@ -0,0 +1 @@
|
||||
-C
|
||||
@@ -0,0 +1,2 @@
|
||||
╧ы+2l}~Ч╨я╕├Ж}╧Я1xЙаШЩ&)Y├q*▀ОТ═и▓┌г^ H─p@v6}Юг[┬╙&оЧ┘hё▒лBn~пT┘0Ьнuf┬\╗8╫≥÷жуЗ■ВЖц▒ЬW╫╬Ф╥ 5^Bq<░K╫"S%╤ВU!▓╦r,7┌Нg┘4х╗┴▌╔╖╜А░ЗhL╟жь²У)√÷┘У6U@Ёв█`щ▒TзT├М╕·Dи╕▓8zс5╡·~AбИ╠╫э°Щ|
|
||||
╕>Т]Е/╧K╠▄Ыd~ис"gF*AU╩"W▌7]}≈ы/Ц}<▀─s[lx■э■}п╚[МлО8Ё█≥╛А═
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
-c
|
||||
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
FATAL: "<filename>" too short, expected at least 336 ($150) bytes, got only 0
|
||||
Fixing "<filename>" failed with 1 error
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
warning: 'l' overriding 'L' in fix spec
|
||||
@@ -0,0 +1 @@
|
||||
-f Ll
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
warning: Truncating game ID "FOUR!" to 4 chars
|
||||
@@ -0,0 +1 @@
|
||||
-i 'FOUR!'
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
-i RGBD
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
-fg
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
-fg
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
-f G
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
-f g
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
-Cf h
|
||||
Checks that the header checksum properly accounts for header modifications
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
-f H
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
-f h
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
-j
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
-f L
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
-f l
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
-m 177
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
warning: MBC "ROM" has no RAM, but RAM size was set to 2
|
||||
@@ -0,0 +1 @@
|
||||
-m ROM -r 2
|
||||
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
€ÁÓi& š˙ĹyŕĺSĐěäŇaJ¨ň‘'ZDÉyşč§1nź
|
||||
¬íŮ9µQńHĽpçąyF›ź”»ŃŐß�ĐÖ8^ŞŠ]Ŕbł˘ F‰§mĹ“š
|
||||
ױьM–‡FíîWóŐwţk÷°± O`ŘÚíčUě0ńär©íşĆΙܥâ±7"®”"fęŕ�ďfw– Xë�:Đ޸ň˝XpéVËÄŞ\-¶`xť˛ř*NđŐy†a4ÄJĹç´ÄëˇăÜŠĽp—„ľ.7öc+ÝQ�řŐŽ·B÷He�zĽ–§1ĘO<n_&KHhŁ´‹v‘Žűx榢Y˘—ČAŮÇćĚ;Cęożlý :ü®Ą®żĚ’ýÜ©!–fřěľ�PĄ`@¸:‡z‰v‰˝ädéŁZÓ"±a*m*.:?¤ŁďżĎYË›c3”Č >#`çí\_Úw�™Ď
|
||||
@@ -0,0 +1 @@
|
||||
warning: Truncating new licensee "HOMEBREW" to 2 chars
|
||||
@@ -0,0 +1 @@
|
||||
-k HOMEBREW
|
||||
@@ -0,0 +1,3 @@
|
||||
€ÁÓi& šÿÅyàåSÐìäÒaJ¨ò‘'ZDÉyºè§1nŸ
|
||||
¬íÙ9µQñH¼pç¹yF›Ÿ”»ÑÕߘÐÖ8^ªŠ]Àb³¢ F‰§mÅ“š
|
||||
ױьM–‡FíîWóÕwþk÷°± O`ØÚíèUì0ñär©íºÆÎ™Ü¥â±7"®”"fêàˆïfw– Xë�:ÐÞ¸ò½XpéVËĪ\-¶`x�²ø*NðÕy†a4ÄJÅç´Äë¡ãÜŠ¼p—„¾.7öc+ÝQ�øÕŽ·B÷He�z¼–§1ÊO<n_&KHh£´‹v‘Žûx榢Y¢—ÈAÙÇæÌ;Cêo¿lý :ü®¥®¿Ì’ýÜ©!–føì¾�P¥`@¸:‡z‰v‰½ädé£ZÓ"±a*m*.:?¤£ï¿ÏYHOc3”È >#`çí\_Úw�™Ï
|
||||
@@ -0,0 +1,3 @@
|
||||
€ÁÓi& š˙ĹyŕĺSĐěäŇaJ¨ň‘'ZDÉyşč§1nź
|
||||
¬íŮ9µQńHĽpçąyF›ź”»ŃŐß�ĐÖ8^ŞŠ]Ŕbł˘ F‰§mĹ“š
|
||||
ױьM–‡FíîWóŐwţk÷°± O`ŘÚíčUě0ńär©íşĆΙܥâ±7"®”"fęŕ�ďfw– Xë�:Đ޸ň˝XpéVËÄŞ\-¶`xť˛ř*NđŐy†a4ÄJĹç´ÄëˇăÜŠĽp—„ľ.7öc+ÝQ�řŐŽ·B÷He�zĽ–§1ĘO<n_&KHhŁ´‹v‘Žűx榢Y˘—ČAŮÇćĚ;Cęożlý :ü®Ą®żĚ’ýÜ©!–fřěľ�PĄ`@¸:‡z‰v‰˝ädéŁZÓ"±a*m*.:?¤ŁďżĎYË›c3”Č >#`çí\_Úw�™Ď
|
||||
@@ -0,0 +1 @@
|
||||
-k HB
|
||||
@@ -0,0 +1,3 @@
|
||||
€ÁÓi& š˙ĹyŕĺSĐěäŇaJ¨ň‘'ZDÉyşč§1nź
|
||||
¬íŮ9µQńHĽpçąyF›ź”»ŃŐß�ĐÖ8^ŞŠ]Ŕbł˘ F‰§mĹ“š
|
||||
ױьM–‡FíîWóŐwţk÷°± O`ŘÚíčUě0ńär©íşĆΙܥâ±7"®”"fęŕ�ďfw– Xë�:Đ޸ň˝XpéVËÄŞ\-¶`xť˛ř*NđŐy†a4ÄJĹç´ÄëˇăÜŠĽp—„ľ.7öc+ÝQ�řŐŽ·B÷He�zĽ–§1ĘO<n_&KHhŁ´‹v‘Žűx榢Y˘—ČAŮÇćĚ;Cęożlý :ü®Ą®żĚ’ýÜ©!–fřěľ�PĄ`@¸:‡z‰v‰˝ädéŁZÓ"±a*m*.:?¤ŁďżĎYHBc3”Č >#`çí\_Úw�™Ď
|
||||
@@ -0,0 +1,2 @@
|
||||
FATAL: Failed to open "noexist" for reading+writing: No such file or directory
|
||||
Fixing "noexist" failed with 1 error
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
-l 0x2a
|
||||
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
”EZ/:ÂÔÎ øÐ€šÜJ/ŒÝõÊ_<ð&ÑA¢Ž˜ÃXgAP
|
||||
`°1@Wh�õ||ø»e뻬e^"7(*YV�ÍTõœ‘OY!Þâ Ì”]‚ˆ’=ÎðÈy–V~xæaÛ]á;Ÿúý¡ÀzUmòüz:d@ÖªØb¸ 'vʆqËWŒÚ_ÂæºÓì2)G�v(k¨ª”g,�p*@ùÚ!¶Dõ„0kãÿ§á�eË%ÇšodÛñÎ$r‰ÚÊ<è:”æcgiŒ"aF'=f䳚ºEcVcL.03"w),æ HQi‚DŸfÝ3�s(-$?a0ó@†¦.O¡B{yÍz‰Ê«½ hØ/\šSŠ]óoúåm'2D#/grÕW3¸Î§�°&UÓÌ÷EgMhÚ-A¾6ƒ…²ÿ…4M|1âq0Oì*$²Où/n²ú•gžš2R»æQˆXú_½¬“[숔ÔpÒÚ\°)ƧTS±T”aP*'[ïx÷Ò>ß…¤Ub[Ô¦ã9sÎçI‰ÊP
|
||||
@@ -0,0 +1 @@
|
||||
-l 42
|
||||
@@ -0,0 +1,2 @@
|
||||
”EZ/:ÂÔÎ øÐ€šÜJ/ŒÝõÊ_<ð&ÑA¢Ž˜ÃXgAP
|
||||
`°1@Wh�õ||ø»e뻬e^"7(*YV�ÍTõœ‘OY!Þâ Ì”]‚ˆ’=ÎðÈy–V~xæaÛ]á;Ÿúý¡ÀzUmòüz:d@ÖªØb¸ 'vʆqËWŒÚ_ÂæºÓì2)G�v(k¨ª”g,�p*@ùÚ!¶Dõ„0kãÿ§á�eË%ÇšodÛñÎ$r‰ÚÊ<è:”æcgiŒ"aF'=f䳚ºEcVcL.03"w),æ HQi‚DŸfÝ3�s(-$?a0ó@†¦.O¡B{yÍz‰Ê«½ hØ/\šSŠ]óoúåm'2D#/grÕW3¸Î§�°&UÓÌ÷EgMhÚ-A¾*6ƒ…²ÿ…4M|1âq0Oì*$²Où/n²ú•gžš2R»æQˆXú_½¬“[숔ÔpÒÚ\°)ƧTS±T”aP*'[ïx÷Ò>ß…¤Ub[Ô¦ã9sÎçI‰ÊP
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
-p0xff
|
||||
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user