mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-11 16:40:16 +00:00
tests: Add trivial json formatting test
This commit is contained in:
1 parent
989f387a9a
commit
e06d99df7c
165 files changed
+983
-1
No files matched your search
@@ -197,7 +197,7 @@ MANPAGES := $(LIBMAN3FILES) $(LIBMAN5FILES) $(PROGDETECTMAN8FILES) $(PROGDUMPMAN
|
||||
|
||||
check:: test
|
||||
|
||||
test:: shellcheck test-lib
|
||||
test:: shellcheck test-sensors test-lib
|
||||
|
||||
shellcheck::
|
||||
shellcheck $(SHELLCHECKFILES)
|
||||
@@ -205,6 +205,10 @@ shellcheck::
|
||||
test-lib:: lib/test/test-scanner
|
||||
cd lib/test ; ./test-scanner.pl
|
||||
|
||||
test-sensors:: prog/sensors/sensors
|
||||
LD_LIBRARY_PATH=lib SENSORS_SYSFS_ROOT=prog/sensors/test/data/laptop prog/sensors/sensors -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 -J -f | jq -S | diff -u prog/sensors/test/data/laptop.f.json -
|
||||
|
||||
user ::
|
||||
user_install::
|
||||
@echo "*** Important notes:"
|
||||
|
||||
Reference in new issue
Block a user