forked from mlichvar/linuxptp-testsuite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
25-telecomdscmp
executable file
·42 lines (33 loc) · 1.1 KB
/
25-telecomdscmp
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
#!/bin/bash
. test.common
test_start "ptp4l with telecom_dscmp and various local priority"
nodes=2
# Using telecom_dscmp with default local priorities.
# The first node will become master due to portIdentity.
master_conf="dataset_comparison G.8275.x"
slave_conf="dataset_comparison G.8275.x"
run_ptp4l || test_fail
check_sync || test_fail
# Using telecom_dscmp with clock localPriority set.
# The first node will now become slave and the second
# master due to the local priority for the clock.
master_nodes="2"
master_conf="dataset_comparison G.8275.x
G.8275.defaultDS.localPriority 127"
slave_conf="dataset_comparison G.8275.x
G.8275.defaultDS.localPriority 129"
slave_start=0.0
run_ptp4l || test_fail
check_sync || test_fail
# Using telecom_dscmp with port localPriority set.
# The first node will become slave and the second
# master due to the local priority for the port.
master_nodes="2"
master_conf="dataset_comparison G.8275.x
G.8275.portDS.localPriority 129"
slave_conf="dataset_comparison G.8275.x
G.8275.portDS.localPriority 127"
slave_start=0.0
run_ptp4l || test_fail
check_sync || test_fail
test_pass