VTS单模块测试:
./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationTokenTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationOperationsTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ExportKeyTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportWrappedKeyTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/MaxOperationsTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AddEntropyTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/KeyDeletionTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/UpgradeKeyTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ClearOperationsTest*/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/TransportLimitTest*/0_default
VTS单用例测试:
如:
./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaGetKeyCharacteristicsRequiresCorrectAppIdAppData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaUseRequiresCorrectAppIdAppData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.NoUserConfirmation/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.EcGetKeyCharacteristicsRequiresCorrectAppIdAppData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.EcUseRequiresCorrectAppIdAppData/0_default
VTS测试包整测:
单测命令集合:
./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest.GetParameters/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest.ComputeSharedHmac/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest.ComputeSharedHmacCorruptNonce/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest.ComputeSharedHmacCorruptSeed/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationTokenTest.TestCreation/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationTokenTest.MacChangesOnChangingTimestamp/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.Rsa/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.NoInvalidRsaSizes/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.RsaNoDefaultSize/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.Ecdsa/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.EcdsaDefaultSize/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.EcdsaInvalidSize/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.EcdsaMismatchKeySize/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.EcdsaAllValidSizes/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.EcdsaAllValidCurves/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.Hmac/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.HmacCheckKeySizes/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.HmacCheckMinMacLengths/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.HmacMultipleDigests/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/NewKeyGenerationTest.HmacDigestNone/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaGetKeyCharacteristicsRequiresCorrectAppIdAppData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaUseRequiresCorrectAppIdAppData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaPssSha256Success/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaPaddingNoneDoesNotAllowOther/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.NoUserConfirmation/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaPkcs1Sha256Success/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaPkcs1NoDigestSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaPkcs1NoDigestTooLong/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaPssSha512TooSmallKey/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaNoPaddingTooLong/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaAbort/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaUnsupportedPadding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaNoDigest/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaNoPadding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaTooShortMessage/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaSignWithEncryptionKey/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.RsaSignTooLargeMessage/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.EcdsaAllSizesAndHashes/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.EcdsaAllCurves/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.EcdsaNoDigestHugeData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.EcGetKeyCharacteristicsRequiresCorrectAppIdAppData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.EcUseRequiresCorrectAppIdAppData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.AesEcbSign/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.HmacAllDigests/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.HmacSha256TooLargeMacLength/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.HmacSha256TooSmallMacLength/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.HmacRfc4231TestCase3/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/SigningOperationsTest.HmacRfc4231TestCase5/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationOperationsTest.RsaSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationOperationsTest.RsaAllPaddingsAndDigests/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationOperationsTest.EcdsaAllDigestsAndCurves/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/VerificationOperationsTest.HmacSigningKeyCannotVerify/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ExportKeyTest.RsaUnsupportedKeyFormat/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ExportKeyTest.RsaCorruptedKeyBlob/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ExportKeyTest.EcCorruptedKeyBlob/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ExportKeyTest.AesKeyUnexportable/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.RsaSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.RsaKeySizeMismatch/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.RsaPublicExponentMismatch/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.EcdsaSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.EcdsaP256RFC5915Success/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.EcdsaP256SEC1Success/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.Ecdsa521Success/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.EcdsaSizeMismatch/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.EcdsaCurveMismatch/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.AesSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportKeyTest.HmacKeySuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportWrappedKeyTest.Success/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportWrappedKeyTest.SuccessMasked/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportWrappedKeyTest.WrongMask/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ImportWrappedKeyTest.WrongPurpose/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaNoPaddingSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaNoPaddingShortMessage/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaNoPaddingTooLong/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaNoPaddingTooLarge/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaOaepSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaOaepInvalidDigest/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaOaepDecryptWithWrongDigest/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaOaepTooLarge/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaPkcs1Success/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.RsaPkcs1TooLarge/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.EcdsaEncrypt/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.HmacEncrypt/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesEcbRoundTripSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesWrongMode/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesWrongPurpose/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesEcbNoPaddingWrongInputSize/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesEcbPkcs7Padding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesEcbWrongPadding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesEcbPkcs7PaddingCorrupted/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesCtrRoundTripSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesIncremental/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesCtrSp80038aTestVector/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesCtrIncompatiblePaddingMode/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesCtrInvalidCallerNonce/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesCbcRoundTripSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesCallerNonce/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesCallerNonceProhibited/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmRoundTripSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmRoundTripWithDelaySuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmDifferentNonces/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmTooShortTag/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmTooShortTagOnDecrypt/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmCorruptKey/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmAadNoData/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmMultiPartAad/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmAadOutOfOrder/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmBadAad/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmWrongNonce/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.AesGcmCorruptTag/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesEcbRoundTripSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesEcbNotAuthorized/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesEcbPkcs7Padding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesEcbNoPaddingKeyWithPkcs7Padding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesEcbPkcs7PaddingCorrupted/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesTestVector/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCbcRoundTripSuccess/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCallerIv/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCallerNonceProhibited/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCbcNotAuthorized/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCbcNoPaddingWrongInputSize/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCbcPkcs7Padding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCbcNoPaddingKeyWithPkcs7Padding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCbcPkcs7PaddingCorrupted/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/EncryptionOperationsTest.TripleDesCbcIncrementalNoPadding/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/MaxOperationsTest.TestLimitAes/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/MaxOperationsTest.TestLimitRsa/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AddEntropyTest.AddEntropy/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AddEntropyTest.AddEmptyEntropy/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AddEntropyTest.AddLargeEntropy/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest.RsaAttestation/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest.RsaAttestationRequiresAppId/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest.EcAttestation/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest.EcAttestationRequiresAttestationAppId/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest.AttestationApplicationIDLengthProperlyEncoded/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest.AesAttestation/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/AttestationTest.HmacAttestation/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/KeyDeletionTest.DeleteKey/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/KeyDeletionTest.DeleteInvalidKey/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/KeyDeletionTest.DeleteAllKeys/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/UpgradeKeyTest.UpgradeKey/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/ClearOperationsTest.TooManyOperations/0_default ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/TransportLimitTest.LargeFinishInput/0_default
注意事项:
部分用例测试需要预置google key,以及设备要处于locked状态。
标签:0TargetTest,VtsHalKeymasterV4,--,gtest,filter,default,VTS,测试用例,keymaster4.0 From: https://www.cnblogs.com/xiululu/p/17219112.html