diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-17 19:08:13 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-17 19:08:13 +0200 |
| commit | 9b18e17eee451a9a900f792add2c4c2eeb2af533 (patch) | |
| tree | 7466a0953c5a4c9d7b3200723baf4d21a9bf225d /test/fixtures | |
| parent | f1be1bef9c3563fd78f811f54e5a64b1d993e4da (diff) | |
| download | conky-theme-udt-9b18e17eee451a9a900f792add2c4c2eeb2af533.tar.gz conky-theme-udt-9b18e17eee451a9a900f792add2c4c2eeb2af533.zip | |
feat: parse the CPU and motherboard model strings
Stripping by rule rather than by a table of known parts: a leading vendor
word, trademark noise, a trailing core count or clock. The Intel fixture
exists to keep it a rule.
DMI placeholders read as no board at all. 'To Be Filled By O.E.M.' on the
dashboard is worse than a blank row.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'test/fixtures')
| -rw-r--r-- | test/fixtures/proc_cpuinfo | 12 | ||||
| -rw-r--r-- | test/fixtures/proc_cpuinfo_intel | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/fixtures/proc_cpuinfo b/test/fixtures/proc_cpuinfo new file mode 100644 index 0000000..e9cd523 --- /dev/null +++ b/test/fixtures/proc_cpuinfo @@ -0,0 +1,12 @@ +processor : 0 +vendor_id : AuthenticAMD +cpu family : 26 +model : 68 +model name : AMD Ryzen 7 9700X 8-Core Processor +stepping : 0 +cpu MHz : 4491.436 +cache size : 1024 KB + +processor : 1 +vendor_id : AuthenticAMD +model name : AMD Ryzen 7 9700X 8-Core Processor diff --git a/test/fixtures/proc_cpuinfo_intel b/test/fixtures/proc_cpuinfo_intel new file mode 100644 index 0000000..886b589 --- /dev/null +++ b/test/fixtures/proc_cpuinfo_intel @@ -0,0 +1,6 @@ +processor : 0 +vendor_id : GenuineIntel +cpu family : 6 +model : 158 +model name : Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz +stepping : 10 |
