From e249b08a095ecd1bba5726951b12dfff21206689 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 27 Jul 2023 23:23:43 +0200 Subject: test: check thermal info --- test/test.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/test.sh b/test/test.sh index aaf80fd..c6366f7 100755 --- a/test/test.sh +++ b/test/test.sh @@ -141,10 +141,11 @@ run_curl_tests() { run_curl_test '/index.html' '' 'var status_refresh_interval_seconds' # /status returns a JSON with a number of fields: - run_curl_test '/status' '"hostname":' '"system":' '"user":' - - # /top is a `top` output: + run_curl_test '/status' '"hostname":' '"thermal":' '"system":' '"user":' + # /top is `top` output: run_curl_test '/top' 'load average:' + # /thermal is also an endpoint: + run_curl_test '/thermal' } cgi_check_header() { @@ -187,9 +188,11 @@ run_cgi_tests() { # Check that app.py still works as a CGI script. # /status returns a JSON with a number of fields: - run_cgi_test 'status' '"hostname":' '"system":' '"user":' - # /top is a `top` output: + run_cgi_test 'status' '"hostname":' '"thermal":' '"system":' '"user":' + # /top is `top` output: run_cgi_test 'top' 'load average:' + # /thermal is also an endpoint: + run_cgi_test 'thermal' } main() { -- cgit v1.2.3