mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Implement -c #none (#1301)
Also adds a test case for round-tripping `-r` with `-c #none`.
This commit is contained in:
@@ -39,8 +39,15 @@ for f in *.bin; do
|
||||
done
|
||||
done
|
||||
|
||||
# Test round-tripping '-r' with '-c #none'
|
||||
reverse_cmd="$RGBGFX -c#none,#fff,#000 -o none_round_trip.2bpp -r 1 out.png"
|
||||
reconvert_cmd="$RGBGFX -c#none,#fff,#000 -o result.2bpp out.png"
|
||||
compare_cmd="cmp none_round_trip.2bpp result.2bpp"
|
||||
new_test "$reverse_cmd && $reconvert_cmd && $compare_cmd"
|
||||
test || fail $?
|
||||
|
||||
# Remove temporaries (also ignored by Git) created by the above tests
|
||||
rm -f out*.png result.png
|
||||
rm -f out*.png result.png result.2bpp
|
||||
|
||||
for f in *.png; do
|
||||
flags="$([[ -e "${f%.png}.flags" ]] && echo "@${f%.png}.flags")"
|
||||
|
||||
Reference in New Issue
Block a user