| /////////////////////////////////////////////////////////////////////////////// |
| // // |
| // Copyright (c) 2000-2017 Ericsson Telecom AB // |
| // // |
| // All rights reserved. This program and the accompanying materials // |
| // are made available under the terms of the Eclipse Public License v2.0 // |
| // which accompanies this distribution, and is available at // |
| // https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html // |
| /////////////////////////////////////////////////////////////////////////////// |
| |
| /////////////////////////////////////////////////////////// |
| // Module: EPTF_LGenBasePerformTest_MemLoadgenDefinitions |
| // |
| // Purpose: |
| // This module provides functions for testing LGenBase |
| // |
| // Module depends on: |
| // - |
| // |
| // Current Owner: |
| // Laszlo Skumat (ELSZSKU) |
| // |
| // Last Review Date: |
| // 2008-09-11 |
| // |
| // Detailed Comments: |
| // Provide functions to test LGenBase |
| // |
| // |
| /////////////////////////////////////////////////////////////// |
| module EPTF_LGenBasePerformTest_MemLoadgenDefinitions |
| {
|
|
|
| //import from LOADMEASasp_PortType all; |
| //import from LOADMEASasp_Types all; |
| import from EPTF_CLL_LGenBase_Definitions all; |
| import from EPTF_CLL_LGenBaseStats_Definitions all; |
| import from EPTF_LGenBasePerformTest_MemMessages all |
| import from EPTF_LGenBasePerformTest_MTASDefinitions all |
| |
| #ifdef R3 |
| import from EPTF_CLL_LGenBase_ConfigDefinitions all; |
| import from EPTF_CLL_Common_Definitions all |
| #endif |
| #ifdef R2 |
| import from EPTF_CLL_Definitions all |
| #endif |
| |
| |
| type record of EPTF_FloatList EPTF_FloatListArray; |
| |
| type component EPTF_LGenBasePerformTest_CT extends EPTF_LGenBasePerformTest_MTAS_CT, EPTF_LGenBaseStats_CT { |
| var default v_LGenBasePerformTest_receiveControlMsg := null |
| var charstring v_LGenBasePerformTest_pID |
| var boolean v_LGenBasePerformTest_testFinished := false; |
| var integer v_LGenBasePerformTest_behav := -1; |
| var float v_LGenBasePerformTest_randomCumulated := 0.0; |
| var integer v_LGenBasePerformTest_randomCalls := 0; |
| var EPTF_FloatListArray v_LGenBasePerformTest_cpuUsage := {} |
| const integer c_LGenBasePerformTest_memPhysOffset := 0 |
| const integer c_LGenBasePerformTest_memFreeOffset := 1 |
| var integer v_LGenBasePerformTest_declaredFSMTables := 0 |
| port ControlMeasure_PT v_controlPort; |
| |
| var MeasureControl_MgmtMsg v_incControlMsg; |
| |
| var integer v_numberOfEntities := -1; |
| |
| timer t_wait := 3.0; |
| } |
| |
| template EPTF_LGenBase_CompactFsmTable t_LGenBasePerformTest_simpleResponse( |
| in charstring pl_fsmName, |
| in EPTF_LGenBase_TestStepFunction_FT pl_respStep) := { |
| name := pl_fsmName, |
| stateList:= {"idle"}, |
| timerList := {}, |
| table := { |
| { |
| eventToListen := {c_EPTF_LGenBase_bIdx,c_EPTF_LGenBase_inputIdx_testMgmt_startTC,fsm}, |
| cellRow := { |
| {{ |
| {pl_respStep, {}} |
| }, omit, omit} |
| } |
| } |
| } |
| } |
| |
| const charstring c_LGenBasePerformTest_fsmNameSimpleResponseSucc := "FSM_Tc_Succ" |
| const charstring c_LGenBasePerformTest_fsmNameSimpleResponseFail := "FSM_Tc_Fail" |
|
|
| } // end of module
|