dmd/compiler/test/runnable/extra-files/coverage-postscript.sh
2022-07-09 18:53:07 +02:00

12 lines
437 B
Bash
Executable file

#!/usr/bin/env bash
source tools/common_funcs.sh
# trim off the last line which contains the path of the file which differs between windows and non-windows
out_file=${RESULTS_TEST_DIR}/${TEST_DIR}-${TEST_NAME}.lst
LINE_COUNT_MINUS_1=$(( `wc -l < ${out_file}` - 1 ))
head -n${LINE_COUNT_MINUS_1} ${out_file} > ${out_file}2
diff -up --strip-trailing-cr ${EXTRA_FILES}/${TEST_DIR}-${TEST_NAME}.lst ${out_file}2
rm_retry ${out_file}{,2}