From 53e608b4855b8133057a1e913cca11aa53cd14e6 Mon Sep 17 00:00:00 2001 From: William G Underwood <42812654+WGUNDERWOOD@users.noreply.github.com> Date: Mon, 13 Jan 2025 12:22:15 +0000 Subject: [PATCH] Fix binary test --- extra/binary.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extra/binary.sh b/extra/binary.sh index 63cae28..c911a28 100644 --- a/extra/binary.sh +++ b/extra/binary.sh @@ -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