From 9b18e17eee451a9a900f792add2c4c2eeb2af533 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 17 Sep 2026 19:08:13 +0200 Subject: 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 --- test/fixtures/proc_cpuinfo | 12 ++++++++++++ test/fixtures/proc_cpuinfo_intel | 6 ++++++ 2 files changed, 18 insertions(+) create mode 100644 test/fixtures/proc_cpuinfo create mode 100644 test/fixtures/proc_cpuinfo_intel (limited to 'test/fixtures') 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 -- cgit v1.2.3