t7800: Use "test_cmp_text" in all places where "echo" is used

While "echo", being a Bash built-in, produces Unix line-endings, "git" and
"cat" produce DOS line-endings on MSYS, so ignore line-ending differences.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>