Skip to content

Commit b0d1606

Browse files
author
Stephane Glondu
committed
Fix after switch to cmdliner
- "--toolbox A B" becomes "--toolbox A,B" - "--isaprove" is deprecated and no longer supported
1 parent 489c31c commit b0d1606

16 files changed

+21
-20
lines changed

lsp/lib/prover/prover.ml

+3-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ let start_async_with_exec st doc_uri doc_text range paths events_adder
122122
(* First arg s ignored, if executable is specified. *)
123123
executable;
124124
"--toolbox";
125-
string_of_int (Range.line_from range);
126-
string_of_int (Range.line_till range);
125+
Printf.sprintf "%d,%d"
126+
(Range.line_from range)
127+
(Range.line_till range);
127128
"--toolbox-vsn";
128129
"2";
129130
(* "--verbose"; *)

lsp/test/tlapm_mock.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function Empty() {
4545
cat << EOF
4646
\* TLAPM version 1.5.0
4747
\* launched at 2023-09-30 23:39:35 with command line:
48-
\* tlapm --toolbox 0 0 Empty.tla
48+
\* tlapm --toolbox 0,0 Empty.tla
4949
5050
@!!BEGIN
5151
@!!type:obligationsnumber
@@ -64,7 +64,7 @@ function Some() {
6464
cat << EOF
6565
\* TLAPM version 1.5.0
6666
\* launched at 2023-09-30 23:43:15 with command line:
67-
\* tlapm --toolbox 0 0 Some.tla
67+
\* tlapm --toolbox 0,0 Some.tla
6868
6969
(* loading fingerprints in ".tlacache/Some.tlaps/fingerprints" *)
7070
@!!BEGIN

src/tlapm.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Test the --stdin option
2-
$ cat <<EOF | (tlapm --toolbox 0 0 --stdin A.tla 2>&1 | grep -e '^@!!' | grep -v 'time-used')
2+
$ cat <<EOF | (tlapm --toolbox 0,0 --stdin A.tla 2>&1 | grep -e '^@!!' | grep -v 'time-used')
33
> ---- MODULE A ----
44
> THEOREM
55
> ASSUME

test/README

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ line of ==== are the commands for the test harness:
2323
with the "results" clause. The standard outputs and standard error
2424
outputs of the commands are all concatenated in execution order.
2525
If this clause is omitted, the default command is executed:
26-
${TLAPM} --toolbox 0 0 --nofp ${FILE} --stretch ${STRETCH}
26+
${TLAPM} --toolbox 0,0 --nofp ${FILE} --stretch ${STRETCH}
2727

2828
- stretch: <n>
2929
Changes the STRETCH parameter to <n>. This should only be used for

test/TOOLS/do_junit_tests

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ outf=/var/tmp/ju$$.txt
3838
FILE="`basename $f`"
3939
DIR="`dirname $f`"
4040

41-
cmd="cd $DIR; ${TLAPM} --toolbox 0 0 --nofp $FILE"
41+
cmd="cd $DIR; ${TLAPM} --toolbox 0,0 --nofp $FILE"
4242
echo "" | tee -a $outf
4343
echo "+++ Running case: $FILE " | tee -a $outf
4444
echo "+++ working dir: "`pwd` | tee -a $outf

test/TOOLS/do_one_test

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ phase == 1 && FILENAME ~ /.*\/separator$/ {
119119
result = system (check_command);
120120
if (result != 0){ fail("explicit check failed"); }
121121
}else if (!command_done){
122-
run_command("${TLAPM} --toolbox 0 0 --nofp ${FILE} --stretch ${STRETCH} --debug=tempfiles ");
122+
run_command("${TLAPM} --toolbox 0,0 --nofp ${FILE} --stretch ${STRETCH} --debug=tempfiles ");
123123
}
124124
if (result_code != expected_result){
125125
fail("wrong result code");

test/TOOLS/do_soundness_tests

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ outf=/var/tmp/ju$$.txt
3838
FILE="`basename $f`"
3939
DIR="`dirname $f`"
4040

41-
cmd="cd $DIR; ${TLAPM} --toolbox 0 0 --nofp $FILE"
41+
cmd="cd $DIR; ${TLAPM} --toolbox 0,0 --nofp $FILE"
4242
echo "" | tee -a $outf
4343
echo "+++ Running case: $FILE " | tee -a $outf
4444
echo "+++ working dir: "`pwd` | tee -a $outf

test/fast/basic/nonexistent_test.tla

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ to the filename (filepath).
1212
THEOREM FALSE
1313
OBVIOUS
1414
=================================
15-
command: ${TLAPM} --toolbox 0 0 nonexistent_test
15+
command: ${TLAPM} --toolbox 0,0 nonexistent_test
1616
stderr: obligation failed.
1717

test/fast/enabled_cdot/Level_of_parametric_INSTANCE_test.tla

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ THEOREM TRUE
2727
<1> QED
2828

2929
==================================================
30-
command: ${TLAPM} --nofp --toolbox 0 0 ${FILE}
30+
command: ${TLAPM} --nofp --toolbox 0,0 ${FILE}
3131
nostderr: ending abnormally

test/fast/fingerprint/FingerprintVariablesParameters_test.tla

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ THEOREM \E y: y # y
1919
OBVIOUS
2020

2121
====================================
22-
command: ${TLAPM} --toolbox 0 0 ${FILE}
22+
command: ${TLAPM} --toolbox 0,0 ${FILE}
2323
stderr: 1/2 obligations failed
24-
command: ${TLAPM} --toolbox 0 0 ${FILE}
24+
command: ${TLAPM} --toolbox 0,0 ${FILE}
2525
stderr: 1/2 obligations failed

test/fast/fingerprint/load_v8_test.tla.disabled

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ THEOREM cantor ==
2727
===============================================
2828
command: rm -rf load_v8_test.tlaps
2929
command: cp -r load_v8_test.tlaps.testbase load_v8_test.tlaps
30-
command: ${TLAPM} --toolbox 0 0 --isaprove ${FILE}
30+
command: ${TLAPM} --toolbox 0,0 ${FILE}
3131
stdout: fingerprints written
3232
stderr: Translating fingerprints from version 8
3333
stderr: already:true

test/fast/fingerprint/load_v8old_test.tla.disabled

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ OBVIOUS
127127
command: rm -rf .tlacache
128128
command: mkdir .tlacache
129129
command: cp -r load_v8old_test.tlaps.testbase .tlacache/load_v8old_test.tlaps
130-
command: ${TLAPM} --toolbox 0 0 --isaprove ${FILE}
130+
command: ${TLAPM} --toolbox 0,0 ${FILE}
131131
stdout: fingerprints written
132132
stderr: Translating fingerprints from version 8
133133
stderr: already:true

test/fast/fingerprint/load_v9_test.tla.disabled

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ THEOREM cantor ==
2727
===============================================
2828
command: rm -rf load_v9_test.tlaps
2929
command: cp -r load_v9_test.tlaps.testbase load_v9_test.tlaps
30-
command: ${TLAPM} --toolbox 0 0 --isaprove ${FILE}
30+
command: ${TLAPM} --toolbox 0,0 ${FILE}
3131
stdout: fingerprints written
3232
stderr: Translating fingerprints from version 9
3333
stderr: already:true

test/fast/language/INSTANCE_shift_due_to_omitted_modunits_test.tla

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ OBVIOUS
2525

2626

2727
============================================================
28-
command: ${TLAPM} --toolbox 0 0 ${FILE}
28+
command: ${TLAPM} --toolbox 0,0 ${FILE}
2929
nostderr: Assertion failed

test/fast/regression/z3_fingerprint_test.tla

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ EXTENDS TLAPS, Naturals
55
THEOREM foo == 2 + 2 = 4 BY Z3
66

77
====
8-
command: ${TLAPM} --toolbox 0 0 --isaprove ${FILE} 2>/dev/null
9-
command: ${TLAPM} --toolbox 0 0 --noproving ${FILE}
8+
command: ${TLAPM} --toolbox 0,0 ${FILE}
9+
command: ${TLAPM} --toolbox 0,0 --noproving ${FILE}
1010
stderr: already:true

test/regression_tests/fingerprint_13_12_07_test-disabled.tla

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ OBVIOUS
1111
THEOREM S # {} OBVIOUS
1212

1313
====
14-
command: ${TLAPM} --toolbox 0 0 --threads 1 --cleanfp ${FILE}
14+
command: ${TLAPM} --toolbox 0,0 --threads 1 --cleanfp ${FILE}
1515
stderr: status:failed

0 commit comments

Comments
 (0)