-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff891aa
commit 2e04489
Showing
7 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
cd "$(dirname "$0")/verus/source" | ||
|
||
if [ ! -f ./target-verus/release/verus ]; then | ||
source ../tools/activate | ||
./tools/get-z3.sh | ||
vargo build --release | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
OUT="$(pwd)/${2%.*}" | ||
|
||
mkdir -p "$(dirname "$OUT")" | ||
|
||
cd "$(dirname "$0")/verus/source" | ||
./target-verus/release/verus --log-dir "$OUT" --log smt --rlimit "$3" $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
OP=($2) | ||
OUT="$(pwd)/$(echo "${OP[0]%.*}" | sed 's/ /_/g')/${OP[1]}" | ||
mkdir -p "$(dirname "$OUT")" | ||
|
||
cd "$(dirname "$0")/verus/source" | ||
export VERUS_EXTRA_ARGS="--log-dir $OUT --log smt --rlimit $3" | ||
export VARGO_IN_NEXTEST=true | ||
TEST=($1) | ||
FILE=${TEST[0]#$(pwd)/rust_verify_test/tests/} | ||
vargo test --package rust_verify_test --test ${FILE%.*} -- ${TEST[1]} --exact &> /dev/null || exit 1 | ||
if [ -f "$OUT/root.smt2" ]; then | ||
mv "$OUT/root.smt2" "$OUT.smt2" | ||
rmdir "$OUT" || true | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
grep -oEr "#\[test\] (\w+)" "$(realpath "$(dirname "$0")")/verus/source/rust_verify_test/tests" | sed -E "s|^(.*):#\[test\] ([a-zA-Z_0-9-]+)|\1 \2|g" |