Skip to content

Commit

Permalink
tests: Add trivial json formatting test
Browse files Browse the repository at this point in the history
  • Loading branch information
hramrach committed Jan 17, 2024
1 parent 989f387 commit e06d99d
Show file tree
Hide file tree
Showing 165 changed files with 983 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,18 @@ MANPAGES := $(LIBMAN3FILES) $(LIBMAN5FILES) $(PROGDETECTMAN8FILES) $(PROGDUMPMAN

check:: test

test:: shellcheck test-lib
test:: shellcheck test-sensors test-lib

shellcheck::
shellcheck $(SHELLCHECKFILES)

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:"
Expand Down
Loading

0 comments on commit e06d99d

Please sign in to comment.