Helper script for regression testing on sample files

html_output
Wilfred Hughes 2022-02-13 17:06:11 +07:00
parent 3c1c5649f4
commit 3986bae12e
1 changed files with 16 additions and 0 deletions

@ -0,0 +1,16 @@
#!/bin/bash
set -e
echo "==> Building difftastic"
cargo build --release
echo "==> Check outputs"
for before_f in sample_files/*before.*; do
after_f=${before_f/before/after}
echo "$before_f $after_f"
difft_out=$(./target/release/difft --color=always "$before_f" "$after_f" | md5sum)
echo "$difft_out"
echo
done