ref: 6563133426c735cb961d2e5efaf7b00e2221a8c6
parent: 762474d3ac55df88584a4e663ad3b4f73304671e
author: ISSOtm <[email protected]>
date: Mon Jul 27 14:26:05 EDT 2020
Avoid using `echo -e` in tests
--- a/test/asm/test.sh
+++ b/test/asm/test.sh
@@ -13,11 +13,11 @@
red=$(tput setaf 1)
rescolors=$(tput op)
tryDiff () {
- diff -u --strip-trailing-cr $1 $2 || (echo -e "${bold}${red}${i%.asm}${variant}.$3 mismatch!${rescolors}${resbold}"; false)
+ diff -u --strip-trailing-cr $1 $2 || (echo "${bold}${red}${i%.asm}${variant}.$3 mismatch!${rescolors}${resbold}"; false)
}
tryCmp () {
- cmp $1 $2 || (../../contrib/gbdiff.bash $1 $2; echo -e "${bold}${red}${i%.asm}${variant}.out.bin mismatch!${rescolors}${resbold}"; false)
+ cmp $1 $2 || (../../contrib/gbdiff.bash $1 $2; echo "${bold}${red}${i%.asm}${variant}.out.bin mismatch!${rescolors}${resbold}"; false)
}
for i in *.asm; do
--- a/test/link/test.sh
+++ b/test/link/test.sh
@@ -12,11 +12,11 @@
red=$(tput setaf 1)
rescolors=$(tput op)
tryDiff () {
- diff -u --strip-trailing-cr $1 $2 || (echo -e "${bold}${red}${i%.asm}.out mismatch!${rescolors}${resbold}"; false)
+ diff -u --strip-trailing-cr $1 $2 || (echo "${bold}${red}${i%.asm}.out mismatch!${rescolors}${resbold}"; false)
}
tryCmp () {
- cmp $1 $2 || (../../contrib/gbdiff.bash $1 $2; echo -e "${bold}${red}${i%.asm}.out.bin mismatch!${rescolors}${resbold}"; false)
+ cmp $1 $2 || (../../contrib/gbdiff.bash $1 $2; echo "${bold}${red}${i%.asm}.out.bin mismatch!${rescolors}${resbold}"; false)
}
RGBASM=../../rgbasm