tcpiputils/dhcp/te_dhcp/config/scripts/TE_SIPServer_DHCP_hwonly_ip4_wlan.script
branchRCL_3
changeset 22 8d540f55e491
parent 21 abbed5a4b42a
child 23 425d8f4f7fa5
equal deleted inserted replaced
21:abbed5a4b42a 22:8d540f55e491
     1 //
       
     2 // Copyright (c) 2010 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 #	Script file for DHCP testing on IPv4
       
    18 #
       
    19 #   ORDER IS IMPORTANT! SetIAPToUse and SetAddressMode lines affect the operation of the subsequent commands
       
    20 
       
    21 RUN_UTILS  MkDir c:\simtsy\
       
    22 RUN_UTILS  MkDir c:\private\
       
    23 RUN_UTILS  MkDir c:\private\101F7989\
       
    24 RUN_UTILS  MkDir c:\private\101F7989\esock\
       
    25 RUN_UTILS  MakeReadWrite c:\config.txt
       
    26 RUN_UTILS  MakeReadWrite c:\loopback.ini
       
    27 RUN_UTILS  MakeReadWrite c:\qospolicies.ini
       
    28 RUN_UTILS  MakeReadWrite c:\private\101F7989\esock\qospolicies.ini
       
    29 RUN_UTILS  DeleteFile c:\simtsy\config.txt
       
    30 RUN_UTILS  DeleteFile c:\config.txt
       
    31 RUN_UTILS  DeleteFile c:\loopback.ini
       
    32 RUN_UTILS  DeleteFile c:\qospolicies.ini
       
    33 RUN_UTILS  DeleteFile c:\private\101F7989\esock\qospolicies.ini
       
    34 RUN_UTILS  CopyFile z:\TestData\Configs\SIP_Server_simtsy_config.txt c:\config.txt
       
    35 RUN_UTILS  CopyFile z:\TestData\Configs\te_sipservertesting_loopback.ini c:\loopback.ini
       
    36 RUN_UTILS  CopyFile z:\TestData\Configs\te_sipservertesting_qospolicies.ini c:\qospolicies.ini
       
    37 RUN_UTILS  CopyFile z:\TestData\Configs\te_sipservertesting_qospolicies.ini c:\private\101F7989\esock\qospolicies.ini
       
    38 RUN_UTILS  MakeReadWrite c:\simtsy\config.txt
       
    39 RUN_UTILS  MakeReadWrite c:\config.txt
       
    40 
       
    41 # Unload esock forcefully
       
    42 RUN_SCRIPT z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
    43 
       
    44 # Configure commdb
       
    45 # This config file has explicit settings for IPv4
       
    46 
       
    47 //ced -i z:\TestData\configs\DHCP\DHCPced_ip4.xml
       
    48 RUN_UTILS  MkDir c:\private
       
    49 RUN_UTILS  MkDir c:\private\10202be9
       
    50 RUN_UTILS  MkDir c:\private\10202be9\persists
       
    51 RUN_UTILS  MakeReadWrite c:\private\10202be9\persists\cccccc00.cre
       
    52 
       
    53 RUN_UTILS CopyFile z:\testdata\configs\dhcp\cccccc00_dhcptest_ip4.cre c:\private\10202be9\persists\cccccc00.cre
       
    54 
       
    55 # Load esock
       
    56 RUN_SCRIPT z:\TestData\scripts\te_esock_test_loadesock.script
       
    57 
       
    58 load_suite DhcpTestServer
       
    59 
       
    60 # Load esock
       
    61 RUN_SCRIPT z:\TestData\scripts\te_esock_test_loadesock.script
       
    62 
       
    63 START_TESTCASE          NET-Dhcp-2201
       
    64 //! @SYMTestCaseID      NET-Dhcp-2201
       
    65 run_test_step 5 DhcpTestServer SetAddressMode z:\TestData\configs\DHCP\dhcptest.ini IPv4
       
    66 END_TESTCASE            NET-Dhcp-2201
       
    67 
       
    68 START_TESTCASE          NET-Dhcp-2202
       
    69 //! @SYMTestCaseID      NET-Dhcp-2202
       
    70 ////////////////////////
       
    71 // SET IAP TO DYNAMIC //
       
    72 run_test_step 5 DhcpTestServer SetIAPToUse z:\TestData\configs\DHCP\dhcptest.ini EtherWithDaemonNet1
       
    73 ////////////////////////
       
    74 END_TESTCASE            NET-Dhcp-2202
       
    75 
       
    76 // Test 2_13 - for receiving SIP address option via DHCP
       
    77 START_TESTCASE          NET-Dhcp-2203
       
    78 //! @SYMTestCaseID      NET-Dhcp-2203
       
    79 run_test_step 50 DhcpTestServer 2_GetSIPAddrViaDHCP z:\TestData\configs\DHCP\dhcptest.ini ExpectDHCPResponseBeforeCompletion
       
    80 END_TESTCASE            NET-Dhcp-2203
       
    81 
       
    82 // Test 2_14 - for receiving SIP domain option via DHCP
       
    83 START_TESTCASE          NET-Dhcp-2204
       
    84 //! @SYMTestCaseID      NET-Dhcp-2204
       
    85 run_test_step 50 DhcpTestServer 2_GetSIPDomain	z:\TestData\configs\DHCP\dhcptest.ini ExpectDHCPResponseBeforeCompletion
       
    86 END_TESTCASE            NET-Dhcp-2204
       
    87 
       
    88 START_TESTCASE          NET-Dhcp-2205
       
    89 //! @SYMTestCaseID      NET-Dhcp-2205
       
    90 ///////////////////////////////////////////////////////
       
    91 // SET IAP TO STATIC IP STATIC DNS (DHCP STILL RUNS) //
       
    92 run_test_step 5 DhcpTestServer SetIAPToUse z:\TestData\configs\DHCP\dhcptest.ini EtherWithDaemon_StaticAddr_StaticDNS
       
    93 ///////////////////////////////////////////////////////
       
    94 END_TESTCASE            NET-Dhcp-2205
       
    95 
       
    96 // Test 2_16 - after defect 69825 (INFORM mode must return immediately when IP address and DNS address are static)
       
    97 START_TESTCASE          NET-Dhcp-2206
       
    98 //! @SYMTestCaseID      NET-Dhcp-2206
       
    99 run_test_step 50 DhcpTestServer 2_GetRaw	z:\TestData\configs\DHCP\dhcptest.ini ExpectImmediateCompletion
       
   100 END_TESTCASE            NET-Dhcp-2206
       
   101 
       
   102 // Test 2_17 - INFORM Test for receiving SIP address option via DHCP
       
   103 START_TESTCASE          NET-Dhcp-2207
       
   104 //! @SYMTestCaseID      NET-Dhcp-2207
       
   105 run_test_step 50 DhcpTestServer 2_GetSIPAddrViaDHCP	z:\TestData\configs\DHCP\dhcptest.ini ExpectImmediateCompletion
       
   106 END_TESTCASE            NET-Dhcp-2207
       
   107 
       
   108 // Test 2_18 - INFORM Test for receiving SIP domain option
       
   109 START_TESTCASE          NET-Dhcp-2208
       
   110 //! @SYMTestCaseID      NET-Dhcp-2208
       
   111 run_test_step 50 DhcpTestServer 2_GetSIPDomain	z:\TestData\configs\DHCP\dhcptest.ini ExpectImmediateCompletion
       
   112 END_TESTCASE            NET-Dhcp-2208
       
   113 
       
   114 # Stop all interfaces
       
   115 RUN_SCRIPT Z:\TestData\Scripts\te_esock_test_stopallinterfaces.script
       
   116 
       
   117 # Unload esock
       
   118 RUN_SCRIPT z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   119 // Cleanup
       
   120 RUN_UTILS  MakeReadWrite c:\config.txt
       
   121 RUN_UTILS  MakeReadWrite c:\loopback.ini
       
   122 RUN_UTILS  MakeReadWrite c:\qospolicies.ini
       
   123 RUN_UTILS  MakeReadWrite c:\private\101F7989\esock\qospolicies.ini
       
   124 RUN_UTILS  DeleteFile c:\simtsy\config.txt
       
   125 RUN_UTILS  DeleteFile c:\config.txt
       
   126 RUN_UTILS  DeleteFile c:\loopback.ini
       
   127 RUN_UTILS  DeleteFile c:\qospolicies.ini
       
   128 RUN_UTILS  DeleteFile c:\private\101F7989\esock\qospolicies.ini
       
   129