eilara / kt-alloy-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kt-alloy-cli

Command line interface for Alloy Analyzer.

Runs all actions (run or check) in a given .als file and prints their results. Outputs are in the format of Test Anything Protocol.

Usage

alloy-run [-V] <file.als>

For example:

% alloy-run alloy-sketches/oauth2/oauth2.als
1..3
ok 1 - Run show for 6 but 1 AuthorizationServer, 1 Client
ok 2 - Run allUserAgentsAreEventuallyAuthorized for 6 but exactly 1 AuthorizationServer, exactly 1 Client, 2 UserAgent
not ok 3 - Check userAgentsAreProperlyAuthorized for 6 but exactly 1 AuthorizationServer, exactly 1 Client, 2 UserAgent

If -V option is given, shows graphical representations of found counterexamples.

Installation

./gradelw distTar

Then extract ./build/distributions/kt-alloy-cli.tar somewhere and place a file named alloy-run under PATH with its contents:

#!/bin/bash
exec path/to/bin/kt-alloy-cli "$@"

About


Languages

Language:Kotlin 100.0%