Add comparison script

This commit is contained in:
sharkdp
2020-08-03 13:34:21 +02:00
committed by David Peter
parent a70efae79b
commit 02a89d8ee8
4 changed files with 82 additions and 164 deletions

15
tests/syntax-tests/regression_test.sh vendored Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -eou pipefail
script_directory="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
output_directory=$(mktemp -d --suffix=.bat-syntax-regression-test)
"$script_directory"/create_highlighted_versions.py --output="$output_directory"
echo
"$script_directory"/compare_highlighted_versions.py \
"$script_directory/highlighted" \
"$output_directory"