Simplify usage of regression test suite

html_output
Wilfred Hughes 2022-02-24 20:35:36 +07:00
parent 4f942c3e36
commit 0905fb74c3
3 changed files with 4 additions and 7 deletions

@ -42,8 +42,7 @@ jobs:
toolchain: 1.54.0
override: true
- name: Generate output for all sample files
run: ./sample_files/compare_all.sh | tee sample_files/compare.result
# TODO: work out why GitHub actions differ from my machine
run: ./sample_files/compare_all.sh
- name: Verify output is unchanged
run: diff sample_files/compare.result sample_files/compare.expected

@ -1,5 +1,3 @@
==> Building difftastic
==> Check outputs
sample_files/bad_combine_before.rs sample_files/bad_combine_after.rs
ffb31b7f11712d0e28a7f874bb7756c6 -

@ -4,7 +4,7 @@
# has been changed.
#
# # Generate a new compare.result.
# $ sample_files/compare_all.sh | tee sample_files/compare.result
# $ sample_files/compare_all.sh
#
# # Compare it with the previous one.
# $ difft sample_files/compare.expected sample_files/compare.result
@ -15,7 +15,7 @@
set -e
echo "==> Building difftastic"
cargo build --release -q
cargo build --release
# Set language so we expand globs in a consistent order regardless of
# locale (e.g. on GitHub actions).
@ -29,4 +29,4 @@ for before_f in sample_files/*before.*; do
difft_out=$(DFT_WIDTH=180 ./target/release/difft --color=always "$before_f" "$after_f" | md5sum)
echo "$difft_out"
echo
done
done | tee sample_files/compare.result