Add RGBGFX tests

This commit is contained in:
ISSOtm
2022-04-25 09:39:30 +02:00
committed by Eldred Habert
parent a77b0b396a
commit cbf6fadcdb
35 changed files with 51 additions and 11 deletions
+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Ç.Î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ý×(Ë·µß•x_;½yc& o¸¼$éw¬ô•TST+™îÇ‘X¸þgðàt‘¨Ò|c ýUJ=»âu<lP¨±>ІÈÍÁ¯[g$Ca„¯IÞ¿îÃsI5;ÉD2¤jD[ ¡S+ôÁ¬c¥¤ý8[jD™Àެ–жÉD,¤é°rãØIÙ½°Nö
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”ßé Ïø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
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ЧсУиёЫ{Ы3BaTЌйјic:ёДKбіЙФ%Я"Жо.WfІе/ѓSЕћAё+кЈђnUнчtr1неDЌq.щфЮ(oё`VdКЬЬИЖpuBЛ&д;x<,Т`\wrПhЖ§.ЦЈдC%Vхі_]Р
+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