Commit 81a1888e authored by ASN.1 Documenter's avatar ASN.1 Documenter
Browse files

Initial

parent f55fee23
Loading
Loading
Loading
Loading

.gitmodules

0 → 100644
+4 −0
Original line number Diff line number Diff line
[submodule "lib/asn1"]
	path = lib/asn1
	url = https://forge.etsi.org/rep/ITS/asn1/cam_en302637_2.git
	branch = testing

ItsCam_TestCases.ttcn

0 → 100755
+2434 −0

File added.

Preview size limit exceeded, changes collapsed.

+121 −0
Original line number Diff line number Diff line
/**
 *    @author   ETSI / STF405 / STF449 / STF484 / STF517
 *    @version  $Url: https://oldforge.etsi.org/svn/ITS/tags/20170222_STF527_Final/ttcn/AtsCAM/ItsCam_TestControl.ttcn $
 *              $Id: ItsCam_TestControl.ttcn 2655 2017-01-26 10:46:08Z filatov $
 *    @desc     Test Control file for CAM
 *    @copyright   ETSI Copyright Notification
 *                 No part may be reproduced except as authorized by written permission.
 *                 The copyright and the foregoing restriction extend to reproduction in all media.
 *                 All rights reserved.
*
 */
module ItsCam_TestControl {
    
    // ATS CAM
    import from ItsCam_TestCases all;
    
    // LibIts
    import from LibItsCam_Pics all;
    
    // Test Execution
    control {
        
        if(PICS_CAM_GENERATION) {
            execute(TC_CAM_MSD_FMT_BV_01());
            if (not PICS_RSU) {
                execute(TC_CAM_MSD_FMT_BV_02());
                execute(TC_CAM_MSD_FMT_BV_03());
                execute(TC_CAM_MSD_FMT_BV_04());
                execute(TC_CAM_MSD_FMT_BV_05());
                execute(TC_CAM_MSD_INA_BV_01_01());
                execute(TC_CAM_MSD_INA_BV_01_02());
                execute(TC_CAM_MSD_INA_BV_01_03());
                execute(TC_CAM_MSD_INA_BV_01_04());
                execute(TC_CAM_MSD_INA_BV_01_05());
                execute(TC_CAM_MSD_INA_BV_01_06());
                execute(TC_CAM_MSD_INA_BV_01_07());
                execute(TC_CAM_MSD_INA_BV_01_08());
                execute(TC_CAM_MSD_INA_BV_01_09());
                execute(TC_CAM_MSD_INA_BV_01_10());
                execute(TC_CAM_MSD_INA_BV_01_11());
                execute(TC_CAM_MSD_INA_BV_01_12());
                execute(TC_CAM_MSD_INA_BV_01_13());
                execute(TC_CAM_MSD_INA_BV_01_14());
                execute(TC_CAM_MSD_INA_BV_01_15());
                execute(TC_CAM_MSD_INA_BV_01_16());
                execute(TC_CAM_MSD_INA_BV_01_17());
                execute(TC_CAM_MSD_INA_BV_01_18());
                execute(TC_CAM_MSD_INA_BV_01_19());
                execute(TC_CAM_MSD_INA_BV_01_20());
                execute(TC_CAM_MSD_INA_BV_01_21());
                execute(TC_CAM_MSD_INA_BV_01_22());
                execute(TC_CAM_MSD_INA_BV_01_23());
                execute(TC_CAM_MSD_INA_BV_01_24());
                execute(TC_CAM_MSD_INA_BV_01_25());
                execute(TC_CAM_MSD_INA_BV_01_26());
                execute(TC_CAM_MSD_INA_BV_01_27());
                execute(TC_CAM_MSD_INA_BV_01_28());
                execute(TC_CAM_MSD_INA_BV_01_29());
                execute(TC_CAM_MSD_INA_BV_01_30());
                execute(TC_CAM_MSD_INA_BV_01_31());
                execute(TC_CAM_MSD_INA_BV_01_32());
                execute(TC_CAM_MSD_INA_BV_01_33());
                execute(TC_CAM_MSD_INA_BV_01_34());
                execute(TC_CAM_MSD_INA_BV_01_35());
            }
            if (PICS_PUBLICTRANS) {
                execute(TC_CAM_MSD_INA_BV_02());
            }
            if (PICS_SPECIALTRANS) {
                execute(TC_CAM_MSD_INA_BV_03());
            }
            if (PICS_DANGEROUSGOODS) {
                execute(TC_CAM_MSD_INA_BV_04());
            }
            if (PICS_ROADWORKS) {
                execute(TC_CAM_MSD_INA_BV_05());
            }
            if (PICS_RESCUE) {
                execute(TC_CAM_MSD_INA_BV_06());
            }
            if (PICS_EMERGENCY) {
                execute(TC_CAM_MSD_INA_BV_07());
            }
            if (PICS_SAFETY_CAR) {
                execute(TC_CAM_MSD_INA_BV_08());
            }
            
            execute(TC_CAM_MSD_GFQ_TI_01());
            execute(TC_CAM_MSD_GFQ_TI_02());
            execute(TC_CAM_MSD_GFQ_TI_03());
            execute(TC_CAM_MSD_GFQ_BV_04());
            execute(TC_CAM_MSD_GFQ_BV_05());
            execute(TC_CAM_MSD_GFQ_BV_06());
            execute(TC_CAM_MSD_GFQ_TI_07());
            execute(TC_CAM_MSD_GFQ_TI_08());
            
            execute(TC_CAM_MSD_PAR_BV_01());
            execute(TC_CAM_MSD_PAR_BV_02());
            execute(TC_CAM_MSD_PAR_BV_03());
            
            if (PICS_IS_IUT_SECURED) {
                if (PICS_PUBLICTRANS and PICS_SPECIALVEHICLECONTAINER) {
                    execute(TC_CAM_MSD_SSP_BO_02());
                }
                if (PICS_SPECIALTRANS and PICS_SPECIALVEHICLECONTAINER) {
                    execute(TC_CAM_MSD_SSP_BO_03());
                }
            }
        }
        
        if(PICS_CAM_RECEPTION) {
            execute(TC_CAM_MSP_BV_01());
            if (PICS_IS_IUT_SECURED) {
                execute(TC_CAM_MSP_SSP_BV_02());
                execute(TC_CAM_MSP_SSP_BV_03());
            }
        }
        
    }
    
} // end ItsCam_TestControl
 No newline at end of file
