feat(tools): add system.yml recipe to diag

This should enable the collection of more detailed information about the
operating system and basic CPU details.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
This commit is contained in:
Frantisek Hrbata 2025-01-27 13:18:40 +01:00
parent f7b754acfa
commit 350dbaf73c
2 changed files with 49 additions and 14 deletions

View File

@ -6,7 +6,6 @@ steps:
cmds:
- exec:
cmd: 'idf.py --version'
timeout: 10
output: esp_idf.ver
- name: 'ESP-IDF Git Version'
@ -14,16 +13,3 @@ steps:
- exec:
cmd: 'git -C ${IDF_PATH} describe'
output: esp_idf_git.ver
- name: 'Platform Information'
cmds:
- exec:
cmd:
- python
- -c
- |
import platform
print(f'system: {platform.system()}')
print(f'release: {platform.release()}')
print(f'machine: {platform.machine()}')
output: platform.inf

View File

@ -0,0 +1,49 @@
description: System information
tags: [system, base, project]
steps:
- name: 'Platform Information'
cmds:
- exec:
cmd:
- python
- -c
- |
import platform
print(f'system: {platform.system()}')
print(f'release: {platform.release()}')
print(f'machine: {platform.machine()}')
output: platform.inf
- name: 'Linux System Information'
system: Linux
output: linux
cmds:
- file:
path: '/proc/cpuinfo'
- file:
path: '/etc/os-release'
- exec:
cmd: 'uname -a'
output: uname
- name: 'Darwin Information'
system: Darwin
output: darwin
cmds:
- exec:
cmd: 'sysctl machdep.cpu'
output: machdep.cpu
- exec:
cmd: 'sw_vers'
output: sw_vers
- exec:
cmd: 'uname -a'
output: uname
- name: 'Windows Information'
system: Windows
output: windows
cmds:
- exec:
cmd: 'systeminfo'
output: systeminfo