bat/tests/syntax-tests/regression_test.sh

16 lines
397 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2020-08-03 11:34:21 +00:00
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"