diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-01-25 23:34:41 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-01-27 16:54:54 -0800 |
| commit | d6f0c13355199173dd7a2957dc2bae54bb5d85c3 (patch) | |
| tree | 92d70a3bfcad8896714dcbaa0930a21dd04605d1 /tests | |
| parent | 463b2fe68fb55898d66a7d89064ad76c67083501 (diff) | |
| download | nng-d6f0c13355199173dd7a2957dc2bae54bb5d85c3.tar.gz nng-d6f0c13355199173dd7a2957dc2bae54bb5d85c3.tar.bz2 nng-d6f0c13355199173dd7a2957dc2bae54bb5d85c3.zip | |
New CMAKE option NNG_ENABLE_COMPAT (defaults ON)
This option allows the compatibility code to be elided from the build.
This saves build time, and eliminates bloat from a static library when
used strictly in native NNG mode.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/CMakeLists.txt | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 063692cb..022fe49b 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,5 +1,5 @@ # -# Copyright 2021 Staysail Systems, Inc. <info@staysail.tech> +# Copyright 2024 Staysail Systems, Inc. <info@staysail.tech> # Copyright 2018 Capitar IT Group BV <info@capitar.com> # Copyright (c) 2012 Martin Sustrik All rights reserved. # Copyright (c) 2013 GoPivotal, Inc. All rights reserved. @@ -155,25 +155,27 @@ add_nng_test(reqstress 60) # is because we don't want to make modifications to partially enable some # of these tests. Folks minimizing the library probably don't care too # much about these anyway. -add_nng_compat_test(compat_block 10) -add_nng_compat_test(compat_bug777 10) -add_nng_compat_test(compat_bus 10) -add_nng_compat_test(compat_cmsg 10) -add_nng_compat_test(compat_msg 10) -add_nng_compat_test(compat_iovec 10) -add_nng_compat_test(compat_device 10) -add_nng_compat_test(compat_pair 10) -add_nng_compat_test(compat_pipeline 10) -add_nng_compat_test(compat_poll 10) -add_nng_compat_test(compat_reqrep 10) -add_nng_compat_test(compat_survey 10) -add_nng_compat_test(compat_reqttl 10) -add_nng_compat_test(compat_shutdown 10) -add_nng_compat_test(compat_surveyttl 10) - -# These are special tests for compat mode, not inherited from the -# legacy libnanomsg suite. -add_nng_test(compat_options 5) +if (NNG_ENABLE_COMPAT) + add_nng_compat_test(compat_block 10) + add_nng_compat_test(compat_bug777 10) + add_nng_compat_test(compat_bus 10) + add_nng_compat_test(compat_cmsg 10) + add_nng_compat_test(compat_msg 10) + add_nng_compat_test(compat_iovec 10) + add_nng_compat_test(compat_device 10) + add_nng_compat_test(compat_pair 10) + add_nng_compat_test(compat_pipeline 10) + add_nng_compat_test(compat_poll 10) + add_nng_compat_test(compat_reqrep 10) + add_nng_compat_test(compat_survey 10) + add_nng_compat_test(compat_reqttl 10) + add_nng_compat_test(compat_shutdown 10) + add_nng_compat_test(compat_surveyttl 10) + + # These are special tests for compat mode, not inherited from the + # legacy libnanomsg suite. + add_nng_test(compat_options 5) +endif() # c++ tests add_nng_cpp_test(cplusplus_pair 5) |
