The makefile in the unittest directory has targets that compile and run
the test harness. It also runs the test harness in gcov to produce a test
coverage report and runs under valgrind to check there are no memory
leaks. valgrind and gcov need to be installed for this to work.
The test harness includes mock implementations of the pfm libary and test
files that simulate the /proc filesystem. These allow me to test that
error cases are handled correctly in the code.
I'll look into integrating this with the PCP test suite.
Thanks,
Joe
On 6/26/14, 8:44 PM, "Nathan Scott" <nathans@xxxxxxxxxx> wrote:
>
>
>----- Original Message -----
>> > [...] This linux-specific pmda exposes the hardware performance
>> > counters available on recent x86 systems. This pmda has been running
>> > on our cluster the last 10 months without problems (I've been
>> > meaning to submit this for inclusion for a while!). [...]
>>
>> Thank you for posting. As you probably know, we have recently started
>> expending effort in a very similar direction, so will need to compare
>> & contrast the two to figure out how to proceed.
>
>Please be aware that the wording of this sentence could be interpreted as
>the "we" (who recently started expending effort...) "will need to compare
>and contrast..." before anything can progress in terms of including this
>new PMDA with the rest of PCP - which is not the case.
>
>In reality, no comparing and contrasting is *needed* at all (but it would
>be a good idea, for each implementation to learn from the other). PCP has
>an architecture that will allow both PMDAs to exist side-by-side in the
>git
>tree and in the binary packages that are shipped, of course.
>
>I'm a bit snowed under atm, but I am expecting to take a closer look next
>week at both these PMDAs (with the expectation that both will be merged at
>some point).
>
>I note with great delight that you already have several test programs,
>Joe.
>Can you describe how to build & run those - ideally we'd be including
>those
>in the pcp-testsuite, then many more people will be running those tests
>all
>the time. Martins has some experience doing this, it might help to talk
>directly with him too.
>
>cheers.
>
>--
>Nathan
|