-
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.
Add quotes everywhere to handle names with spaces
- Loading branch information
1 parent
aad9b1d
commit 99a2118
Showing
11 changed files
with
37 additions
and
35 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cd $(dirname $0)/../viper | ||
cd "$(dirname "$0")/../viper" | ||
|
||
./build.sh | ||
if ! type boogie > /dev/null; then | ||
|
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
OUT=$(pwd)/${2%.*} | ||
mkdir -p $(dirname "$OUT") | ||
python $(dirname $0)/../viper/viper_client/client.py -j bulk -p 50424 -f $1 -v carbon -x="--disableCaching --boogieExe=$(which boogie) --timeout $3 --print \"$OUT.bpl\" --boogieOpt \"/proverLog:$OUT-@[email protected]\"" > /dev/null | ||
OUT="$(pwd)/${2%.*}" | ||
mkdir -p "$(dirname "$OUT")" | ||
python "$(dirname "$0")/../viper/viper_client/client.py" -j bulk -p 50424 -f "$1" -v carbon -x="--disableCaching --boogieExe \"$(which boogie)\" --timeout \"$3\" --print \"$OUT.bpl\" --boogieOpt \"/proverLog:$OUT-@[email protected]\"" > /dev/null |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
DIRNAME=$(dirname $0) | ||
DIRNAME=$(dirname "$0") | ||
DIRNAME=$(realpath "$DIRNAME/../viper/viperserver") | ||
find $DIRNAME/carbon/src/test/resources $DIRNAME/carbon/silver/src/test/resources -name "*.vpr" -type f | ||
find "$DIRNAME/carbon/src/test/resources" "$DIRNAME/carbon/silver/src/test/resources" -name "*.vpr" -type f |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cd $(dirname "$0")/dafny | ||
cd "$(dirname "$0")/dafny" | ||
|
||
if [ ! -f Binaries/Dafny ]; then | ||
make | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
OUT=$(pwd)/${2%.*} | ||
mkdir -p $(dirname "$OUT") | ||
OUT="$(pwd)/$(echo "${2%.*}" | sed 's/ /_/g')" | ||
mkdir -p "$(dirname "$OUT")" | ||
|
||
cd $(dirname "$0")/dafny | ||
Binaries/Dafny /deprecation:0 /compile:0 /timeLimit:$3 /print:$OUT.bpl /vcsCores:1 /proverLog:$OUT-@[email protected] $1 | ||
cd "$(dirname "$0")/dafny" | ||
Binaries/Dafny /deprecation:0 /compile:0 /timeLimit:$3 /print:$OUT.bpl /vcsCores:1 /proverLog:$OUT-@[email protected] "$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 |
---|---|---|
@@ -1 +1 @@ | ||
find $(realpath "$0" | xargs dirname)/dafny/Source/IntegrationTests/TestFiles/LitTests/LitTest -name "*.dfy" -type f | ||
find "$(realpath "$0" | xargs dirname)/dafny/Source/IntegrationTests/TestFiles/LitTests/LitTest" -name "*.dfy" -type f |
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 |
---|---|---|
@@ -1,27 +1,29 @@ | ||
# Can pass in a list of verifiers to run, or defaults to all | ||
# Can set TIMEOUT to change the timeout for each verifier | ||
|
||
VERIFIERS=$@ | ||
VERIFIERS="$@" | ||
if [ -z "$VERIFIERS" ]; then | ||
VERIFIERS="silicon carbon dafny" | ||
fi | ||
|
||
git submodule update --init --recursive &> /dev/null | ||
|
||
DIRNAME=$(realpath $0 | xargs dirname) | ||
VERIFIERS="$DIRNAME/$(echo $VERIFIERS | sed "s| | $DIRNAME/|g")" | ||
for verifier in $VERIFIERS; do | ||
DIRNAME=$(realpath "$0" | xargs dirname) | ||
VERIFIERS="$DIRNAME/$(echo "$VERIFIERS" | sed "s| |\n$DIRNAME/|g")" | ||
while read -r verifier; do | ||
echo "[Running $verifier]" | ||
cd $verifier | ||
cd "$verifier" | ||
./build.sh | ||
VERIFIER=$(basename $verifier) | ||
for file in `./tests.sh`; do | ||
no_prefix=$(echo $file | perl -pe "s|.*?/$VERIFIER/||") | ||
VERIFIER=$(basename "$verifier") | ||
# Split on '\n' with `while` instead of potentially ' ' in filename with `for` | ||
while read -r file; do | ||
# This requires that | ||
no_prefix=$(echo "$file" | perl -pe "s|.*?/$VERIFIER/||") | ||
if [ "$file" == "$no_prefix" ]; then | ||
echo "Could not strip prefix (.*/$VERIFIER/): $no_prefix" | ||
exit 1 | ||
fi | ||
echo "[.smt2] $no_prefix" | ||
./run.sh $file ../smt2/$VERIFIER/$no_prefix ${TIMEOUT:-10} | ||
done | ||
done | ||
./run.sh "$file" "../smt2/$VERIFIER/$no_prefix" "${TIMEOUT:-10}" | ||
done <<< "$(./tests.sh)" | ||
done <<< "$VERIFIERS" |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
cd $(dirname $0)/../viper | ||
cd "$(dirname "$0")/../viper" | ||
|
||
./build.sh |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
OUT=$(pwd)/${2%.*} | ||
mkdir -p $(dirname "$OUT") | ||
python $(dirname $0)/../viper/viper_client/client.py -j bulk -p 50424 -f $1 -v silicon -x="--disableCaching --timeout $3 --numberOfParallelVerifiers 1 --proverLogFile \"$OUT.smt2\"" > /dev/null | ||
OUT="$(pwd)/${2%.*}" | ||
mkdir -p "$(dirname "$OUT")" | ||
python "$(dirname "$0")/../viper/viper_client/client.py" -j bulk -p 50424 -f "$1" -v silicon -x="--disableCaching --timeout \"$3\" --numberOfParallelVerifiers 1 --proverLogFile \"$OUT.smt2\"" > /dev/null |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
DIRNAME=$(dirname $0) | ||
DIRNAME=$(dirname "$0") | ||
DIRNAME=$(realpath "$DIRNAME/../viper/viperserver") | ||
find $DIRNAME/silicon/src/test/resources $DIRNAME/silicon/silver/src/test/resources -name "*.vpr" -type f | ||
find "$DIRNAME/silicon/src/test/resources" "$DIRNAME/silicon/silver/src/test/resources" -name "*.vpr" -type f |
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