-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprepare
executable file
·65 lines (62 loc) · 1.65 KB
/
prepare
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#! /usr/bin/env bash
set -e
# Download the tool submission kit:
if [ ! -d "ToolSubmissionKit" ]
then
echo "Downloading the tool submission kit."
curl -L https://mcc.lip6.fr/archives/ToolSubmissionKit.tar.gz \
-o ToolSubmissionKit.tar.gz
tar xf ToolSubmissionKit.tar.gz
rm ToolSubmissionKit.tar.gz
fi
# Extract the models:
if [ ! -d models ]
then
echo "Extracting the models from the tool submission kit."
## Clean:
VBoxManage controlvm "mcc4mcc-input" \
poweroff \
|| true
VBoxManage modifyvm "mcc4mcc-input" \
--hda "none" \
--hdb "none" \
|| true
VBoxManage unregistervm "mcc4mcc-input" \
--delete \
|| true
## Launch the virtual machine:
VBoxManage createvm \
--name "mcc4mcc-input" \
--ostype "Debian_64" \
--register
VBoxManage storagectl "mcc4mcc-input" \
--name "IDE Controller" \
--add "ide" \
--bootable "on"
VBoxManage modifyvm "mcc4mcc-input" \
--description "Model Checker Collection for the Model Checking Contest" \
--memory 1024 \
--cpus 1 \
--hda "$(pwd)/ToolSubmissionKit/mcc2018.vmdk" \
--hdb "$(pwd)/ToolSubmissionKit/mcc2018-input.vmdk" \
--natpf1 ssh,tcp,,2222,,22
VBoxManage startvm "mcc4mcc-input" \
--type "headless"
## Copy models:
scp \
-o "UserKnownHostsFile=/dev/null" \
-o "StrictHostKeyChecking=no" \
-i "ToolSubmissionKit/bk-private_key" \
-P 2222 \
-r \
mcc@localhost:/home/mcc/BenchKit/INPUTS \
models
## Clean:
VBoxManage controlvm "mcc4mcc-input" \
poweroff
VBoxManage modifyvm "mcc4mcc-input" \
--hda "none" \
--hdb "none"
VBoxManage unregistervm "mcc4mcc-input" \
--delete
fi