]> git.ipfire.org Git - thirdparty/lm-sensors.git/commitdiff
sensors: Test that JSON is well-formed on read error master
authorMichal Suchanek <msuchanek@suse.de>
Fri, 24 Apr 2026 07:49:28 +0000 (09:49 +0200)
committerMichal Suchánek <hramrach@gmail.com>
Wed, 6 May 2026 14:19:44 +0000 (14:19 +0000)
Fixes: #121 #513
167 files changed:
.github/workflows/debian.yml
Makefile
prog/sensors/test/data/laptop-err-j.json [new file with mode: 0644]
prog/sensors/test/data/laptop-err.json [new file with mode: 0644]
prog/sensors/test/data/laptop-err/class/hwmon/hwmon0 [new symlink]
prog/sensors/test/data/laptop-err/class/hwmon/hwmon1 [new symlink]
prog/sensors/test/data/laptop-err/class/hwmon/hwmon2 [new symlink]
prog/sensors/test/data/laptop-err/class/hwmon/hwmon3 [new symlink]
prog/sensors/test/data/laptop-err/class/hwmon/hwmon4 [new symlink]
prog/sensors/test/data/laptop-err/class/hwmon/hwmon5 [new symlink]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/device [new symlink]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/name [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/async [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/control [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_active_kids [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_active_time [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_enabled [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_status [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_suspended_time [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_usage [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/subsystem [new symlink]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/uevent [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/curr1_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/device [new symlink]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/in0_input [new symlink]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/name [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/async [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/control [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_active_kids [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_active_time [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_enabled [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_status [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_suspended_time [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_usage [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/subsystem [new symlink]
prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/uevent [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/device [new symlink]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/name [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/async [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/control [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_active_kids [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_active_time [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_enabled [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_status [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_suspended_time [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_usage [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/subsystem [new symlink]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_alarm [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_label [new symlink]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_max [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_min [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/uevent [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/device [new symlink]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/name [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/async [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/control [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_active_kids [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_active_time [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_enabled [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_status [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_suspended_time [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_usage [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/subsystem [new symlink]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp10_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp10_crit_alarm [new symlink]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp10_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp10_label [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp10_max [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp11_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp11_crit_alarm [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp11_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp11_label [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp11_max [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp12_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp12_crit_alarm [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp12_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp12_label [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp12_max [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp13_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp13_crit_alarm [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp13_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp13_label [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp13_max [new symlink]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp1_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp1_crit_alarm [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp1_label [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp1_max [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp2_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp2_crit_alarm [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp2_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp2_label [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp2_max [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp3_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp3_crit_alarm [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp3_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp3_label [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp3_max [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp4_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp4_crit_alarm [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp4_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp4_label [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp4_max [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp5_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp5_crit_alarm [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp5_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp5_label [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp5_max [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp6_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp6_crit_alarm [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp6_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp6_label [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp6_max [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp7_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp7_crit_alarm [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp7_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp7_label [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp7_max [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp8_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp8_crit_alarm [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp8_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp8_label [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp8_max [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp9_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp9_crit_alarm [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp9_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp9_label [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp9_max [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/uevent [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/device [new symlink]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/name [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/async [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/control [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_active_kids [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_active_time [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_enabled [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_status [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_suspended_time [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_usage [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/subsystem [new symlink]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/temp1_input [new symlink]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/uevent [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/device [new symlink]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/name [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/async [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/control [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_active_kids [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_active_time [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_enabled [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_status [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_suspended_time [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_usage [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/subsystem [new symlink]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp1_crit [new symlink]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp1_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp2_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp2_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp3_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp3_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp4_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp4_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp5_crit [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp5_input [new file with mode: 0644]
prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/uevent [new file with mode: 0644]
prog/sensors/test/data/laptop-j.json [new file with mode: 0644]

index 45b31de7776ddf6ed465d1450e0dd7fabb12ef38..6262d77bf7f15115af5939630e4e10ff28b975eb 100644 (file)
@@ -23,7 +23,7 @@ jobs:
       - name: 🧰 Install tools
         run: |
           sudo apt-get update
       - name: 🧰 Install tools
         run: |
           sudo apt-get update
-          sudo apt-get install libtest-cmd-perl librrd-dev valgrind sed \
+          sudo apt-get install libtest-cmd-perl librrd-dev valgrind sed jq \
             libcapture-tiny-perl libdatetime-perl libdevel-cover-perl libdigest-md5-perl libfile-spec-perl libjson-xs-perl libmodule-load-conditional-perl libscalar-list-utils-perl libtime-hires-perl
       - name: 🏗️ Build code
         run: |
             libcapture-tiny-perl libdatetime-perl libdevel-cover-perl libdigest-md5-perl libfile-spec-perl libjson-xs-perl libmodule-load-conditional-perl libscalar-list-utils-perl libtime-hires-perl
       - name: 🏗️ Build code
         run: |
index 1320407bd11cc8e7bddad19057fcb30d273a593f..c543cbd4abff4ffe0e8b2fd7623fa588bdf008da 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -226,6 +226,9 @@ test-lib:: lib/test/test-scanner
 test-sensors:: prog/sensors/sensors
        LD_LIBRARY_PATH=lib SENSORS_SYSFS_ROOT=prog/sensors/test/data/laptop prog/sensors/sensors -c /dev/null -J | jq -S | diff -u prog/sensors/test/data/laptop.json -
        LD_LIBRARY_PATH=lib SENSORS_SYSFS_ROOT=prog/sensors/test/data/laptop prog/sensors/sensors -c /dev/null -J -f | jq -S | diff -u prog/sensors/test/data/laptop.f.json -
 test-sensors:: prog/sensors/sensors
        LD_LIBRARY_PATH=lib SENSORS_SYSFS_ROOT=prog/sensors/test/data/laptop prog/sensors/sensors -c /dev/null -J | jq -S | diff -u prog/sensors/test/data/laptop.json -
        LD_LIBRARY_PATH=lib SENSORS_SYSFS_ROOT=prog/sensors/test/data/laptop prog/sensors/sensors -c /dev/null -J -f | jq -S | diff -u prog/sensors/test/data/laptop.f.json -
+       LD_LIBRARY_PATH=lib SENSORS_SYSFS_ROOT=prog/sensors/test/data/laptop prog/sensors/sensors -c /dev/null -j | jq -S | diff -u prog/sensors/test/data/laptop-j.json -
+       LD_LIBRARY_PATH=lib SENSORS_SYSFS_ROOT=prog/sensors/test/data/laptop-err prog/sensors/sensors -c /dev/null -J | jq -S | diff -u prog/sensors/test/data/laptop-err.json -
+       LD_LIBRARY_PATH=lib SENSORS_SYSFS_ROOT=prog/sensors/test/data/laptop-err prog/sensors/sensors -c /dev/null -j | jq -S | diff -u prog/sensors/test/data/laptop-err-j.json -
 
 user ::
 user_install::
 
 user ::
 user_install::
diff --git a/prog/sensors/test/data/laptop-err-j.json b/prog/sensors/test/data/laptop-err-j.json
new file mode 100644 (file)
index 0000000..171ae26
--- /dev/null
@@ -0,0 +1,124 @@
+{
+  "BAT1-isa-00ba": {
+    "Adapter": "ISA adapter",
+    "curr1": {
+      "curr1_input": 0.000000
+    },
+    "in0": {}
+  },
+  "acpitz-isa-0000": {
+    "Adapter": "ISA adapter",
+    "temp1": {
+      "temp1_input": 43.800000
+    },
+    "temp2": {
+      "temp2_crit": 210.000000,
+      "temp2_input": 42.800000
+    },
+    "temp3": {
+      "temp3_crit": 210.000000,
+      "temp3_input": 43.800000
+    },
+    "temp4": {
+      "temp4_crit": 210.000000,
+      "temp4_input": 39.800000
+    },
+    "temp5": {
+      "temp5_crit": 210.000000,
+      "temp5_input": 29.800000
+    }
+  },
+  "coretemp-isa-0000": {
+    "Adapter": "ISA adapter",
+    "Core 0": {
+      "temp2_crit": 100.000000,
+      "temp2_crit_alarm": 0.000000,
+      "temp2_input": 41.000000,
+      "temp2_max": 100.000000
+    },
+    "Core 12": {
+      "temp5_crit": 100.000000,
+      "temp5_crit_alarm": 0.000000,
+      "temp5_input": 40.000000,
+      "temp5_max": 100.000000
+    },
+    "Core 16": {
+      "temp6_crit": 100.000000,
+      "temp6_crit_alarm": 0.000000,
+      "temp6_input": 40.000000,
+      "temp6_max": 100.000000
+    },
+    "Core 17": {
+      "temp7_crit": 100.000000,
+      "temp7_crit_alarm": 0.000000,
+      "temp7_input": 39.000000,
+      "temp7_max": 100.000000
+    },
+    "Core 18": {
+      "temp8_crit": 100.000000,
+      "temp8_crit_alarm": 0.000000,
+      "temp8_input": 39.000000,
+      "temp8_max": 100.000000
+    },
+    "Core 19": {
+      "temp9_crit": 100.000000,
+      "temp9_crit_alarm": 0.000000,
+      "temp9_input": 40.000000,
+      "temp9_max": 100.000000
+    },
+    "Core 20": {
+      "temp10_crit": 100.000000,
+      "temp10_input": 39.000000,
+      "temp10_max": 100.000000
+    },
+    "Core 21": {
+      "temp11_crit": 100.000000,
+      "temp11_crit_alarm": 0.000000,
+      "temp11_input": 41.000000,
+      "temp11_max": 100.000000
+    },
+    "Core 22": {
+      "temp12_crit": 100.000000,
+      "temp12_crit_alarm": 0.000000,
+      "temp12_input": 40.000000,
+      "temp12_max": 100.000000
+    },
+    "Core 23": {
+      "temp13_crit": 100.000000,
+      "temp13_crit_alarm": 0.000000,
+      "temp13_input": 39.000000
+    },
+    "Core 4": {
+      "temp3_crit": 100.000000,
+      "temp3_crit_alarm": 0.000000,
+      "temp3_input": 37.000000,
+      "temp3_max": 100.000000
+    },
+    "Core 8": {
+      "temp4_crit": 100.000000,
+      "temp4_crit_alarm": 0.000000,
+      "temp4_input": 39.000000,
+      "temp4_max": 100.000000
+    },
+    "Package id 0": {
+      "temp1_crit": 100.000000,
+      "temp1_crit_alarm": 0.000000,
+      "temp1_input": 42.000000,
+      "temp1_max": 100.000000
+    }
+  },
+  "iwlwifi_1-isa-0000": {
+    "Adapter": "ISA adapter",
+    "temp1": {}
+  },
+  "nvme-isa-0000": {
+    "Adapter": "ISA adapter",
+    "temp1": {
+      "temp1_alarm": 0.000000,
+      "temp1_crit": 93.850000,
+      "temp1_input": 36.850000,
+      "temp1_max": 89.850000,
+      "temp1_min": -5.150000
+    }
+  }
+}
diff --git a/prog/sensors/test/data/laptop-err.json b/prog/sensors/test/data/laptop-err.json
new file mode 100644 (file)
index 0000000..12c4e69
--- /dev/null
@@ -0,0 +1,384 @@
+{
+  "BAT1-isa-00ba": {
+    "Adapter": "ISA adapter",
+    "curr1": {
+      "input": {
+        "quantity": "current",
+        "unit": "A",
+        "value": 0
+      }
+    },
+    "in0": {}
+  },
+  "acpitz-isa-0000": {
+    "Adapter": "ISA adapter",
+    "temp1": {
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 43.8
+      }
+    },
+    "temp2": {
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 210
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 42.8
+      }
+    },
+    "temp3": {
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 210
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 43.8
+      }
+    },
+    "temp4": {
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 210
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 39.8
+      }
+    },
+    "temp5": {
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 210
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 29.8
+      }
+    }
+  },
+  "coretemp-isa-0000": {
+    "Adapter": "ISA adapter",
+    "temp1": {
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      },
+      "crit_alarm": {
+        "quantity": "boolean",
+        "value": 0
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 42
+      },
+      "label": "Package id 0",
+      "max": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      }
+    },
+    "temp10": {
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 39
+      },
+      "label": "Core 20",
+      "max": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      }
+    },
+    "temp11": {
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      },
+      "crit_alarm": {
+        "quantity": "boolean",
+        "value": 0
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 41
+      },
+      "label": "Core 21",
+      "max": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      }
+    },
+    "temp12": {
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      },
+      "crit_alarm": {
+        "quantity": "boolean",
+        "value": 0
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 40
+      },
+      "label": "Core 22",
+      "max": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      }
+    },
+    "temp13": {
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      },
+      "crit_alarm": {
+        "quantity": "boolean",
+        "value": 0
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 39
+      },
+      "label": "Core 23"
+    },
+    "temp2": {
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      },
+      "crit_alarm": {
+        "quantity": "boolean",
+        "value": 0
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 41
+      },
+      "label": "Core 0",
+      "max": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      }
+    },
+    "temp3": {
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      },
+      "crit_alarm": {
+        "quantity": "boolean",
+        "value": 0
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 37
+      },
+      "label": "Core 4",
+      "max": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      }
+    },
+    "temp4": {
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      },
+      "crit_alarm": {
+        "quantity": "boolean",
+        "value": 0
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 39
+      },
+      "label": "Core 8",
+      "max": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      }
+    },
+    "temp5": {
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      },
+      "crit_alarm": {
+        "quantity": "boolean",
+        "value": 0
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 40
+      },
+      "label": "Core 12",
+      "max": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      }
+    },
+    "temp6": {
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      },
+      "crit_alarm": {
+        "quantity": "boolean",
+        "value": 0
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 40
+      },
+      "label": "Core 16",
+      "max": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      }
+    },
+    "temp7": {
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      },
+      "crit_alarm": {
+        "quantity": "boolean",
+        "value": 0
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 39
+      },
+      "label": "Core 17",
+      "max": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      }
+    },
+    "temp8": {
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      },
+      "crit_alarm": {
+        "quantity": "boolean",
+        "value": 0
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 39
+      },
+      "label": "Core 18",
+      "max": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      }
+    },
+    "temp9": {
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      },
+      "crit_alarm": {
+        "quantity": "boolean",
+        "value": 0
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 40
+      },
+      "label": "Core 19",
+      "max": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 100
+      }
+    }
+  },
+  "iwlwifi_1-isa-0000": {
+    "Adapter": "ISA adapter",
+    "temp1": {}
+  },
+  "nvme-isa-0000": {
+    "Adapter": "ISA adapter",
+    "temp1": {
+      "alarm": {
+        "quantity": "boolean",
+        "value": 0
+      },
+      "crit": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 93.84999999999999
+      },
+      "input": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 36.85
+      },
+      "max": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": 89.84999999999999
+      },
+      "min": {
+        "quantity": "temperature",
+        "unit": "°C",
+        "value": -5.15
+      }
+    }
+  }
+}
diff --git a/prog/sensors/test/data/laptop-err/class/hwmon/hwmon0 b/prog/sensors/test/data/laptop-err/class/hwmon/hwmon0
new file mode 120000 (symlink)
index 0000000..29d5056
--- /dev/null
@@ -0,0 +1 @@
+../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/class/hwmon/hwmon1 b/prog/sensors/test/data/laptop-err/class/hwmon/hwmon1
new file mode 120000 (symlink)
index 0000000..61f82fb
--- /dev/null
@@ -0,0 +1 @@
+../../devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/class/hwmon/hwmon2 b/prog/sensors/test/data/laptop-err/class/hwmon/hwmon2
new file mode 120000 (symlink)
index 0000000..6898f3a
--- /dev/null
@@ -0,0 +1 @@
+../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/class/hwmon/hwmon3 b/prog/sensors/test/data/laptop-err/class/hwmon/hwmon3
new file mode 120000 (symlink)
index 0000000..5e0cf98
--- /dev/null
@@ -0,0 +1 @@
+../../devices/virtual/thermal/thermal_zone5/hwmon3
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/class/hwmon/hwmon4 b/prog/sensors/test/data/laptop-err/class/hwmon/hwmon4
new file mode 120000 (symlink)
index 0000000..2f4e783
--- /dev/null
@@ -0,0 +1 @@
+../../devices/platform/coretemp.0/hwmon/hwmon4
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/class/hwmon/hwmon5 b/prog/sensors/test/data/laptop-err/class/hwmon/hwmon5
new file mode 120000 (symlink)
index 0000000..f757ff1
--- /dev/null
@@ -0,0 +1 @@
+../../devices/virtual/thermal/thermal_zone13/hwmon5
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/device b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/device
new file mode 120000 (symlink)
index 0000000..df9279f
--- /dev/null
@@ -0,0 +1 @@
+../../ACAD
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/name b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/name
new file mode 100644 (file)
index 0000000..0f57127
--- /dev/null
@@ -0,0 +1 @@
+ACAD
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/async b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/async
new file mode 100644 (file)
index 0000000..7a68b11
--- /dev/null
@@ -0,0 +1 @@
+disabled
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/control b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/control
new file mode 100644 (file)
index 0000000..865faf1
--- /dev/null
@@ -0,0 +1 @@
+auto
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_active_kids b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_active_kids
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_active_time b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_active_time
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_enabled b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_enabled
new file mode 100644 (file)
index 0000000..7a68b11
--- /dev/null
@@ -0,0 +1 @@
+disabled
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_status b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_status
new file mode 100644 (file)
index 0000000..ad7ccf7
--- /dev/null
@@ -0,0 +1 @@
+unsupported
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_suspended_time b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_suspended_time
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_usage b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/power/runtime_usage
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/subsystem b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/subsystem
new file mode 120000 (symlink)
index 0000000..68d2c3c
--- /dev/null
@@ -0,0 +1 @@
+../../../../../../../../../class/hwmon
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/uevent b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/ACPI0003:00/power_supply/ACAD/hwmon2/uevent
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/curr1_input b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/curr1_input
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/device b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/device
new file mode 120000 (symlink)
index 0000000..9d2d819
--- /dev/null
@@ -0,0 +1 @@
+../../BAT1
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/in0_input b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/in0_input
new file mode 120000 (symlink)
index 0000000..393cbc5
--- /dev/null
@@ -0,0 +1 @@
+/proc/self/mem
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/name b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/name
new file mode 100644 (file)
index 0000000..63aa3fa
--- /dev/null
@@ -0,0 +1 @@
+BAT1
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/async b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/async
new file mode 100644 (file)
index 0000000..7a68b11
--- /dev/null
@@ -0,0 +1 @@
+disabled
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/control b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/control
new file mode 100644 (file)
index 0000000..865faf1
--- /dev/null
@@ -0,0 +1 @@
+auto
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_active_kids b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_active_kids
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_active_time b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_active_time
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_enabled b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_enabled
new file mode 100644 (file)
index 0000000..7a68b11
--- /dev/null
@@ -0,0 +1 @@
+disabled
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_status b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_status
new file mode 100644 (file)
index 0000000..ad7ccf7
--- /dev/null
@@ -0,0 +1 @@
+unsupported
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_suspended_time b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_suspended_time
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_usage b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/power/runtime_usage
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/subsystem b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/subsystem
new file mode 120000 (symlink)
index 0000000..68d2c3c
--- /dev/null
@@ -0,0 +1 @@
+../../../../../../../../../class/hwmon
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/uevent b/prog/sensors/test/data/laptop-err/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:1e/PNP0C0A:00/power_supply/BAT1/hwmon0/uevent
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/device b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/device
new file mode 120000 (symlink)
index 0000000..615483f
--- /dev/null
@@ -0,0 +1 @@
+../../nvme0
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/name b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/name
new file mode 100644 (file)
index 0000000..9158fff
--- /dev/null
@@ -0,0 +1 @@
+nvme
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/async b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/async
new file mode 100644 (file)
index 0000000..7a68b11
--- /dev/null
@@ -0,0 +1 @@
+disabled
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/control b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/control
new file mode 100644 (file)
index 0000000..865faf1
--- /dev/null
@@ -0,0 +1 @@
+auto
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_active_kids b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_active_kids
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_active_time b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_active_time
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_enabled b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_enabled
new file mode 100644 (file)
index 0000000..7a68b11
--- /dev/null
@@ -0,0 +1 @@
+disabled
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_status b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_status
new file mode 100644 (file)
index 0000000..ad7ccf7
--- /dev/null
@@ -0,0 +1 @@
+unsupported
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_suspended_time b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_suspended_time
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_usage b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/power/runtime_usage
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/subsystem b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/subsystem
new file mode 120000 (symlink)
index 0000000..60ad84c
--- /dev/null
@@ -0,0 +1 @@
+../../../../../../../class/hwmon
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_alarm b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_alarm
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_crit b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_crit
new file mode 100644 (file)
index 0000000..1ffc5d8
--- /dev/null
@@ -0,0 +1 @@
+93850
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_input b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_input
new file mode 100644 (file)
index 0000000..90631d3
--- /dev/null
@@ -0,0 +1 @@
+36850
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_label b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_label
new file mode 120000 (symlink)
index 0000000..393cbc5
--- /dev/null
@@ -0,0 +1 @@
+/proc/self/mem
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_max b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_max
new file mode 100644 (file)
index 0000000..15d4c9b
--- /dev/null
@@ -0,0 +1 @@
+89850
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_min b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/temp1_min
new file mode 100644 (file)
index 0000000..e6133e6
--- /dev/null
@@ -0,0 +1 @@
+-5150
diff --git a/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/uevent b/prog/sensors/test/data/laptop-err/devices/pci0000:00/0000:00:06.0/0000:01:00.0/nvme/nvme0/hwmon1/uevent
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/device b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/device
new file mode 120000 (symlink)
index 0000000..faf75ed
--- /dev/null
@@ -0,0 +1 @@
+../../../coretemp.0
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/name b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/name
new file mode 100644 (file)
index 0000000..77ce462
--- /dev/null
@@ -0,0 +1 @@
+coretemp
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/async b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/async
new file mode 100644 (file)
index 0000000..7a68b11
--- /dev/null
@@ -0,0 +1 @@
+disabled
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/control b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/control
new file mode 100644 (file)
index 0000000..865faf1
--- /dev/null
@@ -0,0 +1 @@
+auto
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_active_kids b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_active_kids
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_active_time b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_active_time
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_enabled b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_enabled
new file mode 100644 (file)
index 0000000..7a68b11
--- /dev/null
@@ -0,0 +1 @@
+disabled
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_status b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_status
new file mode 100644 (file)
index 0000000..ad7ccf7
--- /dev/null
@@ -0,0 +1 @@
+unsupported
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_suspended_time b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_suspended_time
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_usage b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/power/runtime_usage
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/subsystem b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/subsystem
new file mode 120000 (symlink)
index 0000000..c02ab68
--- /dev/null
@@ -0,0 +1 @@
+../../../../../class/hwmon
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp10_crit b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp10_crit
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp10_crit_alarm b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp10_crit_alarm
new file mode 120000 (symlink)
index 0000000..393cbc5
--- /dev/null
@@ -0,0 +1 @@
+/proc/self/mem
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp10_input b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp10_input
new file mode 100644 (file)
index 0000000..dec6941
--- /dev/null
@@ -0,0 +1 @@
+39000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp10_label b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp10_label
new file mode 100644 (file)
index 0000000..88d2414
--- /dev/null
@@ -0,0 +1 @@
+Core 20
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp10_max b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp10_max
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp11_crit b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp11_crit
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp11_crit_alarm b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp11_crit_alarm
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp11_input b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp11_input
new file mode 100644 (file)
index 0000000..7ca5e37
--- /dev/null
@@ -0,0 +1 @@
+41000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp11_label b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp11_label
new file mode 100644 (file)
index 0000000..a7459de
--- /dev/null
@@ -0,0 +1 @@
+Core 21
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp11_max b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp11_max
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp12_crit b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp12_crit
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp12_crit_alarm b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp12_crit_alarm
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp12_input b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp12_input
new file mode 100644 (file)
index 0000000..c5da56a
--- /dev/null
@@ -0,0 +1 @@
+40000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp12_label b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp12_label
new file mode 100644 (file)
index 0000000..c6932e7
--- /dev/null
@@ -0,0 +1 @@
+Core 22
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp12_max b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp12_max
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp13_crit b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp13_crit
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp13_crit_alarm b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp13_crit_alarm
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp13_input b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp13_input
new file mode 100644 (file)
index 0000000..dec6941
--- /dev/null
@@ -0,0 +1 @@
+39000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp13_label b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp13_label
new file mode 100644 (file)
index 0000000..9539ccf
--- /dev/null
@@ -0,0 +1 @@
+Core 23
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp13_max b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp13_max
new file mode 120000 (symlink)
index 0000000..393cbc5
--- /dev/null
@@ -0,0 +1 @@
+/proc/self/mem
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp1_crit b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp1_crit
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp1_crit_alarm b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp1_crit_alarm
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input
new file mode 100644 (file)
index 0000000..6096bd1
--- /dev/null
@@ -0,0 +1 @@
+42000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp1_label b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp1_label
new file mode 100644 (file)
index 0000000..7d67615
--- /dev/null
@@ -0,0 +1 @@
+Package id 0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp1_max b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp1_max
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp2_crit b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp2_crit
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp2_crit_alarm b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp2_crit_alarm
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp2_input b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp2_input
new file mode 100644 (file)
index 0000000..7ca5e37
--- /dev/null
@@ -0,0 +1 @@
+41000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp2_label b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp2_label
new file mode 100644 (file)
index 0000000..09f8cbd
--- /dev/null
@@ -0,0 +1 @@
+Core 0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp2_max b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp2_max
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp3_crit b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp3_crit
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp3_crit_alarm b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp3_crit_alarm
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp3_input b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp3_input
new file mode 100644 (file)
index 0000000..62dc12e
--- /dev/null
@@ -0,0 +1 @@
+37000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp3_label b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp3_label
new file mode 100644 (file)
index 0000000..a440e16
--- /dev/null
@@ -0,0 +1 @@
+Core 4
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp3_max b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp3_max
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp4_crit b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp4_crit
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp4_crit_alarm b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp4_crit_alarm
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp4_input b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp4_input
new file mode 100644 (file)
index 0000000..dec6941
--- /dev/null
@@ -0,0 +1 @@
+39000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp4_label b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp4_label
new file mode 100644 (file)
index 0000000..301cd21
--- /dev/null
@@ -0,0 +1 @@
+Core 8
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp4_max b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp4_max
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp5_crit b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp5_crit
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp5_crit_alarm b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp5_crit_alarm
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp5_input b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp5_input
new file mode 100644 (file)
index 0000000..c5da56a
--- /dev/null
@@ -0,0 +1 @@
+40000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp5_label b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp5_label
new file mode 100644 (file)
index 0000000..75832e3
--- /dev/null
@@ -0,0 +1 @@
+Core 12
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp5_max b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp5_max
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp6_crit b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp6_crit
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp6_crit_alarm b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp6_crit_alarm
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp6_input b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp6_input
new file mode 100644 (file)
index 0000000..c5da56a
--- /dev/null
@@ -0,0 +1 @@
+40000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp6_label b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp6_label
new file mode 100644 (file)
index 0000000..37d605e
--- /dev/null
@@ -0,0 +1 @@
+Core 16
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp6_max b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp6_max
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp7_crit b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp7_crit
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp7_crit_alarm b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp7_crit_alarm
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp7_input b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp7_input
new file mode 100644 (file)
index 0000000..dec6941
--- /dev/null
@@ -0,0 +1 @@
+39000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp7_label b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp7_label
new file mode 100644 (file)
index 0000000..4d8b8ac
--- /dev/null
@@ -0,0 +1 @@
+Core 17
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp7_max b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp7_max
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp8_crit b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp8_crit
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp8_crit_alarm b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp8_crit_alarm
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp8_input b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp8_input
new file mode 100644 (file)
index 0000000..dec6941
--- /dev/null
@@ -0,0 +1 @@
+39000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp8_label b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp8_label
new file mode 100644 (file)
index 0000000..c7e1c32
--- /dev/null
@@ -0,0 +1 @@
+Core 18
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp8_max b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp8_max
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp9_crit b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp9_crit
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp9_crit_alarm b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp9_crit_alarm
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp9_input b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp9_input
new file mode 100644 (file)
index 0000000..c5da56a
--- /dev/null
@@ -0,0 +1 @@
+40000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp9_label b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp9_label
new file mode 100644 (file)
index 0000000..89d23f0
--- /dev/null
@@ -0,0 +1 @@
+Core 19
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp9_max b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/temp9_max
new file mode 100644 (file)
index 0000000..f7393e8
--- /dev/null
@@ -0,0 +1 @@
+100000
diff --git a/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/uevent b/prog/sensors/test/data/laptop-err/devices/platform/coretemp.0/hwmon/hwmon4/uevent
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/device b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/device
new file mode 120000 (symlink)
index 0000000..014881e
--- /dev/null
@@ -0,0 +1 @@
+../../thermal_zone13
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/name b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/name
new file mode 100644 (file)
index 0000000..9d35f25
--- /dev/null
@@ -0,0 +1 @@
+iwlwifi_1
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/async b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/async
new file mode 100644 (file)
index 0000000..7a68b11
--- /dev/null
@@ -0,0 +1 @@
+disabled
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/control b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/control
new file mode 100644 (file)
index 0000000..865faf1
--- /dev/null
@@ -0,0 +1 @@
+auto
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_active_kids b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_active_kids
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_active_time b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_active_time
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_enabled b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_enabled
new file mode 100644 (file)
index 0000000..7a68b11
--- /dev/null
@@ -0,0 +1 @@
+disabled
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_status b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_status
new file mode 100644 (file)
index 0000000..ad7ccf7
--- /dev/null
@@ -0,0 +1 @@
+unsupported
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_suspended_time b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_suspended_time
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_usage b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/power/runtime_usage
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/subsystem b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/subsystem
new file mode 120000 (symlink)
index 0000000..c02ab68
--- /dev/null
@@ -0,0 +1 @@
+../../../../../class/hwmon
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/temp1_input b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/temp1_input
new file mode 120000 (symlink)
index 0000000..393cbc5
--- /dev/null
@@ -0,0 +1 @@
+/proc/self/mem
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/uevent b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone13/hwmon5/uevent
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/device b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/device
new file mode 120000 (symlink)
index 0000000..2f70350
--- /dev/null
@@ -0,0 +1 @@
+../../thermal_zone5
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/name b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/name
new file mode 100644 (file)
index 0000000..a29f406
--- /dev/null
@@ -0,0 +1 @@
+acpitz
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/async b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/async
new file mode 100644 (file)
index 0000000..7a68b11
--- /dev/null
@@ -0,0 +1 @@
+disabled
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/control b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/control
new file mode 100644 (file)
index 0000000..865faf1
--- /dev/null
@@ -0,0 +1 @@
+auto
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_active_kids b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_active_kids
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_active_time b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_active_time
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_enabled b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_enabled
new file mode 100644 (file)
index 0000000..7a68b11
--- /dev/null
@@ -0,0 +1 @@
+disabled
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_status b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_status
new file mode 100644 (file)
index 0000000..ad7ccf7
--- /dev/null
@@ -0,0 +1 @@
+unsupported
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_suspended_time b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_suspended_time
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_usage b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/power/runtime_usage
new file mode 100644 (file)
index 0000000..573541a
--- /dev/null
@@ -0,0 +1 @@
+0
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/subsystem b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/subsystem
new file mode 120000 (symlink)
index 0000000..c02ab68
--- /dev/null
@@ -0,0 +1 @@
+../../../../../class/hwmon
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp1_crit b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp1_crit
new file mode 120000 (symlink)
index 0000000..393cbc5
--- /dev/null
@@ -0,0 +1 @@
+/proc/self/mem
\ No newline at end of file
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp1_input b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp1_input
new file mode 100644 (file)
index 0000000..ff8eb3f
--- /dev/null
@@ -0,0 +1 @@
+43800
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp2_crit b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp2_crit
new file mode 100644 (file)
index 0000000..ddf9bed
--- /dev/null
@@ -0,0 +1 @@
+210000
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp2_input b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp2_input
new file mode 100644 (file)
index 0000000..654113c
--- /dev/null
@@ -0,0 +1 @@
+42800
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp3_crit b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp3_crit
new file mode 100644 (file)
index 0000000..ddf9bed
--- /dev/null
@@ -0,0 +1 @@
+210000
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp3_input b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp3_input
new file mode 100644 (file)
index 0000000..ff8eb3f
--- /dev/null
@@ -0,0 +1 @@
+43800
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp4_crit b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp4_crit
new file mode 100644 (file)
index 0000000..ddf9bed
--- /dev/null
@@ -0,0 +1 @@
+210000
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp4_input b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp4_input
new file mode 100644 (file)
index 0000000..06345c2
--- /dev/null
@@ -0,0 +1 @@
+39800
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp5_crit b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp5_crit
new file mode 100644 (file)
index 0000000..ddf9bed
--- /dev/null
@@ -0,0 +1 @@
+210000
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp5_input b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/temp5_input
new file mode 100644 (file)
index 0000000..7cb3518
--- /dev/null
@@ -0,0 +1 @@
+29800
diff --git a/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/uevent b/prog/sensors/test/data/laptop-err/devices/virtual/thermal/thermal_zone5/hwmon3/uevent
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/prog/sensors/test/data/laptop-j.json b/prog/sensors/test/data/laptop-j.json
new file mode 100644 (file)
index 0000000..865b309
--- /dev/null
@@ -0,0 +1,131 @@
+{
+  "BAT1-isa-00ba": {
+    "Adapter": "ISA adapter",
+    "curr1": {
+      "curr1_input": 0.000000
+    },
+    "in0": {
+      "in0_input": 16.575000
+    }
+  },
+  "acpitz-isa-0000": {
+    "Adapter": "ISA adapter",
+    "temp1": {
+      "temp1_crit": 210.000000,
+      "temp1_input": 43.800000
+    },
+    "temp2": {
+      "temp2_crit": 210.000000,
+      "temp2_input": 42.800000
+    },
+    "temp3": {
+      "temp3_crit": 210.000000,
+      "temp3_input": 43.800000
+    },
+    "temp4": {
+      "temp4_crit": 210.000000,
+      "temp4_input": 39.800000
+    },
+    "temp5": {
+      "temp5_crit": 210.000000,
+      "temp5_input": 29.800000
+    }
+  },
+  "coretemp-isa-0000": {
+    "Adapter": "ISA adapter",
+    "Core 0": {
+      "temp2_crit": 100.000000,
+      "temp2_crit_alarm": 0.000000,
+      "temp2_input": 41.000000,
+      "temp2_max": 100.000000
+    },
+    "Core 12": {
+      "temp5_crit": 100.000000,
+      "temp5_crit_alarm": 0.000000,
+      "temp5_input": 40.000000,
+      "temp5_max": 100.000000
+    },
+    "Core 16": {
+      "temp6_crit": 100.000000,
+      "temp6_crit_alarm": 0.000000,
+      "temp6_input": 40.000000,
+      "temp6_max": 100.000000
+    },
+    "Core 17": {
+      "temp7_crit": 100.000000,
+      "temp7_crit_alarm": 0.000000,
+      "temp7_input": 39.000000,
+      "temp7_max": 100.000000
+    },
+    "Core 18": {
+      "temp8_crit": 100.000000,
+      "temp8_crit_alarm": 0.000000,
+      "temp8_input": 39.000000,
+      "temp8_max": 100.000000
+    },
+    "Core 19": {
+      "temp9_crit": 100.000000,
+      "temp9_crit_alarm": 0.000000,
+      "temp9_input": 40.000000,
+      "temp9_max": 100.000000
+    },
+    "Core 20": {
+      "temp10_crit": 100.000000,
+      "temp10_crit_alarm": 0.000000,
+      "temp10_input": 39.000000,
+      "temp10_max": 100.000000
+    },
+    "Core 21": {
+      "temp11_crit": 100.000000,
+      "temp11_crit_alarm": 0.000000,
+      "temp11_input": 41.000000,
+      "temp11_max": 100.000000
+    },
+    "Core 22": {
+      "temp12_crit": 100.000000,
+      "temp12_crit_alarm": 0.000000,
+      "temp12_input": 40.000000,
+      "temp12_max": 100.000000
+    },
+    "Core 23": {
+      "temp13_crit": 100.000000,
+      "temp13_crit_alarm": 0.000000,
+      "temp13_input": 39.000000,
+      "temp13_max": 100.000000
+    },
+    "Core 4": {
+      "temp3_crit": 100.000000,
+      "temp3_crit_alarm": 0.000000,
+      "temp3_input": 37.000000,
+      "temp3_max": 100.000000
+    },
+    "Core 8": {
+      "temp4_crit": 100.000000,
+      "temp4_crit_alarm": 0.000000,
+      "temp4_input": 39.000000,
+      "temp4_max": 100.000000
+    },
+    "Package id 0": {
+      "temp1_crit": 100.000000,
+      "temp1_crit_alarm": 0.000000,
+      "temp1_input": 42.000000,
+      "temp1_max": 100.000000
+    }
+  },
+  "iwlwifi_1-isa-0000": {
+    "Adapter": "ISA adapter",
+    "temp1": {
+      "temp1_input": 44.000000
+    }
+  },
+  "nvme-isa-0000": {
+    "Adapter": "ISA adapter",
+    "Composite": {
+      "temp1_alarm": 0.000000,
+      "temp1_crit": 93.850000,
+      "temp1_input": 36.850000,
+      "temp1_max": 89.850000,
+      "temp1_min": -5.150000
+    }
+  }
+}