Skip to content

Commit

Permalink
program-test: Update test script for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Mar 24, 2024
1 parent cc9745d commit 042049b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions program-test/test.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 042049b

Please sign in to comment.