Add RGBGFX tests

This commit is contained in:
ISSOtm authored and Eldred Habert committed 2022-07-02 17:04:17 +02:00
1 parent a77b0b396a
commit cbf6fadcdb
35 files changed
+51 -11

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
add_executable(randtilegen gfx/randtilegen.c)
if(NOT MSVC)
target_compile_options(randtilegen PRIVATE -Wno-vla)
endif()
add_executable(rgbgfx_test gfx/rgbgfx_test.cpp)
install(TARGETS randtilegen rgbgfx_test DESTINATION ${rgbds_SOURCE_DIR}/test/gfx)
foreach(TARGET randtilegen rgbgfx_test)
if(LIBPNG_FOUND) # pkg-config
target_include_directories(${TARGET} PRIVATE ${LIBPNG_INCLUDE_DIRS})
target_link_directories(${TARGET} PRIVATE ${LIBPNG_LIBRARY_DIRS})
target_link_libraries(${TARGET} PRIVATE ${LIBPNG_LIBRARIES})
else()
target_compile_definitions(${TARGET} PRIVATE ${PNG_DEFINITIONS})
target_include_directories(${TARGET} PRIVATE ${PNG_INCLUDE_DIRS})
target_link_libraries(${TARGET} PRIVATE ${PNG_LIBRARIES})
endif()
endforeach()
Binary file not shown.
Binary file not shown.
+2
View File
@@ -0,0 +1,2 @@
2ä.ü¤CôŃŢpA22ĽVDňĐu2IEUŞä„_Ă/!’ĂpÄÂ�»�!Ňo-/^€áŠuNV0ř�g¬ÂT ú‡?Ó%ëÄIA#1›|Ő$čtt—îĎ„$ ”Wß^ `ÄŹŮ�;WĘßJP!÷<pm‹‹»ŽŘ;HZwËűMvUx–ß+ŽŮóće±©„'[$Ś™Ř‹gú˙HcL“äĺ\u·E,ÔĄ_ł‰Á!™äů;lwě?�Ç­űĹ?Ü�śk–TĐŽ{Züę˙çARńŰW˱řËř˘h*űbŰŔC$ ÄŢ[2x(űE`�8,Ď=Ě,ᾡ¦ić;¦€ĹŇ7Ç!…ó0¬ĆmđŇäfy+Ńßwk®PYS„˙&Ŕ·Wbë­Aóx¦ęOĺČF\yč«úłr>fŢq.ŐŞ“#Ô]˛i˝µDÇ.mŁÎvĚ<Ô˘»\5cůJWĹN�€=nqţň�gY9úAa­™aÇď8?šž“‹~uc§[¨�Ă
łó(®“[ qÜć¤B>QMśďzµ _. “pÎr¸–çyö—’wŠ‚ůý~ňsś;­ÂMߏŤ]/ähXŚ+6fqťŽÓ0GoűţBE˘đµR„DźßbČŰAm5İůÚńÎćĆgŇßläŹŰ:Híű
Binary file not shown.
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
?x‰œ)&<òavý×(Ë·zصߕx_;½yc& o¸¼$�éw¬ô•x·TST+™îÇ‘X¸þgðàt…�‘¨Ò|c ýUJ=»âu<lP¨±>ІÈÍÁ¯[g$Ca„¯IÞ¿îÃsI5;�ÉD2�¤jD[ ¡S+ôÁ¬c¥¤ý8[j�?§�D™Àެ–жÉD,¤é°rãØIÙ½°Nö␍;¹jzAéç¹#a³\vD�pŠ="Î(Xò�fE‡Âè~(Âá™$‰(K—;Sc´AÜ�^[��é$¿6”Ñ^u
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3
View File
@@ -0,0 +1,3 @@
އ
î.[)©(Ýl%€!æ Ñ»å­\Ƕ›W|'R2ìÃÞx”ßé8Ô ÏøtUfZ Œ]š~àÀÅ®»oZ.žv¾ÃµXc,¢nÏŒÂÃPl8Ã#ïZ<~û?–y%¼SÚ*ÿ,@e&²›ˆXcÄÉŸÒÕå'Äø£�$zOgn™Ã¼¶…7Mb€YÙäy�¤q #c¼SøD©b¨…Ë#ý/×òJnOK¤²AÆ�0bœ•/)Wm¶R&‡�AwW%-Õ Ñ>ŠÞ ‰þ=Í 0êa­Béúà¤ùÊy¥1?¹] Àvúb·ÁÝ ?A#f æ´d©i²hf¹&–[ \Ï«³ÈÀ+<šojë™?ï ´Ãdšÿ'Óë&fêïæG:pzÎe—ܶÿw;AByÓ[¯é¸L·wÈÝ®FrìÊ-†çÅËrö¤o&ºs̼`fì¢dp€Fån2-†26E¯øªÄ•®èqxÁEzºÚÆ@ÓSÊN­5;FÒ a ]#ŽitÚR»È !Öµ§¬+6*öÁ3¹Kÿ„¯°F¼Iâ/[ )Ê]åag¸”Ä]J¸Â«×ÂCå5?´�Þó<£8e.ƒäÌí.GM
¾édK$¨�R␍Ä{+!þžý‰è7j-F 
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
ЅЈКСE6ЬЭ �Љ��*OЦИqяе)ЪіDтД№mыЦeWЧсУиёЫ{Ы3;ПBa��TЌй�јic:ёДKбіЙФ%Я"Жо�.WfІе/ѓSЕћAё+к�Ј��ђnUнч�tr1неD��Ќq.щфЮ(oё`VdК�ЬЬИЖp�uBЛ&д;x<,Т�`\w�rПhЖ§.�ЦЈдC%Vхі_]Р␍�КNJїk@�ъЊ16�Ё�Ћќ�7�T4ІћРоНz=�WZ�v� �жКz�СTяЄУB�ЇГЖВ��Щ4ит3ЙяО
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
[[ -e ./rgbgfx_test ]] || make -C ../.. test/gfx/rgbgfx_test
[[ -e ./randtilegen ]] || make -C ../.. test/gfx/randtilegen
rc=0
for f in *.bin; do
./rgbgfx_test "$f" || rc=1
done
exit $rc
+1 -1
View File
@@ -14,7 +14,7 @@ fi
# Tests included with the repository
for dir in asm link fix; do
for dir in asm link fix gfx; do
pushd $dir
./test.sh
popd