+3270 −0

File added.

Preview size limit exceeded, changes collapsed.

+40 −0
Original line number Diff line number Diff line
module LibItsCam_EncdecDeclarations {

    // LibIts
    import from CAM_PDU_Descriptions language "ASN.1:1997" all;
    
    // LibItsCam
    import from LibItsCam_TypesAndValues all; 
    import from LibItsCam_TestSystem all; 

    external function fx_enc_CamReq (CamReq p) return bitstring
        with {extension "prototype(convert) encode(LibIts_Interface)"}
    
    external function fx_dec_CamReq (inout bitstring b, out CamReq p) return integer
        with {extension "prototype(sliding) decode(LibIts_Interface)"}

    external function fx_dec_CamInd (inout bitstring b, out CamInd p) return integer
        with {extension "prototype(sliding) decode(LibIts_Interface)"}
        
    external function fx_enc_CAM (CAM p) return bitstring
        with {extension "prototype(convert) encode(PER)"}

    external function fx_dec_CAM (inout bitstring b, out CAM p) return integer
        with {extension "prototype(sliding) decode(PER)"}

    external function fx_enc_UtCamInitialize (UtCamInitialize p) return bitstring
        with {extension "prototype(convert) encode(UpperTester)"}
    
    external function fx_enc_UtCamChangePosition (UtCamChangePosition p) return bitstring
        with {extension "prototype(convert) encode(UpperTester)"}
    
    external function fx_enc_UtCamTrigger (UtCamTrigger p) return bitstring
        with {extension "prototype(convert) encode(UpperTester)"}
    
    external function fx_dec_UtCamResults (inout bitstring b, out UtCamResults p) return integer
        with {extension "prototype(sliding) decode(UpperTester)"}
    
    external function fx_dec_UtCamEventInd (inout bitstring b, out UtCamEventInd p) return integer
        with {extension "prototype(sliding) decode(UpperTester)"}
    
} // End of module LibItsCam_EncdecDeclarations 
Loading