-
Notifications
You must be signed in to change notification settings - Fork 0
/
verify.sh
executable file
·27 lines (20 loc) · 1012 Bytes
/
verify.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# this script is invoked as part of CI to verify all packages
scriptDir=$(dirname "$0")
# flag whether this script is currently executed as part of a CI
isCi=$CI
# create .gobra folder if it does not exist yet:
mkdir -p $scriptDir/.gobra
gobraJar="/gobra/gobra.jar"
additionalGobraArgs="-I $scriptDir/verification -I $scriptDir/.modules-precedence -I $scriptDir/.modules -I $scriptDir --module github.com/ModularVerification/casestudies/wireguard --gobraDirectory $scriptDir/.gobra --parallelizeBranches"
packages="common messageCommon messageInitiator messageResponder labelLemma labelLemmaCommon labelLemmaInitiator labelLemmaResponder initiator responder"
if [ $isCi ]; then
echo -e "\033[0Ksection_start:`date +%s`:verify[collapsed=true]\r\033[0KVerifying packages"
fi
java -Xss128m -jar $gobraJar --recursive --includePackages $packages $additionalGobraArgs
exitCode=$?
if [ $isCi ]; then
echo -e "\033[0Ksection_end:`date +%s`:verify\r\033[0K"
fi
# set exit code:
exit $exitCode