Sha256: f1cd6a434b3e79dbedddc5b10710ed97cd5767fb4ec83f2829ed90caa0bd85e6

Contents?: true

Size: 1.36 KB

Versions: 21

Compression:

Stored size: 1.36 KB

Contents

These tests are for determining the numbers of physical packages, physical cores,
and logical processors from the data returned by /proc/cpuinfo on Linux hosts.
Each text file in this directory is the output of /proc/cpuinfo on various machines.

The names of all test files should be of the form `Apack_Bcore_Clogical.txt`
where `A`, `B`, and `C` are integers or the character `X`. For example,
a single quad-core processor without hyperthreading would correspond to
`1pack_4core_4logical.txt`, while two 6-core processors with hyperthreading
would correspond to `2pack_12core_24logical.txt`, and would be pretty sweet.

Using `A`, `B`, and `C` from above, code processing the text in these files
should produce the following expected values:

| property             | value   |
| -------------------- |---------|
| # physical packages  | `A`     |
| # physical cores     | `B`     |
| # logical processors | `C`     |

(Obviously, the processing code should do this with no knowledge of the filenames.)

If any of `A`, `B`, or `C` are the character `X` instead of an integer, then
processing code should not return a value (return `null`, return `nil`,
raise an exception... whatever makes most sense for your agent).

There is a malformed.txt file which is a random file that does not adhere to
any /proc/cpuinfo format. The expected result is `null` for packages, cores and
processors.

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
newrelic_rpm-4.1.0.333 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-4.0.0.332 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-3.18.1.330 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-3.18.0.329 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-3.17.2.327 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-3.17.1.326 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-3.17.0.325 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-3.16.3.323 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-3.16.2.321 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-3.16.1.320 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-3.16.0.318 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-3.15.2.317/test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-3.15.2.317 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-3.15.1.316 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-3.15.0.314 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-3.14.3.313 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-3.14.2.312 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-3.14.1.311 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-3.14.0.305 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
newrelic_rpm-3.13.2.302 test/fixtures/cross_agent_tests/proc_cpuinfo/README.md