mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 03:52:08 +00:00
Increase RGBASM test coverage
This commit is contained in:
@@ -26,6 +26,7 @@ rescolors="$(tput op)"
|
||||
|
||||
RGBASM=../../rgbasm
|
||||
RGBLINK=../../rgblink
|
||||
RGBFIX=../../rgbfix
|
||||
|
||||
startTest () {
|
||||
echo "${bold}${green}${test} assembling...${rescolors}${resbold}"
|
||||
@@ -71,7 +72,7 @@ tryCmpRomSize () {
|
||||
}
|
||||
|
||||
rgblinkQuiet () {
|
||||
out="$(env $RGBLINK -Weverything -B collapse "$@")" || return $?
|
||||
out="$(env "$RGBLINK" -Weverything -B collapse "$@")" || return $?
|
||||
if [[ -n "$out" ]]; then
|
||||
echo "$bold${red}Linking shouldn't produce anything on stdout!${rescolors}${resbold}"
|
||||
false
|
||||
@@ -251,6 +252,16 @@ tryDiff "$test"/out.err "$outtemp"
|
||||
tryCmp "$test"/out.gb "$gbtemp"
|
||||
evaluateTest
|
||||
|
||||
test="pipeline"
|
||||
startTest
|
||||
continueTest
|
||||
("$RGBASM" -Weverything -B collapse -o - - | \
|
||||
"$RGBLINK" -Weverything -B collapse -o - - | \
|
||||
"$RGBFIX" -Weverything -v -p 0xff -) < "$test"/a.asm > "$gbtemp"
|
||||
# This test does not trim its output with 'dd' because it needs to verify the correct output size
|
||||
tryCmp "$test"/out.gb "$gbtemp"
|
||||
evaluateTest
|
||||
|
||||
test="same-consts"
|
||||
startTest
|
||||
"$RGBASM" -o "$otemp" "$test"/a.asm
|
||||
|
||||
Reference in New Issue
Block a user