forked from SRI-CSL/do-like-javac
-
Notifications
You must be signed in to change notification settings - Fork 4
/
run-cf-tests.sh
executable file
·30 lines (22 loc) · 1008 Bytes
/
run-cf-tests.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
28
29
30
#!/usr/bin/env bash
set -e
set -u
set -x
set -o pipefail
### This script runs the Checker Framework's tests that depend on
### dljc (i.e. this project's main script). It is intended to be used as part of a CI integration test.
### This script must be run from the top-level directory
### get plume-scripts so that we can use git-clone-related
if [ -d /tmp/"$USER"/plume-scripts ] ; then
git -C /tmp/"$USER"/plume-scripts pull -q > /dev/null 2>&1
else
mkdir -p /tmp/"$USER" && git -C /tmp/"$USER" clone --depth 1 -q https://github.com/plume-lib/plume-scripts.git
fi
### Clone the CF. If there is a branch with the same name as this branch, git-clone-related will check out that branch.
rm -rf /tmp/"$USER"/checker-framework
/tmp/"$USER"/plume-scripts/git-clone-related opprop checker-framework /tmp/"$USER"/checker-framework
export CHECKERFRAMEWORK=/tmp/"$USER"/checker-framework
export DLJC=$(pwd)/dljc
cd /tmp/"$USER"/checker-framework
### run the CF tests
./gradlew wpiManyTest wpiPlumeLibTest