crypto crypto-openssl: support hashing operations
[vpp.git] / src / plugins / unittest / CMakeLists.txt
1 # Copyright (c) 2018-2019 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 set(chacha20_poly1305)
15 if (OPENSSL_VERSION VERSION_GREATER_EQUAL 1.1.0)
16     set(chacha20_poly1305 crypto/chacha20_poly1305.c)
17 endif()
18
19 add_vpp_plugin(unittest
20   SOURCES
21   api_fuzz_test.c
22   bier_test.c
23   bihash_test.c
24   bitmap_test.c
25   crypto/aes_cbc.c
26   crypto/aes_ctr.c
27   crypto/aes_gcm.c
28   ${chacha20_poly1305}
29   crypto/rfc2202_hmac_md5.c
30   crypto/rfc2202_hmac_sha1.c
31   crypto/rfc4231.c
32   crypto/sha.c
33   crypto_test.c
34   fib_test.c
35   interface_test.c
36   ipsec_test.c
37   llist_test.c
38   mactime_test.c
39   mem_bulk_test.c
40   mfib_test.c
41   mpcap_node.c
42   policer_test.c
43   punt_test.c
44   rbtree_test.c
45   session_test.c
46   sparse_vec_test.c
47   string_test.c
48   svm_fifo_test.c
49   segment_manager_test.c
50   tcp_test.c
51   test_buffer.c
52   unittest.c
53   util_test.c
54   vlib_test.c
55   counter_test.c
56 )