CTestTestMemcheck: Fix newline matching in expected output

Replace CRLF with LF when read from source CMakeLists.txt file.
CTestTestMemcheck: Refactor output expectation regex generation

Refactor generation of PASS_REGULAR_EXPRESSION for tests

 CTestTestMemcheckDummyPurify
 CTestTestMemcheckDummyValgrind
 CTestTestMemcheckDummyValgrindPrePost
 CTestTestMemcheckDummyValgrindIgnoreMemcheck

Avoid duplicating the normal ctest output matching expression.  Use
literal newlines instead of "\n" to improve readability.  Integrate
matching of guard-malloc lines at the end of the output with expressions
matching tool output like lines for BullseyeCoverage.
CTestTestMemcheck: Tolerate trailing "==..." lines from valgrind
Merge topic 'cleanup-CTestTestMemcheck' into next

192b27e CTestTestMemcheck: Fix newline matching in expected output
Merge topic 'cleanup-CTestTestMemcheck' into next

8ea62fd CTestTestMemcheck: Tolerate trailing "==..." lines from valgrind
f169f48 CTestTestMemcheck: Refactor output expectation regex generation