Blame | Last modification | View Log | Download
# .msglst is used to compare captured stderr output, not producing real listing fileoptions=('-Wno-behost') # don't report BE host platform (these kind of tests should pass on any platform)options+=('--nologo') # no logo as other testsoptions+=('--fullpath') # fullpath as other testsoptions+=('--lstlab=sort') # enforce all symbol dumps to be sorted in any caseoptions+=('--msg=war') # capture terminal stderr output into .lst fileoptions+=('--color=auto') # check the color AUTO mechanics in this testif [[ ! -z ${NO_COLOR+z} ]]; thenecho "NO_COLOR was set in the test environment, invalidating this test" 2> "${dst_base}.lst"last_result=1elif [[ -z "${MSG_LIST_FILE}" ]]; thenlast_result=1else# dumb terminal -> auto should produce NO colorsTERM="dumb" $MEMCHECK "$EXE" "${options[@]}" "$file_asm" 2> "${dst_base}.lst"# color terminal -> auto should produce COLORSTERM="color" $MEMCHECK "$EXE" "${options[@]}" "$file_asm" 2>> "${dst_base}.lst"# test "auto" with NO_COLOR env variable defined (should produce NO color)# color terminal + NO_COLOR defined -> auto should produce NO colorTERM="color" NO_COLOR=0 $MEMCHECK "$EXE" "${options[@]}" "$file_asm" 2>> "${dst_base}.lst"# dumb terminal + NO_COLOR defined -> auto should still produce NO colorTERM="dumb" NO_COLOR=0 $MEMCHECK "$EXE" "${options[@]}" "$file_asm" 2>> "${dst_base}.lst"# test also override of NO_COLOR envvar by using explicit --color=on# color terminal + NO_COLOR defined -> "on" should produce COLORSTERM="color" NO_COLOR=0 $MEMCHECK "$EXE" "${options[@]}" --color=on "$file_asm" 2>> "${dst_base}.lst"# dumb terminal + NO_COLOR defined -> "on" should produce COLORSTERM="dumb" NO_COLOR=0 $MEMCHECK "$EXE" "${options[@]}" --color=on "$file_asm" 2>> "${dst_base}.lst"fi