1
-
2
1
This is a suite of blackbox integration tests for the ` quint ` executable.
3
2
The tests in this file check that particular output is produced when
4
3
particular input is received.
@@ -778,6 +777,7 @@ error: Invariant violated
778
777
```
779
778
quint run --out-itf=out-itf-example.itf.json --max-steps=5 --seed=123 \
780
779
--invariant=totalSupplyDoesNotOverflowInv \
780
+ --verbosity=0 \
781
781
../examples/tutorials/coin.qnt
782
782
cat out-itf-example.itf.json | jq '.states[0]."balances"."#map"[0]'
783
783
rm out-itf-example.itf.json
@@ -799,6 +799,7 @@ rm out-itf-example.itf.json
799
799
```
800
800
quint run --out-itf=out-itf-mbt-example.itf.json --max-steps=5 --seed=123 \
801
801
--invariant=totalSupplyDoesNotOverflowInv --mbt\
802
+ --verbosity=0 \
802
803
../examples/tutorials/coin.qnt
803
804
cat out-itf-mbt-example.itf.json | jq '.states[1]'
804
805
rm out-itf-mbt-example.itf.json
@@ -869,7 +870,7 @@ rm out-itf-mbt-example.itf.json
869
870
870
871
<!-- !test in successful run itf -->
871
872
```
872
- quint run --out-itf=out-itf-example.itf.json --max-steps=5 --seed=123 ../examples/tutorials/coin.qnt
873
+ quint run --out-itf=out-itf-example.itf.json --max-steps=5 --seed=123 --verbosity=0 ../examples/tutorials/coin.qnt
873
874
cat out-itf-example.itf.json | jq '.states[0]."balances"."#map"[0]'
874
875
rm out-itf-example.itf.json
875
876
```
@@ -888,7 +889,7 @@ rm out-itf-example.itf.json
888
889
889
890
<!-- !test in run with n-traces itf -->
890
891
```
891
- quint run --out-itf=out-itf-example.itf.json --n-traces=3 --mbt --max-steps=5 --seed=123 ../examples/tutorials/coin.qnt
892
+ quint run --out-itf=out-itf-example.itf.json --n-traces=3 --mbt --max-steps=5 --seed=123 --verbosity=0 ../examples/tutorials/coin.qnt
892
893
cat out-itf-example0.itf.json | jq '.["#meta"].status'
893
894
cat out-itf-example1.itf.json | jq '.states[0]["mbt::actionTaken"]'
894
895
rm out-itf-example*.itf.json
@@ -904,7 +905,7 @@ rm out-itf-example*.itf.json
904
905
905
906
<!-- !test in run with n-traces itf violation -->
906
907
```
907
- quint run --out-itf=out-itf-example.itf.json --n-traces=3 --max-steps=5 --seed=123 ../examples/tutorials/coin.qnt \
908
+ quint run --out-itf=out-itf-example.itf.json --n-traces=3 --max-steps=5 --seed=123 --verbosity=0 ../examples/tutorials/coin.qnt \
908
909
--invariant=totalSupplyDoesNotOverflowInv
909
910
cat out-itf-example0.itf.json | jq '.["#meta"].status'
910
911
cat out-itf-example1.itf.json | jq '.["#meta"].status'
@@ -1476,3 +1477,31 @@ won(X) was witnessed in 99 trace(s) out of 100 explored (99.00%)
1476
1477
stalemate was witnessed in 1 trace(s) out of 100 explored (1.00%)
1477
1478
Use --seed=0x2b442ab439177 to reproduce.
1478
1479
```
1480
+
1481
+ ### Run produces normal output on ` --out-itf ` with default verbosity
1482
+
1483
+ <!-- !test exit 1 -->
1484
+ <!-- !test in run itf default verbosity -->
1485
+ ```
1486
+ output=$(quint run --out-itf=out.itf.json --max-steps=5 --seed=123 \
1487
+ --invariant=totalSupplyDoesNotOverflowInv \
1488
+ ../examples/tutorials/coin.qnt 2>&1)
1489
+ exit_code=$?
1490
+ rm out.itf.json
1491
+ echo "$output" | head
1492
+ exit $exit_code
1493
+ ```
1494
+
1495
+ <!-- !test out run itf default verbosity -->
1496
+ ```
1497
+ An example execution:
1498
+
1499
+ [State 0]
1500
+ {
1501
+ balances:
1502
+ Map("alice" -> 0, "bob" -> 0, "charlie" -> 0, "eve" -> 0, "null" -> 0),
1503
+ minter: "null"
1504
+ }
1505
+
1506
+ [State 1]
1507
+ ```
0 commit comments