Skip to content

Improve cppunit and C++11 support via configure.ac#480

Merged
clepple merged 2 commits intonetworkupstools:masterfrom
jimklimov:cppunit
Oct 8, 2017
Merged

Improve cppunit and C++11 support via configure.ac#480
clepple merged 2 commits intonetworkupstools:masterfrom
jimklimov:cppunit

Conversation

@jimklimov
Copy link
Copy Markdown
Member

See also #472 and #366 and #466

@jimklimov jimklimov force-pushed the cppunit branch 4 times, most recently from a6a0ea3 to fb3faf4 Compare September 17, 2017 20:10
@jimklimov
Copy link
Copy Markdown
Member Author

Note; newer autoconf includes macros for this, but systems I've played with lack them. So iterated back to stone ax which just works ;)

@jimklimov jimklimov requested a review from clepple September 22, 2017 08:41
@jimklimov jimklimov changed the title Improve cppunit and C++11 support via configure.ac [WIP] Improve cppunit and C++11 support via configure.ac Sep 25, 2017
* Detect C++11 support and its use for CPPUNIT tests through configure.ac - should address issue networkupstools#472
* Report after detecting C++11 support, presence of libcppunit, and request for valgrind, whether we'd build the cppunit tests
* Update relevant comments in configure.ac
@jimklimov jimklimov changed the title [WIP] Improve cppunit and C++11 support via configure.ac Improve cppunit and C++11 support via configure.ac Sep 25, 2017
@jimklimov jimklimov added ready / code review Author (and CI) consider the PR worthy of human rewievers' time and removed WIP labels Sep 25, 2017
@jimklimov
Copy link
Copy Markdown
Member Author

Fixed a few wrinkles in the PR - now it does actually build and run the cppunittest where compiler is able to, including gcc-4.9.4 which needs an explicit -std=c++11 to do so. Hopefully the configure.ac code structure is sufficiently flexible to add support for other compilers should the need arise.

Alternately, if the script determines that the test code is not buildable, it won't try to do so and thus blow up the build.

This PR is somewhat orthogonal to the embryotic state that the actual C++ test code is in.

Copy link
Copy Markdown
Member

@clepple clepple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@clepple
Copy link
Copy Markdown
Member

clepple commented Oct 3, 2017

I would also agree that merging this should close #472.

@clepple clepple merged commit 4a7c5d0 into networkupstools:master Oct 8, 2017
@jimklimov jimklimov deleted the cppunit branch November 10, 2021 13:21
@jimklimov jimklimov restored the cppunit branch December 3, 2021 14:20
@jimklimov jimklimov deleted the cppunit branch December 3, 2021 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C++ ready / code review Author (and CI) consider the PR worthy of human rewievers' time

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants