hash: add support for hashing infra
[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   hash_test.c
36   interface_test.c
37   ipsec_test.c
38   llist_test.c
39   mactime_test.c
40   mem_bulk_test.c
41   mfib_test.c
42   mpcap_node.c
43   policer_test.c
44   pool_test.c
45   punt_test.c
46   rbtree_test.c
47   session_test.c
48   sparse_vec_test.c
49   string_test.c
50   svm_fifo_test.c
51   segment_manager_test.c
52   tcp_test.c
53   test_buffer.c
54   unittest.c
55   util_test.c
56   vlib_test.c
57   counter_test.c
58
59   COMPONENT
60   vpp-plugin-devtools
61 )