From 042049bf65bd55b3b69fd2d397178553faacc693 Mon Sep 17 00:00:00 2001 From: Jon C Date: Sun, 24 Mar 2024 18:52:31 +0100 Subject: [PATCH] program-test: Update test script for CI --- program-test/test.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/program-test/test.sh b/program-test/test.sh index 57ddf2e..1e97418 100755 --- a/program-test/test.sh +++ b/program-test/test.sh @@ -1,9 +1,10 @@ #!/usr/bin/env bash ZIG="$1" +ROOT_DIR="$(cd "$(dirname "$0")"/..; pwd)" if [[ -z "$ZIG" ]]; then - ZIG="../../zig-x86_64-linux-gnu-baseline/zig" + ZIG="$ROOT_DIR/../zig-x86_64-linux-gnu-baseline/zig" fi set -e $ZIG build --summary all -SBF_OUT_DIR=../zig-out/lib cargo test +SBF_OUT_DIR="$ROOT_DIR/zig-out/lib" cargo test --manifest-path "$ROOT_DIR/program-test/Cargo.toml"