Commit 10fbceff authored by garciay's avatar garciay
Browse files

Add TTCN-3 tests for CAM codec

parent 3b6ac530
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -11,11 +11,11 @@ module LibItsCam_EncdecDeclarations {
    external function fx_enc_CamReq (CamReq p) return bitstring
        with {extension "prototype(convert) encode(LibIts_Interface)"}
    
    external function fx_enc_CAM (CAM p) return octetstring
        with {extension "prototype(convert) encode(BER:BER_ENCODE_CER)"}
    external function fx_enc_CAM (CAM p) return bitstring
        with {extension "prototype(convert) encode(PER)"}//LibItsCam_asn1
    
    /*  TODO RGy function not implemented! (decvalue() not used by test suite @29-06-2016)
    /*  TODO RGy function not implemented! (decvalue() not used by test suite @29-06-2016) */
    external function fx_dec_CamReq (inout bitstring b, out CamReq p) return integer
        with {extension "prototype(sliding) decode(LibIts_Interface)"}
    */
   
} // End of module LibItsCam_EncdecDeclarations 
+13 −2
Original line number Diff line number Diff line
@@ -141,7 +141,17 @@ module LibItsCam_TestSystem {
                UInt32      its_aid optional
            }
            with {
                encode (msgIn) "LibItsCam_asn1"
                 variant ""
                 encode (msgIn) "PER"//LibItsCam_asn1
                 encode (gnNextHeader) "RAW"
                 encode (gnHeaderType) "RAW"
                 encode (gnHeaderSubtype) "RAW"
                 encode (gnLifetime) "RAW"
                 encode (gnTrafficClass) "RAW"
                 encode (btpDestinationPort) "RAW"
                 encode (btpInfo) "RAW"
                 encode (ssp) "RAW"
                 encode (its_aid) "RAW"
            }
                
            /**
@@ -151,7 +161,8 @@ module LibItsCam_TestSystem {
                CAM msgOut
            }
            with {
                encode (msgOut) "LibItsCam_asn1"
                 variant ""
                 encode (msgOut) "PER"//LibItsCam_asn1
            }
            
        } // end fa1Primitives