mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-13 11:34:17 +00:00
1.3 KiB
1.3 KiB
How to run tests
The script runApalache.sh runs Apalache against one of the model files in this repository. This document describes how to use it.
-
Get Apalache, by following these instructions. TLDR (recommended: build from source):
git clone https://github.com/informalsystems/apalache.gitmake package
-
Define an environment variable
APALACHE_HOMEand set it to the directory where you cloned the repository (resp. unpacked the prebuilt release).$APALACHE_HOME/bin/apalache-mcshould point to the run script. -
Call
runApalache.sh CMD N CM DDwhere:CMDis the command. Either "check" or "typecheck". Default: "typecheck"Nis the number of steps ifCMD=check. Ignored ifCMD=typecheck. Default: 10MCis a Boolean flag that controls whether the model cehcked has a majoricty of correct processes. Default: trueDDis a Boolean flag that controls Apalache's--discard-disabledflag (See here). Ignored ifCMD=typecheck. Default: false
Example:
runApalache.sh check 2
Checks 2 steps of MC_PBT_3C_1F.tla and
runApalache.sh check 10 false
Checks 10 steps of MC_PBT_2C_2F.tla