Skip to content

Commit

Permalink
🔧 Update test bash to run from root dir
Browse files Browse the repository at this point in the history
  • Loading branch information
taskooh committed Apr 26, 2024
1 parent 8e00f05 commit ceae4c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion mpc-algebra/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ env_logger = "0.8"
sha2 = "0.9"

[features]
default = ["ark-r1cs-std"]
default = ["ark-r1cs-std"]

[[example]]
name = "algebra"
path = "examples/algebra.rs"
7 changes: 5 additions & 2 deletions mpc-algebra/test.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ set -ex
trap "exit" INT TERM
trap "kill 0" EXIT

cargo build --example algebra --release
BIN="./target/release/examples/algebra"
# Move to the project directory
cd "$(dirname "$0")"

# Execute cargo build command
cargo build --example algebra --release
BIN="$(pwd)/target/release/examples/algebra"

PROCS=()

Expand Down

0 comments on commit ceae4c3

Please sign in to comment.