Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script to run Boogie with the args Dafny uses #4492

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Use a shell script instead
That way it can be tested locally.
  • Loading branch information
atomb committed Aug 31, 2023
commit 9881e3804611e692eb22edd4d24bb14664736c05
3 changes: 1 addition & 2 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ jobs:
echo "boogieVersion=`xmllint --xpath "//PackageReference[@Include='Boogie.ExecutionEngine']/@Version" dafny/Source/DafnyCore/DafnyCore.csproj | grep -Po 'Version="\K.*?(?=")'`" >> $GITHUB_ENV
- name: Compare Boogie versions
working-directory: dafny
run: |
(dotnet tool run boogie -version | grep ${{env.BoogieVersion}}) || (echo "Mismatched Boogie versions." ; exit 1)
run: ./Scripts/compare_boogie_versions.sh
- name: Attempt custom Boogie patch
working-directory: dafny
run: git apply customBoogie.patch
Expand Down
11 changes: 11 additions & 0 deletions Scripts/compare_boogie_versions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
LIB_VERSION=$(grep Boogie.ExecutionEngine Source/DafnyCore/DafnyCore.csproj | cut -d "\"" -f 4)
TOOL_VERSION=$(./Scripts/dafny_boogie.sh -version | cut -d ' ' -f 5 | cut -d . -f 1-3)
if [ "$LIB_VERSION" != "$TOOL_VERSION" ] ; then
echo "Mismatched Boogie versions."
echo "Library version is ${LIB_VERSION}"
echo "dotnet tool version is ${TOOL_VERSION}"
exit 1
else
echo "Boogie versions match (${LIB_VERSION})"
fi
Loading