|
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 //! @file |
|
18 //! @SYMTestSuiteName NET-DHCP-CIT |
|
19 //! @SYMScriptTestEnvironment TestExecuteFramework (TEF). |
|
20 //! @SYMScriptPurpose Script file for DHCP testing on IPv4. |
|
21 //! @SYMScriptInfo 1.Here we use CommsDB with ipv4 settings. |
|
22 //!////////////////////////////////////////////////////////////////// |
|
23 |
|
24 //Unload esock forcefully |
|
25 RUN_SCRIPT z:\TestData\scripts\te_esock_test_unloadesockForced.script |
|
26 |
|
27 //Configure commdb.This config file has explicit settings for IPv4 |
|
28 //ced -i z:\TestData\configs\DHCP\DHCPced_ip4.xml |
|
29 RUN_UTILS MkDir c:\private |
|
30 RUN_UTILS MkDir c:\private\10202be9 |
|
31 RUN_UTILS MkDir c:\private\10202be9\persists |
|
32 RUN_UTILS MakeReadWrite c:\private\10202be9\persists\cccccc00.cre |
|
33 |
|
34 RUN_UTILS CopyFile z:\testdata\configs\dhcp\cccccc00_dhcptest_ip4.cre c:\private\10202be9\persists\cccccc00.cre |
|
35 |
|
36 //Load the Server |
|
37 LOAD_SUITE DhcpTestServer |
|
38 |
|
39 RUN_UTILS MkDir c:\private |
|
40 RUN_UTILS MkDir c:\private\101f7989 |
|
41 RUN_UTILS MkDir c:\private\101f7989\esock |
|
42 RUN_UTILS MakeReadWrite c:\private\101f7989\esock\tcpip.ini |
|
43 RUN_UTILS DeleteFile c:\private\101f7989\esock\tcpip.ini |
|
44 RUN_UTILS CopyFile z:\private\101f7989\esock\tcpip.ini c:\private\101f7989\esock\tcpip.ini |
|
45 RUN_UTILS MakeReadWrite c:\private\101f7989\esock\tcpip.ini |
|
46 |
|
47 # Test the IPv4 DHCP client using the disabled linklocal option. |
|
48 run_test_step 1 DhcpTestServer SetIPv4LinkLocal z:\TestData\configs\DHCP\dhcptest.ini IPv4LinkLocalDisabled |
|
49 |
|
50 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPBasicInteractions1_ip4.script |
|
51 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPConfiguration2_ip4.script |
|
52 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPPREQ1647_48_ip4.script |
|
53 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPRenewAndRelease3_ip4.script |
|
54 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPDynamicInteraction4_ip4.script |
|
55 RUN_SCRIPT z:\TestData\scripts\DHCP\dhcpmanualtests5_ip4.script |
|
56 |
|
57 # Unload esock forcefully |
|
58 RUN_SCRIPT z:\TestData\scripts\te_esock_test_unloadesockForced.script |
|
59 |
|
60 //Load the Server |
|
61 LOAD_SUITE DhcpTestServer |
|
62 |
|
63 # Test the IPv4 DHCP client using the always linklocal option. |
|
64 run_test_step 1 DhcpTestServer SetIPv4LinkLocal z:\TestData\configs\DHCP\dhcptest.ini IPv4LinkLocalAlways |
|
65 |
|
66 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPBasicInteractions1_ip4.script |
|
67 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPConfiguration2_ip4.script |
|
68 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPPREQ1647_48_ip4.script |
|
69 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPRenewAndRelease3_ip4.script |
|
70 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPDynamicInteraction4_ip4.script |
|
71 RUN_SCRIPT z:\TestData\scripts\DHCP\dhcpmanualtests5_ip4.script |
|
72 |
|
73 # Unload esock forcefully |
|
74 RUN_SCRIPT z:\TestData\scripts\te_esock_test_unloadesockForced.script |
|
75 |
|
76 //Load the Server |
|
77 LOAD_SUITE DhcpTestServer |
|
78 |
|
79 # Test the IPv4 DHCP client using the conditional linklocal option. |
|
80 run_test_step 1 DhcpTestServer SetIPv4LinkLocal z:\TestData\configs\DHCP\dhcptest.ini IPv4LinkLocalConditional |
|
81 |
|
82 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPBasicInteractions1_ip4.script |
|
83 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPConfiguration2_ip4.script |
|
84 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPPREQ1647_48_ip4.script |
|
85 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPRenewAndRelease3_ip4.script |
|
86 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPDynamicInteraction4_ip4.script |
|
87 RUN_SCRIPT z:\TestData\scripts\DHCP\dhcpmanualtests5_ip4.script |
|
88 |
|
89 # Unload esock forcefully |
|
90 RUN_SCRIPT z:\TestData\scripts\te_esock_test_unloadesockForced.script |
|
91 |
|
92 //Load the Server |
|
93 LOAD_SUITE DhcpTestServer |
|
94 |
|
95 # Test the IPv4 DHCP client using the config daemon controlled linklocal option. |
|
96 run_test_step 1 DhcpTestServer SetIPv4LinkLocal z:\TestData\configs\DHCP\dhcptest.ini IPv4LinkLocalConfigDaemonControlled |
|
97 |
|
98 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPBasicInteractions1_ip4.script |
|
99 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPConfiguration2_ip4.script |
|
100 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPPREQ1647_48_ip4.script |
|
101 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPRenewAndRelease3_ip4.script |
|
102 RUN_SCRIPT z:\TestData\scripts\DHCP\DHCPDynamicInteraction4_ip4.script |
|
103 RUN_SCRIPT z:\TestData\scripts\DHCP\dhcpmanualtests5_ip4.script |