aboutsummaryrefslogtreecommitdiffstats
path: root/libparc/parc/security/test/CMakeLists.txt
blob: 40a5eb709d68f9a6e9f29dd47ceac838f6ae0ef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
set(TestsExpectedToPass
  test_parc_Certificate
  test_parc_CertificateFactory
  test_parc_CertificateType
  test_parc_ContainerEncoding
  test_parc_CryptoCache
  test_parc_CryptoHash
  test_parc_CryptoHashType
  test_parc_CryptoHasher
  test_parc_CryptoSuite
  test_parc_DiffieHellman
  test_parc_DiffieHellmanKeyShare
  test_parc_Identity
  test_parc_IdentityFile
  test_parc_InMemoryVerifier
  test_parc_InMemoryVerifierECDSA
  test_parc_Key
  test_parc_KeyId
  test_parc_KeyStore
  test_parc_SecureRandom
  test_parc_Pkcs12KeyStore
  test_parc_Pkcs12KeyStoreECDSA
  test_parc_PublicKeySigner
  test_parc_PublicKeyECSigner
  test_parc_SymmetricKeySigner
  test_parc_SymmetricKeyStore
  test_parc_Security
  test_parc_Signature
  test_parc_Signer
  test_parc_SignerEC
  test_parc_SigningAlgorithm
  test_parc_Verifier
  test_parc_X509Certificate
  )

set(EXTRA_DATA_FILES
	README.digests
	README.keystore
	README.symmetric
	test_crt.der
	test_crt_der.bin
	test_crt_sha256.bin
	test_der.bin
	test_digest_bytes_128.bin
	test_digest_bytes_128.sha256
	test_digest_bytes_128.sha512
	test.pem
	test_pubkey.bin
	test_pubkey.der
	test_pubkey.pem
	test_random_bytes
	test_random_bytes.sig
	test_random_bytes.sig_ec
	test_random_bytes.hmac_sha256
	test_random_bytes.hmac_sha512
	test_rsa.p12
	test_rsa_crt.der
	test_rsa_crt_sha256.bin
	test_rsa_key.der
	test_rsa_key.pem
	test_rsa_pub.der
	test_rsa_pub.pem
	test_rsa_pub_sha256.bin
	test_symmetric_key.bin
	test_symmetric_key.sha256
	test_ec.p12
	test_ec_crt.der
	test_ec_crt_sha256.bin
	test_ec_key.der
	test_ec_key.pem
	test_ec_pub.der
	test_ec_pub.pem
	test_ec_pub_sha256.bin
	)

foreach(data_file ${EXTRA_DATA_FILES})
  configure_file(${data_file} ${data_file} COPYONLY)
endforeach()


# Enable gcov output for the tests
add_definitions(--coverage)
set(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} " --coverage")


foreach(test ${TestsExpectedToPass})
   AddTest(${test})
endforeach()