lisp: Move to plugin
[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_test.c
33   fib_test.c
34   interface_test.c
35   ipsec_test.c
36   llist_test.c
37   mactime_test.c
38   mfib_test.c
39   mpcap_node.c
40   punt_test.c
41   rbtree_test.c
42   session_test.c
43   sparse_vec_test.c
44   string_test.c
45   svm_fifo_test.c
46   segment_manager_test.c
47   tcp_test.c
48   test_buffer.c
49   unittest.c
50   util_test.c
51   vlib_test.c
52 )