Red Hat Bugzilla – Bug 488908
Review Request: cpptest - A portable and powerful and simple unit testing framework for C++
Last modified: 2009-05-25 17:13:53 EDT
CppTest is a portable and powerful, yet simple, unit testing framework
for handling automated tests in C++. The focus lies on usability and
Koji Build: http://koji.fedoraproject.org/koji/taskinfo?taskID=1225671
$ rpmlint cpptest-1.1.0-1.fc10.src.rpm
cpptest.src: W: mixed-use-of-spaces-and-tabs (spaces: line 1, tab: line 19)
* The pkg-config template file contains a hardcoded "/lib" in libdir. This won't work on 64-bit multi-arch platforms. Use libdir=@libdir@ instead.
* The -devel package ought to "Requires: pkgconfig" since it places a file in %_libdir/pkgconfig/ (and there is no automatic dependency on all platforms).
* Installation of documentation is messed up (upstream dist bug).
All files in /usr/share/doc/cpptest-devel-1.1.0/images/ are included in ../html/ already. In "images/" they are misplaced and incomplete.
* The %check section runs "make check", which is a no-op. The "test" target is built already during %build. If you run "cd test && make check", the tests fail:
FailTestSuite: 2/2, 50% correct in 0.000017 seconds
CompareTestSuite: 3/3, 33% correct in 0.000009 seconds
ThrowTestSuite: 2/2, 50% correct in 0.000226 seconds
Total: 7 tests, 42% correct in 0.000252 seconds
Fixed all issues and reported testsuite failure to upstream.
> reported testsuite failure to upstream.
What's the ticket number or URL? I cannot find a report in upstream's tracker.
I won't approve this package as long as this tiny test-suite fails as it uses libcpptest.
Yep .. very much test suite needs to be passed ... last to last week I seemed to have mistakenly reported in sf forum and not tracker
Reported it in tracker now:
Removed check section as it is not a test .. just an example.
Had a chat with maintainer on IRC -- that it is not a test but an example and should fail, he has updated tracker also.
Okay. That explains why the "test" target is built by default, but not run by "make check" unless one does "cd test ; make check". Reading mytest.cpp I'm convinced it's an example. Would have been nice if it tested its own test features and exceptions, oh well, ... :-)
New Package CVS Request
Package Name: cpptest
Short Description: A portable and powerful and simple unit testing framework for C++
Branches: F-9 F-10
Cvsextras Commits: yes
cpptest-1.1.0-3.fc9 has been submitted as an update for Fedora 9.
Imported in Rawhide. Will close for now .. in case problem comes .. will reopen!
cpptest-1.1.0-3.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.