aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-27 23:23:43 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-27 23:23:43 +0200
commite249b08a095ecd1bba5726951b12dfff21206689 (patch)
tree3752319993c2af3f4cdd4604b22cbb1c7de7d72e /test
parentexpose thermal info via /thermal (diff)
downloadlinux-status-e249b08a095ecd1bba5726951b12dfff21206689.tar.gz
linux-status-e249b08a095ecd1bba5726951b12dfff21206689.zip
test: check thermal info
Diffstat (limited to '')
-rwxr-xr-xtest/test.sh13
1 files changed, 8 insertions, 5 deletions
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' '<link rel="stylesheet" href="css/bootstrap.min.css">' '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() {