Skip to content

LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.

System Information: the Report tab shows the exact text of a report (Markdown from lord.sysinfo.markdown() with a This session section, or the JSON) before Copy or Save to Documents (lordos-report-<date>, never over an existing file), with Show in Files; nothing is sent anywhere. The report now carries LordOS's version from lord-server too

Federico Pereirae02d11c40928
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3809bf2..83e936e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -19,7 +19,8 @@ of the matching [GitHub release](https://github.com/lordbasex/LordOS/releases),
and what LordOS makes of it. The graphics card is shown layer by layer (driver, display output,
render node, GPU context, composition, direct scanout) with the exact reason when the screen is
composed on the CPU, and a Compatibility panel says what works, what works with limits and what
- wasn't checked.
+ wasn't checked. Its Report tab shows the exact text of a report (Markdown or JSON) before you copy
+ it or save it to Documents; nothing is sent anywhere.
- **`lordos-sysreport report`** prints the hardware of this computer and what the system made of it,
as Markdown or `--json`, with no serial numbers, addresses or names: the base of System
Information.
diff --git a/apps/sysinfo/index.jsx b/apps/sysinfo/index.jsx
index 0feb78a..0706224 100644
--- a/apps/sysinfo/index.jsx
+++ b/apps/sysinfo/index.jsx
@@ -4,11 +4,12 @@
// lordos-fetch), read once on open and again with Refresh; model.js works out the GPU layers and the
// Compatibility panel. Nothing here holds serial numbers, addresses or names: the report has none.
import {
- View, Text, ScrollView, useTheme, useLocale, LordOSLogo, systemReport, systemInfo, lordosVersion, formatBytes, formatNumber,
+ View, Text, ScrollView, Button, useTheme, useLocale, LordOSLogo, systemReport, systemInfo, lordosVersion, formatBytes, formatNumber,
Toolbar, ToolbarSpacer, ToolbarButton, Segmented, SidebarItem, GroupBox, FormRow, EmptyState, Hairline, spacing, typeScale,
+ fs, userDirs, clipboard, wm,
} from '@lordos/sdk';
import { useMemo, useState } from 'react';
-import { cardLayers, sessionLayers, compatibility, hardwareSections, throttleFlags, machineName, compositionReason } from './model.js';
+import { cardLayers, sessionLayers, compatibility, hardwareSections, throttleFlags, machineName, compositionReason, reportFileName, reportJson } from './model.js';
// The app's icon: a chip on the brand gradient.
export function Icon({ size: s }) {
@@ -312,6 +313,63 @@ function Compatibility({ r }) {
);
}
+// ---- Report ----
+
+// The exact text that would be saved, line by line (leading spaces kept as no-break spaces).
+function Preview({ text }) {
+ const t = useTheme();
+ const lines = useMemo(() => text.split('\n'), [text]);
+ return (
+ <View style={{ flex: 1, borderRadius: t.groupRadius, border: `1px solid ${t.separator}`, overflow: 'hidden',
+ backgroundColor: t.mode === 'dark' ? 'rgba(0,0,0,0.25)' : 'rgba(0,0,0,0.03)' }}>
+ <ScrollView style={{ flex: 1 }} contentStyle={{ padding: spacing.m, direction: 'ltr' }}>
+ {lines.map((l, i) => (
+ <Text key={i} style={{ fontFamily: 'monospace', fontSize: 12, lineHeight: 1.45, color: t.text, textAlign: 'left', minHeight: 17 }}>
+ {l.replace(/^ +/, (m) => '\u00a0'.repeat(m.length)) || '\u00a0'}</Text>
+ ))}
+ </ScrollView>
+ </View>
+ );
+}
+
+function Report({ r }) {
+ const t = useTheme();
+ const { t: tr } = useLocale();
+ const [fmt, setFmt] = useState('markdown');
+ const [msg, setMsg] = useState(null);
+ const md = useMemo(() => { try { return lord.sysinfo.markdown() || ''; } catch (e) { return ''; } }, [r]);
+ const text = fmt === 'json' ? reportJson(r) : md;
+ const save = () => {
+ const dir = userDirs().documents;
+ try { fs.mkdir(dir); } catch (e) { /* already there */ }
+ const name = reportFileName(r.date, fmt === 'json' ? 'json' : 'md', (n) => { try { return !!fs.stat(`${dir}/${n}`); } catch (e) { return false; } });
+ if (!name) { setMsg({ ok: false, text: tr('sysinfo.report.saveFailed') }); return; }
+ try {
+ fs.write(`${dir}/${name}`, text);
+ setMsg({ ok: true, text: tr('sysinfo.report.saved', { name }), dir });
+ } catch (e) { setMsg({ ok: false, text: tr('sysinfo.report.saveFailed') }); }
+ };
+ const copy = () => { clipboard.set(text); setMsg({ ok: true, text: tr('sysinfo.report.copied') }); };
+ return (
+ <View style={{ flex: 1, padding: spacing.xl, gap: spacing.m }}>
+ <Text style={{ fontSize: typeScale.callout, color: t.textDim, textAlign: 'start', lineHeight: 1.4 }}>{tr('sysinfo.report.intro')}</Text>
+ <View style={{ flexDirection: 'row', alignItems: 'center', gap: spacing.s }}>
+ <Segmented small value={fmt} onChange={(v) => { setFmt(v); setMsg(null); }} options={[['markdown', tr('sysinfo.report.markdown')], ['json', 'JSON']]} />
+ <View style={{ flex: 1 }} />
+ <Button label={tr('sysinfo.report.copy')} onClick={copy} />
+ <Button primary label={tr('sysinfo.report.save')} onClick={save} />
+ </View>
+ {msg ? (
+ <View style={{ flexDirection: 'row', alignItems: 'center', gap: spacing.s }}>
+ <Text style={{ fontSize: typeScale.callout, color: msg.ok ? '#30d158' : '#ff453a', textAlign: 'start' }}>{msg.text}</Text>
+ {msg.dir ? <Button small plain label={tr('sysinfo.report.showInFiles')} onClick={() => wm.open('files', { new: true, args: { path: msg.dir } })} /> : null}
+ </View>
+ ) : null}
+ <Preview text={text} />
+ </View>
+ );
+}
+
export default function SystemInformation() {
const { t: tr } = useLocale();
const [tab, setTab] = useState('overview');
@@ -324,11 +382,11 @@ export default function SystemInformation() {
<Toolbar>
<ToolbarSpacer />
<Segmented appearance="neutral" value={tab} onChange={setTab}
- options={[['overview', tr('sysinfo.tab.overview')], ['hardware', tr('sysinfo.tab.hardware')], ['compat', tr('sysinfo.tab.compat')]]} />
+ options={[['overview', tr('sysinfo.tab.overview')], ['hardware', tr('sysinfo.tab.hardware')], ['compat', tr('sysinfo.tab.compat')], ['report', tr('sysinfo.tab.report')]]} />
<ToolbarSpacer />
<ToolbarButton icon="↻" title={tr('sysinfo.refresh')} onClick={() => setN(n + 1)} />
</Toolbar>
- {tab === 'overview' ? <Overview r={r} info={info} /> : tab === 'hardware' ? <Hardware r={r} /> : <Compatibility r={r} />}
+ {tab === 'overview' ? <Overview r={r} info={info} /> : tab === 'hardware' ? <Hardware r={r} /> : tab === 'compat' ? <Compatibility r={r} /> : <Report r={r} />}
</View>
);
}
diff --git a/apps/sysinfo/model.js b/apps/sysinfo/model.js
index 56686d8..5d4ffee 100644
--- a/apps/sysinfo/model.js
+++ b/apps/sysinfo/model.js
@@ -132,3 +132,16 @@ export function machineName(r) {
const m = (r && r.machine) || {};
return [m.vendor, m.product].filter(Boolean).join(' ') || m.model || '';
}
+
+// The Report tab's file name: lordos-report-<date>.<ext>, or -2, -3… when one with that name exists.
+export function reportFileName(date, ext, exists) {
+ const base = `lordos-report-${/^\d{4}-\d{2}-\d{2}$/.test(date || '') ? date : 'today'}`;
+ for (let i = 1; i < 100; i++) {
+ const name = `${base}${i > 1 ? `-${i}` : ''}.${ext}`;
+ if (!exists(name)) return name;
+ }
+ return null;
+}
+
+// The JSON a report is saved as: the collector's fields as they are, two-space indent.
+export const reportJson = (r) => `${JSON.stringify(r, null, 2)}\n`;
diff --git a/assets/locales/en/sysinfo.json b/assets/locales/en/sysinfo.json
index 026d661..968e6aa 100644
--- a/assets/locales/en/sysinfo.json
+++ b/assets/locales/en/sysinfo.json
@@ -176,6 +176,14 @@
"reason.unknown": "reason unknown",
"refresh": "Refresh",
"removable": "Removable",
+ "report.copied": "Copied to the clipboard",
+ "report.copy": "Copy",
+ "report.intro": "This is the exact text that will be saved: the hardware and what LordOS makes of it. It holds no serial numbers, addresses, or user or computer names. Nothing is sent anywhere.",
+ "report.markdown": "Text (Markdown)",
+ "report.save": "Save to Documents",
+ "report.saveFailed": "The report couldn't be saved",
+ "report.saved": "Saved as {name} in Documents",
+ "report.showInFiles": "Show in Files",
"running": "Running",
"section.audio": "Audio",
"section.bluetooth": "Bluetooth",
@@ -203,6 +211,7 @@
"tab.compat": "Compatibility",
"tab.hardware": "Hardware",
"tab.overview": "Overview",
+ "tab.report": "Report",
"thisComputer": "This computer",
"thisSession": "This session",
"unavailable": "System Information isn't available in this session.",
diff --git a/assets/locales/es/sysinfo.json b/assets/locales/es/sysinfo.json
index bd3776d..eb444b4 100644
--- a/assets/locales/es/sysinfo.json
+++ b/assets/locales/es/sysinfo.json
@@ -176,6 +176,14 @@
"reason.unknown": "motivo desconocido",
"refresh": "Actualizar",
"removable": "Extraíble",
+ "report.copied": "Copiado al portapapeles",
+ "report.copy": "Copiar",
+ "report.intro": "Este es el texto exacto que se va a guardar: el hardware y lo que LordOS hace con él. No incluye números de serie, direcciones ni nombres de usuario o de equipo. No se envía a ningún lado.",
+ "report.markdown": "Texto (Markdown)",
+ "report.save": "Guardar en Documentos",
+ "report.saveFailed": "No se pudo guardar el informe",
+ "report.saved": "Guardado como {name} en Documentos",
+ "report.showInFiles": "Mostrar en Archivos",
"running": "En marcha",
"section.audio": "Audio",
"section.bluetooth": "Bluetooth",
@@ -203,6 +211,7 @@
"tab.compat": "Compatibilidad",
"tab.hardware": "Hardware",
"tab.overview": "Resumen",
+ "tab.report": "Informe",
"thisComputer": "Este equipo",
"thisSession": "Esta sesión",
"unavailable": "La información del sistema no está disponible en esta sesión.",
diff --git a/assets/locales/pt/sysinfo.json b/assets/locales/pt/sysinfo.json
index e1e2802..3935740 100644
--- a/assets/locales/pt/sysinfo.json
+++ b/assets/locales/pt/sysinfo.json
@@ -176,6 +176,14 @@
"reason.unknown": "motivo desconhecido",
"refresh": "Atualizar",
"removable": "Removível",
+ "report.copied": "Copiado para a área de transferência",
+ "report.copy": "Copiar",
+ "report.intro": "Este é o texto exato que será salvo: o hardware e o que o LordOS faz com ele. Não inclui números de série, endereços nem nomes de usuário ou de computador. Nada é enviado.",
+ "report.markdown": "Texto (Markdown)",
+ "report.save": "Salvar em Documentos",
+ "report.saveFailed": "Não foi possível salvar o relatório",
+ "report.saved": "Salvo como {name} em Documentos",
+ "report.showInFiles": "Mostrar em Arquivos",
"running": "Em execução",
"section.audio": "Áudio",
"section.bluetooth": "Bluetooth",
@@ -203,6 +211,7 @@
"tab.compat": "Compatibilidade",
"tab.hardware": "Hardware",
"tab.overview": "Resumo",
+ "tab.report": "Relatório",
"thisComputer": "Este computador",
"thisSession": "Esta sessão",
"unavailable": "As informações do sistema não estão disponíveis nesta sessão.",
diff --git a/docs/BENCHMARK.md b/docs/BENCHMARK.md
index a8beac4..be559a0 100644
--- a/docs/BENCHMARK.md
+++ b/docs/BENCHMARK.md
@@ -261,8 +261,14 @@ Checked on VM 116 in an isolated headless session (own home, runtime folder and
![Compatibility](sysinfo-compatibility.png)
-Not yet: `hw-memory-modules`, video decode and encode and Vulkan (shown as *Not checked*), the Checks
-and Report tabs.
+**Report tab (2026-10-26):** the exact text that would be saved, as Markdown (`lord.sysinfo.markdown()`:
+`lordos-sysreport`'s text plus a "This session" section) or JSON (the report as `lord.sysinfo.report()`
+gives it); **Copy** and **Save to Documents** (`lordos-report-<date>.md|json`, `-2`, `-3`… never over an
+existing file), with **Show in Files**. Nothing is sent anywhere: publishing comes with 0.8.7.
+
+![The Report tab](sysinfo-report.png)
+
+Not yet: `hw-memory-modules`, video decode and encode and Vulkan (shown as *Not checked*), the Checks tab.
1. `server/src/sysreport/`: collector, GPU layers, `pci.ids`/EDID readers, fake-sysfs fixtures
(AMD desktop, Intel laptop, Nvidia desktop, Raspberry Pi 5, VM), the anonymization test,
diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md
index a19fedf..88234bf 100644
--- a/docs/ROADMAP.md
+++ b/docs/ROADMAP.md
@@ -596,7 +596,8 @@ Details in `MAIL.md`. Tested on VM 123 against local Dovecot, Postfix and Radica
- [ ] the read-only `hw-memory-modules` admin action;
- [x] Overview, Hardware and Compatibility tabs (en, es, pt; 2026-10-26; right to left not yet checked on screen);
- [ ] Checks, configured and effective, with the probe app and a signed `checks.json`;
- - [ ] reports; first real reports from the Pi 5 with a monitor and the RX 580 PC.
+ - [x] reports: the Report tab with the exact text, Copy and Save to Documents (2026-10-26);
+ - [ ] first real reports from the Pi 5 with a monitor and the RX 580 PC.
- [ ] from the live USB without installing: a *Check this computer* boot entry, reports marked
live, nothing written to the computer's disks, saved to a removable drive; the installer shows
the Compatibility summary before installing.
diff --git a/docs/sysinfo-report.png b/docs/sysinfo-report.png
new file mode 100644
index 0000000..09f0890
Binary files /dev/null and b/docs/sysinfo-report.png differ
diff --git a/sdk/media.js b/sdk/media.js
index f790a19..bec3d15 100644
--- a/sdk/media.js
+++ b/sdk/media.js
@@ -189,7 +189,8 @@ export function userDirs() {
const m = new RegExp(`^XDG_${key}_DIR="\\$HOME/([^"]+)"`, 'm').exec(conf);
return `${home}/${m ? m[1] : def}`;
};
- return { home, pictures: get('PICTURES', 'Pictures'), music: get('MUSIC', 'Music'), videos: get('VIDEOS', 'Videos'), desktop: get('DESKTOP', 'Desktop') };
+ return { home, pictures: get('PICTURES', 'Pictures'), music: get('MUSIC', 'Music'), videos: get('VIDEOS', 'Videos'), desktop: get('DESKTOP', 'Desktop'),
+ documents: get('DOCUMENTS', 'Documents') };
}
// ---- what's playing now (Control Center and media keys) ----
diff --git a/server/Makefile b/server/Makefile
index 8863a51..d8be5a6 100644
--- a/server/Makefile
+++ b/server/Makefile
@@ -524,7 +524,7 @@ build/gen/lord_version.h: FORCE
@printf '#define LORD_VERSION "%s"\n#define LORD_CHANNEL "%s"\n#define LORD_BUILD "%s"\n' \
'$(or $(LORD_VERSION),0.0.0)' '$(LORD_CHANNEL)' '$(shell printf %s '$(LORD_BUILD)' | tr -cd 'A-Za-z0-9.+~-')' > [email protected]
@if cmp -s [email protected] $@; then rm -f [email protected]; else mv [email protected] $@; fi
-build/obj/ui/js.o build/obj/ui/js_sys.o build/obj/term/pty.o: build/gen/lord_version.h
+build/obj/ui/js.o build/obj/ui/js_sys.o build/obj/ui/js_hw.o build/obj/term/pty.o: build/gen/lord_version.h
# Verified system code (src/sec/codesig.c, docs/SIGNING.md "Verified system code"). RELEASE=1: a
# release build, which only runs a manifest signed with the LordOS release key (no development mode).
# CODE_PUBKEY=<64 hex>: a TEST build that trusts a throwaway key instead of the release key (VM tests
diff --git a/server/src/sysreport/sysreport_out.c b/server/src/sysreport/sysreport_out.c
index b52894d..988580d 100644
--- a/server/src/sysreport/sysreport_out.c
+++ b/server/src/sysreport/sysreport_out.c
@@ -217,7 +217,7 @@ char *sysreport_markdown(const SysReport *r) {
char t[256], u[64];
const SrMachine *m = &r->machine;
hb_printf(&b, "# System report\n\n");
- hb_printf(&b, "Made on %s by `lordos-sysreport` (schema %d). It lists the hardware and what the system made of it; it holds no serial numbers, addresses, host or user names.\n\n", r->date, r->schema);
+ hb_printf(&b, "Made on %s by LordOS's System Information (schema %d). It lists the hardware and what the system made of it; it holds no serial numbers, addresses, host or user names.\n\n", r->date, r->schema);
hb_printf(&b, "## Overview\n\n| | |\n|---|---|\n");
two(t, sizeof t, m->vendor, m->product);
diff --git a/server/src/ui/js_hw.c b/server/src/ui/js_hw.c
index 5795c16..625a3b6 100644
--- a/server/src/ui/js_hw.c
+++ b/server/src/ui/js_hw.c
@@ -25,6 +25,8 @@
* lordos-sysreport, no serials, addresses or names) plus
* session: how this session composes the screen and its
* GPU context (gpu/gpu.h gpu_info, lord_composition)
+ * lord.sysinfo.markdown() the same report as Markdown, as lordos-sysreport prints it,
+ * with a "This session" section (System Information's Report tab)
* lord.fan.status() / setProfile(p) / setCurve(pts) / force(v) / caseConfig() (js_fan.c, lord-fand)
* lord.browserFrame.apply(on, which) Settings → Appearance → "Browsers: tabs in the title bar":
* one preference in the user's Chromium/Firefox profiles
@@ -44,6 +46,7 @@
#include "../hw/hwscan.h"
#include "../gpu/gpu.h"
#include "../sysreport/sysreport.h"
+#include "lord_version.h" /* build/gen: the version for the report */
#include "../hw/mimeapps.h"
#include "../hw/notifyd.h"
#include "../hw/ppd.h"
@@ -374,12 +377,20 @@ static const JSCFunctionListEntry hwinfo_funcs[] = { JS_CFUNC_DEF("scan", 0, f_h
/* ---- lord.sysinfo (System Information, docs/BENCHMARK.md) ---- */
+/* The report of this machine (or of the development fixture), with LordOS's version; NULL on OOM. */
+static SysReport *sysinfo_collect(void) {
+ SysReport *r = malloc(sizeof *r);
+ if (!r) return NULL;
+ sysreport_collect(r, hwscan_root(), NULL, NULL); /* the same development fixtures as the Store's */
+ snprintf(r->sw.lordos, sizeof r->sw.lordos, "%s%s%s", LORD_VERSION, LORD_CHANNEL[0] ? "-" : "", LORD_CHANNEL);
+ return r;
+}
+
static JSValue f_sysinfo_report(JSContext *c, JSValueConst t, int argc, JSValueConst *argv) {
(void)t; (void)argc; (void)argv;
- SysReport *r = malloc(sizeof *r);
+ const char *root = hwscan_root();
+ SysReport *r = sysinfo_collect();
if (!r) return JS_NULL;
- const char *root = hwscan_root(); /* the same development fixtures as the Store's */
- sysreport_collect(r, root, NULL, NULL);
JSValue v = json_or_null(c, sysreport_json(r));
free(r);
if (!JS_IsObject(v)) return v;
@@ -397,7 +408,37 @@ static JSValue f_sysinfo_report(JSContext *c, JSValueConst t, int argc, JSValueC
return v;
}
-static const JSCFunctionListEntry sysinfo_funcs[] = { JS_CFUNC_DEF("report", 0, f_sysinfo_report) };
+static JSValue f_sysinfo_markdown(JSContext *c, JSValueConst t, int argc, JSValueConst *argv) {
+ (void)t; (void)argc; (void)argv;
+ SysReport *r = sysinfo_collect();
+ char *md = r ? sysreport_markdown(r) : NULL;
+ free(r);
+ if (!md) return JS_NULL;
+ GpuInfo g;
+ gpu_info(&g);
+ const char *comp = lord_composition();
+ char sess[512];
+ if (!strcmp(comp, "gpu"))
+ snprintf(sess, sizeof sess, "\n## This session\n\nThe screen is composed on the GPU (%s); %lu frames shown by direct scanout since the session started.\n",
+ g.renderer, g.scanouts);
+ else
+ snprintf(sess, sizeof sess, "\n## This session\n\nThe screen is composed on the CPU (`%s`%s%s).\n",
+ comp, !strcmp(comp, "gpu-off") && g.why[0] ? ", GPU: " : "", !strcmp(comp, "gpu-off") ? g.why : "");
+ size_t a = strlen(md), b = strlen(sess);
+ char *all = malloc(a + b + 1);
+ if (!all) { free(md); return JS_NULL; }
+ memcpy(all, md, a);
+ memcpy(all + a, sess, b + 1);
+ free(md);
+ JSValue v = JS_NewString(c, all);
+ free(all);
+ return v;
+}
+
+static const JSCFunctionListEntry sysinfo_funcs[] = {
+ JS_CFUNC_DEF("report", 0, f_sysinfo_report),
+ JS_CFUNC_DEF("markdown", 0, f_sysinfo_markdown),
+};
/* ---- lord.browserFrame (Settings → Appearance; hw/brframe.c, docs/WAYLAND.md) ---- */
diff --git a/server/tests/sysinfo_model_test.mjs b/server/tests/sysinfo_model_test.mjs
index 2fb8564..58df5d1 100644
--- a/server/tests/sysinfo_model_test.mjs
+++ b/server/tests/sysinfo_model_test.mjs
@@ -1,7 +1,7 @@
// sysinfo_model_test.mjs — System Information's model (apps/sysinfo/model.js, 0.8.5): the GPU layers,
// the reasons for CPU composition, the Compatibility panel and the Hardware sections. Run by
// tests/run_suites.sh (needs node).
-import { compositionReason, cardLayers, sessionLayers, compatibility, hardwareSections, throttleFlags, machineName } from '../../apps/sysinfo/model.js';
+import { compositionReason, cardLayers, sessionLayers, compatibility, hardwareSections, throttleFlags, machineName, reportFileName, reportJson } from '../../apps/sysinfo/model.js';
let n = 0, bad = 0;
const eq = (what, got, want) => {
@@ -81,5 +81,13 @@ eq('throttle 0x50000', throttleFlags(0x50000), { underVoltageNow: false, cappedN
eq('throttle unknown', [throttleFlags(null), throttleFlags(-1)], [null, null]);
eq('names', [machineName(vm), machineName({ machine: { model: 'Raspberry Pi 5 Model B Rev 1.0' } }), machineName({})], ['QEMU Standard PC', 'Raspberry Pi 5 Model B Rev 1.0', '']);
+// ---- the Report tab ----
+const taken = new Set(['lordos-report-2026-10-26.md', 'lordos-report-2026-10-26-2.md']);
+eq('file names', [reportFileName('2026-10-26', 'md', (n) => taken.has(n)), reportFileName('2026-10-26', 'json', (n) => taken.has(n))],
+ ['lordos-report-2026-10-26-3.md', 'lordos-report-2026-10-26.json']);
+eq('a strange date never reaches the name', reportFileName('../../x', 'md', () => false), 'lordos-report-today.md');
+eq('all taken', reportFileName('2026-10-26', 'md', () => true), null);
+eq('json text', reportJson({ schema: 1, cpu: { cores: 8 } }), '{\n "schema": 1,\n "cpu": {\n "cores": 8\n }\n}\n');
+
console.log(`sysinfo-model-test: ${n - bad} ok, ${bad} failed`);
process.exit(bad ? 1 : 0);