On Fri, Jun 21, 2019 at 08:01:55AM +0200, Rafael Sadowski wrote:
> On Mon Jun 10, 2019 at 03:00:14PM +0200, Rafael Sadowski wrote:
> > Please find attach a simple port for cpputest-3.8. This port is needed
> > by the upcoming weechat update from 2.4 to 2.5. I've been trying to
> > activate the weechat tests so I need this c++ test framework.
> >
> > To stop a lot of clang noise I added the following compiler option:
> >
> > CXXFLAGS += -Wno-zero-as-null-pointer-constant \
> > -Wno-c++98-compat \
> > -Wno-inconsistent-missing-destructor-override \
> > -Wno-c++98-compat-pedantic \
> > -Wno-cast-qual
> >
> > Or do we want all the noise? Tested with upcoming weechat tests on amd64.
> > Compiles fine with base clang and gcc.
> >
> > Information for inst:cpputest-3.8
> >
> > Comment:
> > unit testing and mocking framework for C/C++
> >
> > Description:
> > CppUTest is a C /C++ based unit xUnit test framework for unit testing and
> > for
> > test-driving your code. It is written in C++ but is used in C and C++
> > projects
> > and frequently used in embedded systems but it works for any C/C++ project.
> >
> > Maintainer: The OpenBSD ports mailing-list <[email protected]>
> >
> > WWW: https://cpputest.github.io
>
> Anybody got a moment to review it?
Some tests fail on amd64. Did you look into these?
84% tests passed, 11 tests failed out of 69
Total Test time (real) = 2.43 sec
The following tests FAILED:
12 - CppUTestExtTests.MockExpectedCallComposite (Failed)
20 - CppUTestExtTests.MockPlugin (Failed)
21 - CppUTestExtTests.MockSupportTestWithFixture (Failed)
28 - CppUTestTests.SetPointerPluginTest (Failed)
45 - CppUTestTests.OutOfMemoryTestsForOperatorNew (SEGFAULT)
46 - CppUTestTests.TestForExceptionsInConstructor (Failed)
50 - CppUTestTests.TestMemoryAllocatorTest (Failed)
53 - CppUTestTests.MemoryLeakWarningTest (Failed)
61 - CppUTestTests.UnitTestMacros (Failed)
62 - CppUTestTests.UnitTestStringMacros (Failed)
66 - CppUTestTests.UtestShell (Failed)
Errors while running CTest
FAILED: CMakeFiles/test.util
Please consider shipping README.md as it contains useful examples.
OK kn