[Bug 1199693] Review Request: pcp-pmda-cpp - C++ library for PCP PMDAs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1199693



--- Comment #10 from Paul Colby <redhat@xxxxxxxxxxx> ---
Hi Nathan,

The short version: should I be able to use dbpmda without ever running the pmcd
service?

The long version:

I've added a %check section to the RPM Spec file.

The PMDA++ project provides two different checks - unit tests and functional
tests.  When you run "make check" it simply runs both, but you can run "make
check-unit" and/or "make check-functional" independently.

Now, the unit tests are working fine, but some of the functional tests use the
dbpmda command to validate the sample PMDAs' DSO interfaces.

For example
https://github.com/pcolby/pcp-pmda-cpp/blob/master/test/functional/test_simple_open_dso.command

Now, it seems that the dbpmda command won't succeed unless the pmcd service is
running (or has run at some point... presumably it caches something somwhere).
Otherwise I get an error like: 

dbpmda: Cannot load namespace from "/tmp/.../root": Problems parsing PMNS
definitions.

This error goes away if I start the pmcd service.

It seems inappropriate for an RPM Spec file to require a specific service, such
as pmcd, to be running to build.  So, is there something I can change to avoid
the need for dbpmda to have pmcd running?  Or is it simply impractical to
include these tests?

Note, this looks the simlar to (if not the same as)
https://bugzilla.redhat.com/show_bug.cgi?id=1062443

What I'll probably do for now, is separate out the tests that require dbpmda
(really they're more integration than functional tests anyway), and set the
%check section to run all but those tests.  But I would like to know if it is
(or should be) possible to include those tests eventually.

Thanks.

Paul.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review





[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]