Bug 488908 - Review Request: cpptest - A portable and powerful and simple unit testing framework for C++
Summary: Review Request: cpptest - A portable and powerful and simple unit testing fr...
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Michael Schwendt
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: 488512
TreeView+ depends on / blocked
Reported: 2009-03-06 05:54 UTC by Rakesh Pandit
Modified: 2009-05-25 21:13 UTC (History)
3 users (show)

Fixed In Version: 1.1.0-3.fc9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-04-13 18:13:14 UTC
Type: ---
bugs.michael: fedora-review+
kevin: fedora-cvs+

Attachments (Terms of Use)

Description Rakesh Pandit 2009-03-06 05:54:14 UTC
SPEC: http://rakesh.fedorapeople.org/spec/cpptest.spec
SRPM: http://rakesh.fedorapeople.org/srpm/cpptest-1.1.0-1.fc10.src.rpm

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

Comment 1 Michael Schwendt 2009-03-08 17:35:05 UTC
$ 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

Comment 2 Rakesh Pandit 2009-03-17 11:11:32 UTC
SPEC: http://rakesh.fedorapeople.org/spec/cpptest.spec
SRPM: http://rakesh.fedorapeople.org/srpm/cpptest-1.1.0-2.fc10.src.rpm

Fixed all issues and reported testsuite failure to upstream.

Comment 3 Michael Schwendt 2009-03-29 11:12:49 UTC
> 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.

Comment 4 Rakesh Pandit 2009-03-29 12:13:04 UTC
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:


Comment 5 Rakesh Pandit 2009-04-13 11:25:36 UTC
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.


Comment 6 Michael Schwendt 2009-04-13 12:40:13 UTC
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, ... :-)



Comment 7 Rakesh Pandit 2009-04-13 13:25:36 UTC

New Package CVS Request
Package Name: cpptest
Short Description: A portable and powerful and simple unit testing framework for C++
Owners: rakesh
Branches: F-9 F-10
Cvsextras Commits: yes

Comment 8 Kevin Fenzi 2009-04-13 15:40:06 UTC
cvs done.

Comment 9 Fedora Update System 2009-04-13 16:07:23 UTC
cpptest-1.1.0-3.fc9 has been submitted as an update for Fedora 9.

Comment 10 Rakesh Pandit 2009-04-13 18:13:14 UTC
Imported in Rawhide. Will close for now .. in case problem comes .. will reopen!

Comment 11 Fedora Update System 2009-05-25 21:13:48 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.