If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

[BUG] PTS cannot parse some system information on OS X

01-17-2013, 07:22 AM

Hi,
I'm having some problems getting PTS to obtain some of the system information. I first stumbled upon this when I was implementing my own sensors and noticed that the stock cpu frequency sensor was reporting wrong frequency. I investigated that occurrence and nailed it down to PTS not expecting comma instead of period as a decimal separator. I now executed the detailed system information and found out that there were more missing/wrong fields:

IIRC, PTS parses output from some OS X hardware-listing utility, but can't remember what it was. Tell me what output you need and I will post the output.

BTW, I'm looking for a way to include information about the version numbers of the software I'm testing (the software is not part of the test profile, so the version has to be detected at run-time). What it the best way to do this? I was thinking about including the info in "System information" table in the result XML. If that IS the recommended way, can you give me some pointers as to what parts of PTS need changing?

Hi,
I'm having some problems getting PTS to obtain some of the system information. I first stumbled upon this when I was implementing my own sensors and noticed that the stock cpu frequency sensor was reporting wrong frequency. I investigated that occurrence and nailed it down to PTS not expecting comma instead of period as a decimal separator. I now executed the detailed system information and found out that there were more missing/wrong fields:

IIRC, PTS parses output from some OS X hardware-listing utility, but can't remember what it was. Tell me what output you need and I will post the output.

BTW, I'm looking for a way to include information about the version numbers of the software I'm testing (the software is not part of the test profile, so the version has to be detected at run-time). What it the best way to do this? I was thinking about including the info in "System information" table in the result XML. If that IS the recommended way, can you give me some pointers as to what parts of PTS need changing?

Most of the OS X information is obtained from system_profiler plus other utilities. Most of the relevant code in PTS is within pts-core/objects/phodevi. Any patches to improve the support are welcome.

Not all non-critical code paths are implemented on all platforms, like reading the CPU cache size, but again any patches are welcome for improvements.

If you grep the code for 'system notes' (or look up how Firefox/browsers are reported as an example), there is an extra field in the XML where these system notes can be done. If you need more help let me know.