-
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
33ac3e1
commit f7ff911
Showing
12 changed files
with
33 additions
and
18 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
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,8 +1,24 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
# A small wrapper around TLC | ||
TLC_PATH=$1 | ||
|
||
TLC_COMMAND="java -Dtlc2.TLC.stopAfter=180 -Dtlc2.TLC.ide=Github -Dutil.ExecutionStatisticsCollector.id=abcdef60f238424fa70d124d0c77ffff -cp tla2tools.jar tlc2.TLC -workers auto -lncheck final -tool -deadlock" | ||
find . -mindepth 1 -maxdepth 1 -type d '!' -exec test -e "{}/.ciignore" ';' -print | grep -v ".git" | xargs -n 1 "$TLC_COMMAND" | ||
# Add .ciignore file in a directory to ignore it. | ||
|
||
tlc="java -Dtlc2.TLC.stopAfter=180 \ | ||
-Dtlc2.TLC.ide=Github \ | ||
-Dutil.ExecutionStatisticsCollector.id=abcdef60f238424fa70d124d0c77ffff \ | ||
-XX:+UseParallelGC \ | ||
-cp "tla2tools.jar:CommunityModules-deps.jar" tlc2.TLC \ | ||
-workers auto \ | ||
-lncheck final \ | ||
-tool -modelcheck" | ||
|
||
find . -mindepth 1 -maxdepth 1 -type d '!' -exec test -e "{}/.ciignore" ';' -print | grep -v ".git" | while read -r dir; do | ||
echo "Running $dir" | ||
cd $dir | ||
cfg_file=$(find "." -maxdepth 1 -type f -name "*.cfg" -print -quit) | ||
tla_file=${cfg_file/.cfg/.tla} | ||
($tlc -config "$cfg_file" "$tla_file") | ||
cd ../ | ||
echo "Finished checking $dir" | ||
done | ||
echo "Completed successfully." |
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
Empty file.
Empty file.
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 @@ | ||
|
Empty file.
Empty file.
Empty file.
Empty file.