os/security/contentmgmt/cafstreamingsupport/test/tscaf/scripts/tscaf_oom.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 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".
     8 //
     9 // Initial Contributors:
    10 // Nokia Corporation - initial contribution.
    11 //
    12 // Contributors:
    13 //
    14 // Description:
    15 //
    16 // Streaming CAF "Out of Memory" Tests
    17 
    18 PRINT Run PREQ782 Streaming CAF OOM Tests
    19 
    20 // Load Suite
    21 LOAD_SUITE tscaf
    22 
    23 
    24 //! @SYMTestCaseID 		SEC-SCAF-OOM-0001
    25 //! @SYMTestCaseDesc 		StartupComms
    26 
    27 START_TESTCASE SEC-SCAF-OOM-0001
    28 RUN_TEST_STEP 100 tscaf StartupCommsStep
    29 END_TESTCASE SEC-SCAF-OOM-0001
    30 
    31 
    32 // Note: For test case descriptions, please refer to the corresponding tscaf.script file
    33 
    34 
    35 //********************** SEC-SCAF-A : CONSUMER INTERFACE  **********************
    36 
    37  
    38 //! @SYMTestCaseID 		SEC-SCAF-OOM-A001
    39 //! @SYMTestCaseDesc 		(keystreamdecoder_positiveconstruct_OOM)
    40 
    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
    45 
    46 
    47 
    48 //! @SYMTestCaseID 		SEC-SCAF-OOM-A002
    49 //! @SYMTestCaseDesc 		(keystreamdecoder_negativeconstruct_OOM)
    50 
    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
    54 
    55 
    56 
    57 //! @SYMTestCaseID 		SEC-SCAF-OOM-A004
    58 //! @SYMTestCaseDesc 		(keystreamdecoder_positivequery_OOM)
    59 
    60 START_TESTCASE SEC-SCAF-OOM-A004
    61 
    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
    65 
    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
    69 
    70 END_TESTCASE SEC-SCAF-OOM-A004
    71 
    72 
    73 
    74 //! @SYMTestCaseID 		SEC-SCAF-OOM-A005
    75 //! @SYMTestCaseDesc 		(keystreamdecoder_missingrights_OOM)
    76 
    77 START_TESTCASE SEC-SCAF-OOM-A005
    78 
    79 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_None
    80 
    81 RUN_TEST_STEP !Result=-17452 tscaf SCAFKeyStreamDecoderAttributes z:\tcaf\tscaf\tscaf.ini keystreamdecoder_missingrights_OOM
    82 
    83 END_TESTCASE SEC-SCAF-OOM-A005
    84 
    85 
    86 
    87 //! @SYMTestCaseID 		SEC-SCAF-OOM-A006
    88 //! @SYMTestCaseDesc 		(keystreamdecoder_expiredrights_OOM)
    89 
    90 START_TESTCASE SEC-SCAF-OOM-A006
    91 
    92 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_Expired
    93 
    94 RUN_TEST_STEP !Result=-17451 tscaf SCAFKeyStreamDecoderAttributes z:\tcaf\tscaf\tscaf.ini keystreamdecoder_expiredrights_OOM
    95 
    96 END_TESTCASE SEC-SCAF-OOM-A006
    97 
    98 
    99 
   100 //! @SYMTestCaseID 		SEC-SCAF-OOM-A008
   101 //! @SYMTestCaseDesc 		(multikeystreamdecoders_OOM)
   102 
   103 START_TESTCASE SEC-SCAF-OOM-A008
   104 
   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
   107 
   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
   110 
   111 // 2 Key Stream Decoders, Invoking different stream agents
   112 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini multikeystreamdecoders_singlethread_multiagents_OOM
   113 
   114 END_TESTCASE SEC-SCAF-OOM-A008
   115 
   116 
   117 
   118 //************	SEC-SCAF-C : INTEROPERABILITY WITH DECODING STACK   ***********
   119 
   120 
   121 //! @SYMTestCaseID 		SEC-SCAF-OOM-C001
   122 //! @SYMTestCaseDesc 		(keystreamsinks_OOM)
   123 
   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
   127 
   128 
   129 
   130 //! @SYMTestCaseID 		SEC-SCAF-OOM-C002
   131 //! @SYMTestCaseDesc 		(concurrent_keystreamsinks_OOM)
   132 
   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
   136 
   137 
   138 
   139 //********************** SEC-SCAF-D : POST-ACQUISITION  **********************
   140 
   141 
   142 //! @SYMTestCaseID 		SEC-SCAF-OOM-D001
   143 //! @SYMTestCaseDesc 		(postacqusition_OOM)
   144 
   145 START_TESTCASE SEC-SCAF-OOM-D001
   146 
   147 RUN_TEST_STEP 100 tscaf SCAFPostAcquisition z:\tcaf\tscaf\tscaf.ini post_acquisition_OOM
   148 
   149 RUN_TEST_STEP 100 tscaf SCAFPostAcquisition z:\tcaf\tscaf\tscaf.ini post_acquisition_create_outputs_OOM
   150 
   151 END_TESTCASE SEC-SCAF-OOM-D001
   152 
   153 
   154 
   155 //********************** SEC-SCAF-E : INTEROPERABILITY WITH DECODING STACK - IPSEC    ***********
   156 
   157 RUN_SCRIPT z:\tcaf\tscaf\tscafipsec_oom.script
   158 
   159 
   160 
   161 //********************** SEC-SCAF-H : REFERENCE AGENT TEST  **********************
   162 
   163 //! @SYMTestCaseID 		SEC-SCAF-OOM-H001
   164 //! @SYMTestCaseDesc 		(referenceagent_OOM)
   165 
   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
   169 
   170