You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Daněk (Jira)" <ji...@apache.org> on 2020/10/05 11:13:00 UTC

[jira] [Comment Edited] (PROTON-2170) cmake -DBUILD_TESTING=OFF does not disable building all tests

    [ https://issues.apache.org/jira/browse/PROTON-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17208004#comment-17208004 ] 

Jiri Daněk edited comment on PROTON-2170 at 10/5/20, 11:12 AM:
---------------------------------------------------------------

With the patch, I tried doing {{cmake -- -DBUILD_TESTING=OFF}} and then {{$ make help | grep test}} does not print anything. Success.

{{$ ctest -VV}} does run some tests, but they are just the examples, building of which should be controlled separately, PROTON-2171.


was (Author: jdanek):
With the patch, I tried doing {{cmake -- -DBUILD_TESTING=OFF}} and then {{$ make help | grep test}} does not print anything. Success.

> cmake -DBUILD_TESTING=OFF does not disable building all tests
> -------------------------------------------------------------
>
>                 Key: PROTON-2170
>                 URL: https://issues.apache.org/jira/browse/PROTON-2170
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: build
>    Affects Versions: proton-c-0.30.0
>            Reporter: Jiri Daněk
>            Priority: Major
>         Attachments: 0001-CMakeLists.txt-allow-the-user-to-disable-tests.patch
>
>
> Compile as in PROTON-2145, that means
> {noformat}
> mkdir _build
> cd _build
> cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local\
>   -DSYSINSTALL_BINDINGS=ON\
>   -DBUILD_STATIC_LIBS=ON\
>   -DBUILD_TESTING=OFF\
>   -DENABLE_FUZZ_TESTING=OFF\
>   -DFUZZ_REGRESSION_TESTS=OFF
> make -j4
> make install
> {noformat}
> (leave out -DBUILD_WITH_CXX=ON)
> Despite {{-DBUILD_TESTING=OFF}}, the following is being built
> {noformat}
> [ 42%] Built target test_main
> [ 45%] Built target c-core-test
> [ 45%] Built target c-extra-test
> [ 46%] Built target c-ssl-proactor-test
> [ 47%] Built target c-proactor-test
> [ 65%] Built target interop_test
> [ 65%] Built target credit_test
> [ 65%] Built target reconnect_test
> [ 66%] Built target codec_test
> [ 67%] Built target value_test
> [ 68%] Built target connection_driver_test
> [ 84%] Built target scalar_test
> [ 85%] Built target message_test
> [ 85%] Built target link_test
> [ 86%] Built target container_test
> [ 87%] Built target cpp-test
> [ 88%] Built target map_test
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org