Skip to content

Commit

Permalink
Fix binary test
Browse files Browse the repository at this point in the history
  • Loading branch information
WGUNDERWOOD committed Jan 13, 2025
1 parent b3cf2ad commit 53e608b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extra/binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ echo "Testing binary"
DIR="$(mktemp -d)"
cp -r ../tests/* "$DIR"
cargo build --release
BIN=$(realpath "../target/release/tex-fmt")

# run tex-fmt
for TESTDIR in "$DIR"/*; do
../target/release/tex-fmt -q "$TESTDIR/source"/*
(cd "$TESTDIR" && "$BIN" -q "$TESTDIR/source"/*)
done

# check tex-fmt agrees with target files
Expand Down

0 comments on commit 53e608b

Please sign in to comment.