testexecmgmt/ucc/SampleScripts/script.0006.ucd
changeset 0 3da2a79470a7
equal deleted inserted replaced
-1:000000000000 0:3da2a79470a7
       
     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 # USE-CASE-6 : Establish a PPP session and connect to a remote chargen server from
       
    20 #			   the lubbock board.
       
    21 #
       
    22 #######################################################################################
       
    23 
       
    24 #######################################################################################
       
    25 #
       
    26 # Start the services
       
    27 #
       
    28 #######################################################################################
       
    29 runcmd svcid=5 svchost="penmn"		methodid=1 PORT=7000
       
    30 	check RESULT=0
       
    31 runcmd svcid=5 svchost="penpdsn"	methodid=1 PORT=7000
       
    32 	check RESULT=0
       
    33 runcmd svcid=7 svchost="penpdsn"	methodid=1
       
    34 	check RESULT=0
       
    35 
       
    36 
       
    37 #######################################################################################
       
    38 #
       
    39 # Create two MTs and make them talk to each other
       
    40 #
       
    41 #######################################################################################
       
    42 runcmd svcid=5 svchost="penmn" methodid=3 DATALINKCONFIG=1 FILTERCONFIG=0
       
    43 	assign dev0=RESULT
       
    44 runcmd svcid=5 svchost="penpdsn" methodid=3 DATALINKCONFIG=1 FILTERCONFIG=0
       
    45 	assign dev1=RESULT
       
    46 runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=2000
       
    47 
       
    48 runcmd svcid=5 svchost="penmn" methodid=4 DEVICEID=dev0
       
    49 	assign local_uu_port0=AIR_INPORT
       
    50 runcmd svcid=5 svchost="penpdsn" methodid=4 DEVICEID=dev1
       
    51 	assign local_uu_port1=AIR_INPORT
       
    52 
       
    53 runcmd svcid=5 svchost="penmn"		methodid=10 DEVICEID=dev0	REMOTE_ADDRESS="penpdsn"	REMOTE_PORT=local_uu_port1
       
    54 runcmd svcid=5 svchost="penpdsn"	methodid=10 DEVICEID=dev1	REMOTE_ADDRESS="penmn"		REMOTE_PORT=local_uu_port0
       
    55 
       
    56 
       
    57 #######################################################################################
       
    58 #
       
    59 # Create a single PPP sessions and wait for the SymbianOS device to connect
       
    60 #
       
    61 #######################################################################################
       
    62 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"
       
    63 	assign sid1=RESULT
       
    64 
       
    65 
       
    66 #######################################################################################
       
    67 #
       
    68 # Signal the device that the network is setup and wait for a signal that the test
       
    69 # has completed
       
    70 #
       
    71 #######################################################################################
       
    72 assign DEVICEID=dev0
       
    73 assign COMMDB_ISP_INDEX=2
       
    74 runcmd svcid=9 svchost="localhost" methodid=4 MSG="VERIFY: that the SymbianOS test is running."
       
    75 signal
       
    76 waitforsignal
       
    77 
       
    78 
       
    79 #######################################################################################
       
    80 #
       
    81 # Stop the PPP session
       
    82 #
       
    83 #######################################################################################
       
    84 runcmd svcid=7 svchost="penpdsn" methodid=6 SID=sid1
       
    85 	check RESULT=0
       
    86 runcmd svcid=7 svchost="penpdsn" methodid=8 SID=sid1
       
    87 runcmd svcid=7 svchost="penpdsn" methodid=32 SID=sid1
       
    88 	check RESULT=0
       
    89 
       
    90 
       
    91 #######################################################################################
       
    92 #
       
    93 # Remove the mobster devices (they should already have stopped)
       
    94 #
       
    95 #######################################################################################
       
    96 runcmd svcid=5  svchost="penmn"	methodid=6 DEVICEID=dev0
       
    97 	check RESULT=0
       
    98 runcmd svcid=5  svchost="penmn"	methodid=7 DEVICEID=dev0
       
    99 	check RESULT=0
       
   100 runcmd svcid=5  svchost="penpdsn"	methodid=6 DEVICEID=dev1
       
   101 	check RESULT=0
       
   102 runcmd svcid=5  svchost="penpdsn"	methodid=7 DEVICEID=dev1
       
   103 	check RESULT=0
       
   104 
       
   105 
       
   106 #######################################################################################
       
   107 #
       
   108 # Stop all the services
       
   109 #
       
   110 #######################################################################################
       
   111 runcmd svcid=5 svchost="penmn"		methodid=2 FORCE=0
       
   112 	check RESULT=0
       
   113 runcmd svcid=7 svchost="penpdsn"	methodid=2 FORCE=0
       
   114 	check RESULT=0
       
   115 runcmd svcid=5 svchost="penpdsn"	methodid=2 FORCE=0
       
   116 	check RESULT=0
       
   117 
       
   118 
       
   119 #######################################################################################
       
   120 #
       
   121 # Done
       
   122 #
       
   123 #######################################################################################
       
   124 rendezvous