forked from faucetsdn/daq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_topo.sh
executable file
·47 lines (36 loc) · 956 Bytes
/
test_topo.sh
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
#!/bin/bash
source testing/test_preamble.sh
echo Topology Tests >> $TEST_RESULTS
echo mudacl tests | tee -a $TEST_RESULTS
mudacl/bin/test.sh
echo Mudacl exit code $? | tee -a $TEST_RESULTS
bacnet_file='$TEST_ROOT/tmp/bacnet_result.txt'
socket_file='$TEST_ROOT/tmp/socket_result.txt'
MAC_BASE=9a:02:57:1e:8f
source testing/test_utils.sh
echo Creating MUD templates...
bin/mudacl
generate open 3
cmd/build missing
check_socket 01 02 1 1
check_socket 02 01 1 1
check_bacnet 01 02 1 1 1 1
check_bacnet 02 03 1 1 1 1
check_bacnet 03 01 1 1 1 1
run_test 3
generate minimal 3
check_bacnet 01 02 1 1 1 1
check_bacnet 02 03 0 1 1 1
check_bacnet 03 01 1 1 1 1
run_test 3
generate commissioning 4
check_socket 01 04 0 0
check_socket 01 02 0 0
check_socket 04 01 0 0
check_bacnet 01 02 1 1 1 1
check_bacnet 01 04 1 1 1 1
check_bacnet 02 03 0 1 1 1
check_bacnet 02 04 1 1 1 1
check_bacnet 03 01 1 1 1 1
run_test 4
echo Done with tests | tee -a $TEST_RESULTS