From b0965bebe6687fde75f4adeb0057c0934d8a6440 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Tue, 18 Apr 2023 23:53:06 -0400 Subject: [PATCH] Remove old script for invoking the tests. --- scripts/compare_parse_all.bash | 36 ---------------------------------- 1 file changed, 36 deletions(-) delete mode 100755 scripts/compare_parse_all.bash diff --git a/scripts/compare_parse_all.bash b/scripts/compare_parse_all.bash deleted file mode 100755 index fc8a841..0000000 --- a/scripts/compare_parse_all.bash +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash -# -# Check that the official org-mode parser and this implementation of an org-mode parser agree on how the sample org-mode documents should be parsed. -set -euo pipefail -IFS=$'\n\t' -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -cd "$DIR" - -: ${org_dir:="$DIR/../org_mode_samples"} -: ${compare_bin:="$DIR/../target/debug/org_compare"} - -test_files=$(find $org_dir -type f -name '*.org' | sort) - -cargo build --bin org_compare - -pass=0 -fail=0 - - -while read test_file; do - print_path=$(realpath --relative-to="$org_dir" "$test_file") - set +e - diff_results=$("$compare_bin" "$test_file") - diff_status=$? - set -e - if [ $diff_status -eq 0 ]; then - echo "GOOD $print_path" - pass=$((pass + 1)) - else - echo "BAD $print_path" - fail=$((fail + 1)) - fi -done<<<"$test_files" - -total=$((pass + fail)) -(>&2 echo "Tests passed: $pass/$total")