Update contrib.
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 the License "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".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
16 // Streaming CAF "Out of Memory" Tests
18 PRINT Run PREQ782 Streaming CAF OOM Tests
24 //! @SYMTestCaseID SEC-SCAF-OOM-0001
25 //! @SYMTestCaseDesc StartupComms
27 START_TESTCASE SEC-SCAF-OOM-0001
28 RUN_TEST_STEP 100 tscaf StartupCommsStep
29 END_TESTCASE SEC-SCAF-OOM-0001
32 // Note: For test case descriptions, please refer to the corresponding tscaf.script file
35 //********************** SEC-SCAF-A : CONSUMER INTERFACE **********************
38 //! @SYMTestCaseID SEC-SCAF-OOM-A001
39 //! @SYMTestCaseDesc (keystreamdecoder_positiveconstruct_OOM)
41 START_TESTCASE SEC-SCAF-OOM-A001
42 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_Program
43 RUN_TEST_STEP 100 tscaf SCAFKeyStreamDecoderConstruct z:\tcaf\tscaf\tscaf.ini keystreamdecoder_positiveconstruct_OOM
44 END_TESTCASE SEC-SCAF-OOM-A001
48 //! @SYMTestCaseID SEC-SCAF-OOM-A002
49 //! @SYMTestCaseDesc (keystreamdecoder_negativeconstruct_OOM)
51 START_TESTCASE SEC-SCAF-OOM-A002
52 RUN_TEST_STEP !Result=-17453 100 tscaf SCAFKeyStreamDecoderConstruct z:\tcaf\tscaf\tscaf.ini keystreamdecoder_negativeconstruct_OOM
53 END_TESTCASE SEC-SCAF-OOM-A002
57 //! @SYMTestCaseID SEC-SCAF-OOM-A004
58 //! @SYMTestCaseDesc (keystreamdecoder_positivequery_OOM)
60 START_TESTCASE SEC-SCAF-OOM-A004
62 // Copy the necessary 'Program' Protected rights objects into the stream agent's private directory
63 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_Program
64 RUN_TEST_STEP tscaf SCAFKeyStreamDecoderAttributes z:\tcaf\tscaf\tscaf.ini keystreamdecoder_positivequery_programprotectedRO_OOM
66 // Copy the necessary 'Service' Protected rights objects into the stream agent's private directory
67 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_Service
68 RUN_TEST_STEP tscaf SCAFKeyStreamDecoderAttributes z:\tcaf\tscaf\tscaf.ini keystreamdecoder_positivequery_serviceprotectedRO_OOM
70 END_TESTCASE SEC-SCAF-OOM-A004
74 //! @SYMTestCaseID SEC-SCAF-OOM-A005
75 //! @SYMTestCaseDesc (keystreamdecoder_missingrights_OOM)
77 START_TESTCASE SEC-SCAF-OOM-A005
79 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_None
81 RUN_TEST_STEP !Result=-17452 tscaf SCAFKeyStreamDecoderAttributes z:\tcaf\tscaf\tscaf.ini keystreamdecoder_missingrights_OOM
83 END_TESTCASE SEC-SCAF-OOM-A005
87 //! @SYMTestCaseID SEC-SCAF-OOM-A006
88 //! @SYMTestCaseDesc (keystreamdecoder_expiredrights_OOM)
90 START_TESTCASE SEC-SCAF-OOM-A006
92 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_Expired
94 RUN_TEST_STEP !Result=-17451 tscaf SCAFKeyStreamDecoderAttributes z:\tcaf\tscaf\tscaf.ini keystreamdecoder_expiredrights_OOM
96 END_TESTCASE SEC-SCAF-OOM-A006
100 //! @SYMTestCaseID SEC-SCAF-OOM-A008
101 //! @SYMTestCaseDesc (multikeystreamdecoders_OOM)
103 START_TESTCASE SEC-SCAF-OOM-A008
105 // Copy the necessary rights objects into the stream agent's private directory
106 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_ServiceProgram
108 // 2 Key Stream Decoders, Invoking the same stream agent
109 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini multikeystreamdecoders_singlethread_singleagent_OOM
111 // 2 Key Stream Decoders, Invoking different stream agents
112 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini multikeystreamdecoders_singlethread_multiagents_OOM
114 END_TESTCASE SEC-SCAF-OOM-A008
118 //************ SEC-SCAF-C : INTEROPERABILITY WITH DECODING STACK ***********
121 //! @SYMTestCaseID SEC-SCAF-OOM-C001
122 //! @SYMTestCaseDesc (keystreamsinks_OOM)
124 START_TESTCASE SEC-SCAF-OOM-C001
125 RUN_TEST_STEP 100 tscaf SCAFKeyStreamSink z:\tcaf\tscaf\tscaf.ini sdp_service_protected_OOM
126 END_TESTCASE SEC-SCAF-OOM-C001
130 //! @SYMTestCaseID SEC-SCAF-OOM-C002
131 //! @SYMTestCaseDesc (concurrent_keystreamsinks_OOM)
133 START_TESTCASE SEC-SCAF-OOM-C002
134 RUN_TEST_STEP 150 tscaf SCAFConcurrentKeyStreamSinks z:\tcaf\tscaf\tscaf.ini concurrent_keystreamsinks_OOM
135 END_TESTCASE SEC-SCAF-OOM-C002
139 //********************** SEC-SCAF-D : POST-ACQUISITION **********************
142 //! @SYMTestCaseID SEC-SCAF-OOM-D001
143 //! @SYMTestCaseDesc (postacqusition_OOM)
145 START_TESTCASE SEC-SCAF-OOM-D001
147 RUN_TEST_STEP 100 tscaf SCAFPostAcquisition z:\tcaf\tscaf\tscaf.ini post_acquisition_OOM
149 RUN_TEST_STEP 100 tscaf SCAFPostAcquisition z:\tcaf\tscaf\tscaf.ini post_acquisition_create_outputs_OOM
151 END_TESTCASE SEC-SCAF-OOM-D001
155 //********************** SEC-SCAF-E : INTEROPERABILITY WITH DECODING STACK - IPSEC ***********
157 RUN_SCRIPT z:\tcaf\tscaf\tscafipsec_oom.script
161 //********************** SEC-SCAF-H : REFERENCE AGENT TEST **********************
163 //! @SYMTestCaseID SEC-SCAF-OOM-H001
164 //! @SYMTestCaseDesc (referenceagent_OOM)
166 START_TESTCASE SEC-SCAF-OOM-H001
167 RUN_TEST_STEP 100 tscaf SCAFRefAgent z:\tcaf\tscaf\tscaf.ini reference_agent_OOM
168 END_TESTCASE SEC-SCAF-OOM-H001