|
1 # |
|
2 # Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 # All rights reserved. |
|
4 # This component and the accompanying materials are made available |
|
5 # under the terms of "Eclipse Public License v1.0" |
|
6 # which accompanies this distribution, and is available |
|
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 # |
|
9 # Initial Contributors: |
|
10 # Nokia Corporation - initial contribution. |
|
11 # |
|
12 # Contributors: |
|
13 # |
|
14 # Description: |
|
15 # |
|
16 |
|
17 ####################################################################################### |
|
18 # |
|
19 # Start the services |
|
20 # |
|
21 ####################################################################################### |
|
22 runcmd svcid=5 svchost="penmn" methodid=1 PORT=7000 |
|
23 check RESULT=0 |
|
24 runcmd svcid=5 svchost="penpdsn" methodid=1 PORT=7000 |
|
25 check RESULT=0 |
|
26 runcmd svcid=7 svchost="penpdsn" methodid=1 |
|
27 check RESULT=0 |
|
28 runcmd svcid=6 svchost="penuu" methodid=1 |
|
29 check RESULT=0 |
|
30 |
|
31 |
|
32 ####################################################################################### |
|
33 # |
|
34 # Create two MTs and make them talk to each other |
|
35 # |
|
36 ####################################################################################### |
|
37 runcmd svcid=5 svchost="penmn" methodid=3 DATALINKCONFIG=1 FILTERCONFIG=0 |
|
38 assign dev0=RESULT |
|
39 runcmd svcid=5 svchost="penpdsn" methodid=3 DATALINKCONFIG=1 FILTERCONFIG=0 |
|
40 assign dev1=RESULT |
|
41 runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=2000 |
|
42 |
|
43 runcmd svcid=5 svchost="penmn" methodid=4 DEVICEID=dev0 |
|
44 assign local_uu_port0=AIR_INPORT |
|
45 runcmd svcid=5 svchost="penpdsn" methodid=4 DEVICEID=dev1 |
|
46 assign local_uu_port1=AIR_INPORT |
|
47 |
|
48 runcmd svcid=5 svchost="penmn" methodid=10 DEVICEID=dev0 REMOTE_ADDRESS="192.168.10.11" REMOTE_PORT=local_uu_port1 |
|
49 runcmd svcid=5 svchost="penpdsn" methodid=10 DEVICEID=dev1 REMOTE_ADDRESS="192.168.14.10" REMOTE_PORT=local_uu_port0 |
|
50 |
|
51 |
|
52 ####################################################################################### |
|
53 # |
|
54 # Create a single PPP sessions and wait for the SymbianOS device to connect |
|
55 # |
|
56 ####################################################################################### |
|
57 runcmd svcid=7 svchost="penpdsn" methodid=31 MADDR="localhost" MPORT=7000 MTID=dev1 CONFIG="noauth 192.168.200.20:192.168.200.10 debug nodetach lcp-echo-interval 3 lcp-echo-failure 3" |
|
58 assign sid1=RESULT |
|
59 |
|
60 |
|
61 ####################################################################################### |
|
62 # |
|
63 # Set the channel to 5% loss rate |
|
64 # |
|
65 ####################################################################################### |
|
66 runcmd svcid=6 svchost="penuu" methodid=4 SRC="192.168.14.10" SRCPORT=local_uu_port0 DST="192.168.10.11" DSTPORT=local_uu_port1 DROPI=5 PROTOCOL="UDP" |
|
67 check RESULT=0 |
|
68 |
|
69 |
|
70 ####################################################################################### |
|
71 # |
|
72 # Signal the device that the network is setup and wait for a signal that the test |
|
73 # has completed |
|
74 # |
|
75 ####################################################################################### |
|
76 assign DEVICEID=dev0 |
|
77 assign COMMDB_ISP_INDEX=2 |
|
78 signal |
|
79 waitforsignal |
|
80 runcmd svcid=6 svchost="penuu" methodid=4 SRC="192.168.14.10" SRCPORT=local_uu_port0 DST="192.168.10.11" DSTPORT=local_uu_port1 DROPI=0 PROTOCOL="UDP" |
|
81 check RESULT=0 |
|
82 |
|
83 |
|
84 ####################################################################################### |
|
85 # |
|
86 # Stop the PPP session |
|
87 # |
|
88 ####################################################################################### |
|
89 runcmd svcid=7 svchost="penpdsn" methodid=6 SID=sid1 |
|
90 check RESULT=0 |
|
91 runcmd svcid=7 svchost="penpdsn" methodid=8 SID=sid1 |
|
92 runcmd svcid=7 svchost="penpdsn" methodid=32 SID=sid1 |
|
93 check RESULT=0 |
|
94 |
|
95 |
|
96 ####################################################################################### |
|
97 # |
|
98 # Remove the mobster devices (they should already have stopped) |
|
99 # |
|
100 ####################################################################################### |
|
101 runcmd svcid=5 svchost="penmn" methodid=6 DEVICEID=dev0 |
|
102 check RESULT=0 |
|
103 runcmd svcid=5 svchost="penmn" methodid=7 DEVICEID=dev0 |
|
104 check RESULT=0 |
|
105 runcmd svcid=5 svchost="penpdsn" methodid=6 DEVICEID=dev1 |
|
106 check RESULT=0 |
|
107 runcmd svcid=5 svchost="penpdsn" methodid=7 DEVICEID=dev1 |
|
108 check RESULT=0 |
|
109 |
|
110 |
|
111 ####################################################################################### |
|
112 # |
|
113 # Stop all the services |
|
114 # |
|
115 ####################################################################################### |
|
116 runcmd svcid=5 svchost="penmn" methodid=2 FORCE=0 |
|
117 check RESULT=0 |
|
118 runcmd svcid=7 svchost="penpdsn" methodid=2 FORCE=0 |
|
119 check RESULT=0 |
|
120 runcmd svcid=5 svchost="penpdsn" methodid=2 FORCE=0 |
|
121 check RESULT=0 |
|
122 runcmd svcid=6 svchost="penuu" methodid=2 FORCE=0 |
|
123 check RESULT=0 |
|
124 |
|
125 |
|
126 ####################################################################################### |
|
127 # |
|
128 # Done |
|
129 # |
|
130 ####################################################################################### |
|
131 rendezvous |