|
1 // |
|
2 // Copyright (c) 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 PRINT Integration test 5.16 - IR CSD Outgoing with Ipv6 and Linkfailure |
|
18 |
|
19 LOAD_SUITE TE_Esock |
|
20 LOAD_SUITE te_esockutil |
|
21 |
|
22 |
|
23 # ipsec dirs |
|
24 run_utils mkdir c:\system\data\security\ |
|
25 run_utils mkdir c:\system\data\security\secfiles\ |
|
26 |
|
27 # vpn test 1, the IAPs need to be configured for this in advance |
|
28 run_utils copyfile z:\TestData\configs\fbsd_tull.pol c:\system\data\security\secfiles\fbsd_tull.pol |
|
29 run_utils copyfile z:\TestData\configs\fbsd_tull.pin c:\system\data\security\secfiles\fbsd_tull.pin |
|
30 run_utils copyfile z:\TestData\configs\cisco_all.pol c:\system\data\security\secfiles\cisco_all.pol |
|
31 run_utils copyfile z:\TestData\configs\cisco_all.pin c:\system\data\security\secfiles\cisco_all.pin |
|
32 |
|
33 run_utils MakeReadWrite c:\system\data\security\secfiles\fbsd_tull.pin |
|
34 run_utils MakeReadWrite c:\system\data\security\secfiles\fbsd_tull.pol |
|
35 run_utils MakeReadWrite c:\system\data\security\secfiles\ciscol_all.pol |
|
36 run_utils MakeReadWrite c:\system\data\security\secfiles\cisco_all.pin |
|
37 |
|
38 run_utils copyfile z:\TestData\configs\algorithms.conf c:\system\data\security\secfiles\algorithms.conf |
|
39 run_utils MakeReadWrite c:\system\data\security\secfiles\algorithms.conf |
|
40 |
|
41 // open socket server |
|
42 RUN_TEST_STEP 100 TE_Esock OpenServer |
|
43 |
|
44 START_TESTCASE NET-Integration-IrCsd-1801 |
|
45 //! @SYMTestCaseID NET-Integration-IrCsd-1801 |
|
46 |
|
47 |
|
48 // open Ipv4 socket |
|
49 #RUN_TEST_STEP 100 TE_Esock Test1.2 z:\testdata\configs\integration\itest_s5\itest.ini |
|
50 |
|
51 // use Ipv4 socket connection |
|
52 #RUN_TEST_STEP 1000 TE_Esock SendData z:\testdata\configs\integration\itest_s5\ipv6.ini |
|
53 |
|
54 // close socket |
|
55 #RUN_TEST_STEP 100 TE_Esock Test1.15 z:\testdata\configs\integration\itest_s5\itest.ini |
|
56 |
|
57 // open Ipv6 socket |
|
58 RUN_TEST_STEP 100 TE_Esock Test1.2 z:\testdata\configs\integration\itest_s5\itest.ini |
|
59 |
|
60 // do test |
|
61 RUN_TEST_STEP 1000 TE_Esock SendData z:\testdata\configs\integration\itest_s5\ipv6.ini |
|
62 |
|
63 // simulate link failure - get the user to do this |
|
64 print User action required to break link |
|
65 print Press a key to continue when this has been done |
|
66 pause |
|
67 |
|
68 // check the link is close |
|
69 RUN_TEST_STEP 100 te_esockutil TE_ESockUtilIsNetworkNotActive |
|
70 |
|
71 |
|
72 RUN_TEST_STEP 100 TE_Esock Test1.15 z:\testdata\configs\integration\itest_s4\itest.ini |
|
73 TEST_COMPLETE IR_CSD_test5_16 |
|
74 END_TESTCASE NET-Integration-IrCsd-1801 |
|
75 |
|
76 // close socket server |
|
77 RUN_TEST_STEP 100 TE_Esock CloseServer |
|
78 |
|
79 // log result |
|
80 PRINT Result for Integration test 5.16 - IR CSD Outgoing with Ipv6 and Linkfailure |
|
81 |
|
82 |