-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheval_script
More file actions
executable file
·32 lines (24 loc) · 927 Bytes
/
eval_script
File metadata and controls
executable file
·32 lines (24 loc) · 927 Bytes
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
#!/bin/bash
# To run this file and capture output
# ./test_script | tee output.txt
afile="sample_networks/aima-alarm.xml"
gfile="sample_networks/aima-wet-grass.xml "
dfile="sample_networks/dog-problem.xml "
alarm1="B J true M true"
alarm2="M E true B false"
alarm3="E B false A false"
grass1="C S true W false"
grass2="S C true W false"
grass3="W S true R true"
dog1="dog-out light-on true bowel-problem true"
dog2="bowel-problem light-on true family-out true"
dog3="hear-bark light-on true bowel-problem true"
EVALUATE=1 cargo run --release $afile $alarm1
EVALUATE=1 cargo run --release $afile $alarm2
EVALUATE=1 cargo run --release $afile $alarm3
EVALUATE=1 cargo run --release $gfile $grass1
EVALUATE=1 cargo run --release $gfile $grass2
EVALUATE=1 cargo run --release $gfile $grass3
EVALUATE=1 cargo run --release $dfile $dog1
EVALUATE=1 cargo run --release $dfile $dog2
EVALUATE=1 cargo run --release $dfile $dog3