Skip to content

Commit c7a050e

Browse files
committed
updates
1 parent fb1f00b commit c7a050e

4 files changed

Lines changed: 18 additions & 16 deletions

File tree

.docker/install-modest.sh

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
echo 'Downloading Modest (targetplatform = ${TARGETPLATFORM})';
22
mkdir tmp; cd tmp;
3-
wget https://www.modestchecker.net/Downloads/Modest-umb-all.zip ;
4-
unzip Modest-umb-all.zip ;
5-
rm Modest-umb-all.zip ;
6-
ls
7-
if [ "${TARGETPLATFORM}" = "linux/x64" ] ; then
8-
echo 'Installing Modest for linux/x64';
9-
tar xvf Modest-linux-x64.tar.xz;
10-
else
3+
if [ "${TARGETPLATFORM}" = "linux/amd64" ] ; then
4+
echo 'Installing Modest for linux/amd64';
5+
wget wget "https://www.modestchecker.net/Downloads/Modest-Toolset-$(wget -qO- https://www.modestchecker.net/Downloads/Version.txt)-linux-x64.zip"
6+
elif [ "${TARGETPLATFORM}" = "linux/arm64" ] ; then
117
echo 'Installing Modest for linux/arm64';
12-
tar xvf Modest-linux-arm64.tar.xz ;
8+
wget wget "https://www.modestchecker.net/Downloads/Modest-Toolset-$(wget -qO- https://www.modestchecker.net/Downloads/Version.txt)-linux-arm64.zip"
9+
else
10+
echo "Unknown targetplatform ${TARGETPLATFORM}"
11+
exit 1
1312
fi
13+
unzip *.zip ;
14+
rm *.zip ;
1415
mv Modest /opt/Modest
1516
cd .. ;
1617
rm -rf tmp ;

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ ARG storm_build_type=Release
4242
ARG no_threads=1
4343
ARG storm_repo=https://github.com/tquatmann/storm.git
4444
ARG storm_branch=io/binaryformat
45-
ARG prism_repo=https://github.com/davexparker/prism.git
46-
ARG prism_branch=umb
45+
ARG prism_repo=https://github.com/prismmodelchecker/prism.git
46+
ARG prism_branch=master
4747

4848
# Build Storm
4949
#############

umbtest/benchmarks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def check_prism_file(
105105
)
106106
result["checker"] = None
107107
result["transformer"] = None
108-
if result["loader"].error_code != 0:
108+
if result["loader"].exit_code != 0:
109109
with open(result["loader"].logfile, "r") as f:
110110
print(f.read())
111111
if result["loader"].not_supported:
@@ -133,7 +133,7 @@ def check_prism_file(
133133
Path(tmpfile_out.name),
134134
log_file=Path(self._tmplogfile().name),
135135
)
136-
if result["transformer"].error_code != 0:
136+
if result["transformer"].exit_code != 0:
137137
return result
138138
except Exception as e:
139139
raise RuntimeError(f"{self._transformer.name} raised {type(e)}:{e}!")
@@ -144,7 +144,7 @@ def check_prism_file(
144144
log_file=Path(self._tmplogfile().name),
145145
properties=properties,
146146
)
147-
if result["checker"].error_code != 0:
147+
if result["checker"].exit_code != 0:
148148
with open(result["checker"].logfile, "r") as f:
149149
print(f.read())
150150
if result["checker"].anticipated_error or result["checker"].not_supported:

umbtest/tools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def parse_logfile_storm(log, inv):
4646
inv.anticipated_error = contains_any_of(log, known_error_messages)
4747
if inv.not_supported or inv.anticipated_error:
4848
return
49-
if inv.error_code not in [0, 1]:
49+
if inv.exit_code not in [0, 1]:
5050
if not inv.timeout and not inv.memout:
5151
print("WARN: Unexpected return code(s): {}".format(inv["return-codes"]))
5252

@@ -312,13 +312,14 @@ def _call_mcsta(self, log_file, args):
312312
reported_result.memout = False
313313
reported_result.logfile = log_file
314314
if log_file is not None:
315-
print(log_file)
316315
with open(log_file, "r") as log:
317316
print(log.read())
318317
for line in result.stdout.split("\n"):
319318
print(line)
320319
if "error:" in line:
321320
reported_result.exit_code = 1
321+
if "UMB: error: Only deadlock-free MA, MDP, CTMC, DTMC, and LTS models are supported." in line:
322+
reported_result.not_supported = True
322323
return reported_result
323324

324325
def check_umb(self, umb_file: pathlib.Path, log_file: pathlib.Path, properties=[]):

0 commit comments

Comments
 (0)