|
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.10 - IR CSD Outgoing terminated By Rnif::Stop with Ipv4 and Ipsec |
|
18 |
|
19 LOAD_SUITE TE_Esock |
|
20 LOAD_SUITE te_esockutil |
|
21 |
|
22 |
|
23 RUN_SCRIPT z:\TestData\scripts\te_esock_test_loadesock.script |
|
24 //below fails as '-i' confuses test tool, tried csd_ir.xml file, but test fails with it |
|
25 //CED z:\testdata\configs\integration\itest_s5\csd-ir.xml |
|
26 CED z:\testdata\configs\te_esock.xml |
|
27 //RUN_SCRIPT Z:\TestData\scripts\te_esock_test_unloadesockForced.script |
|
28 |
|
29 |
|
30 |
|
31 # ipsec dirs |
|
32 run_utils mkdir c:\system\data\security\ |
|
33 run_utils mkdir c:\system\data\security\secfiles\ |
|
34 |
|
35 # vpn test 1, the IAPs need to be configured for this in advance |
|
36 run_utils copyfile z:\TestData\configs\fbsd_tull.pol c:\system\data\security\secfiles\fbsd_tull.pol |
|
37 run_utils copyfile z:\TestData\configs\fbsd_tull.pin c:\system\data\security\secfiles\fbsd_tull.pin |
|
38 run_utils copyfile z:\TestData\configs\cisco_all.pol c:\system\data\security\secfiles\cisco_all.pol |
|
39 run_utils copyfile z:\TestData\configs\cisco_all.pin c:\system\data\security\secfiles\cisco_all.pin |
|
40 |
|
41 run_utils MakeReadWrite c:\system\data\security\secfiles\fbsd_tull.pin |
|
42 run_utils MakeReadWrite c:\system\data\security\secfiles\fbsd_tull.pol |
|
43 run_utils MakeReadWrite c:\system\data\security\secfiles\ciscol_all.pol |
|
44 run_utils MakeReadWrite c:\system\data\security\secfiles\cisco_all.pin |
|
45 |
|
46 run_utils copyfile z:\TestData\configs\algorithms.conf c:\system\data\security\secfiles\algorithms.conf |
|
47 run_utils MakeReadWrite c:\system\data\security\secfiles\algorithms.conf |
|
48 |
|
49 // open socket server |
|
50 RUN_TEST_STEP 100 TE_Esock OpenServer |
|
51 |
|
52 START_TESTCASE NET-Integration-IrCsd-1201 |
|
53 //! @SYMTestCaseID NET-Integration-IrCsd-1201 |
|
54 |
|
55 |
|
56 // open Ipv4 socket |
|
57 RUN_TEST_STEP 100 TE_Esock Test1.2 z:\testdata\configs\integration\itest_s5\itest.ini |
|
58 |
|
59 // use Ipv4 socket |
|
60 RUN_TEST_STEP 1000 TE_Esock SendData z:\testdata\configs\integration\itest_s5\ipv4.ini |
|
61 |
|
62 // close using rnif::stop |
|
63 RUN_TEST_STEP 3000 te_esockutil TE_ESockUtilStopAllInterfaces |
|
64 |
|
65 // check the network is NOT active |
|
66 RUN_TEST_STEP 100 te_esockutil TE_ESockUtilIsNetworkNotActive |
|
67 |
|
68 // close socket |
|
69 RUN_TEST_STEP 100 TE_Esock Test1.15 z:\testdata\configs\integration\itest_s5\itest.ini |
|
70 TEST_COMPLETE IR_CSD_test5_10 |
|
71 END_TESTCASE NET-Integration-IrCsd-1201 |
|
72 |
|
73 // close socket server |
|
74 RUN_TEST_STEP 100 TE_Esock CloseServer |
|
75 |
|
76 // log result |
|
77 PRINT Result for Integration test 5.10 - IR CSD Outgoing terminated By Rnif::Stop with Ipv4 and Ipsec |
|
78 |
|
79 |