aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-27 22:42:45 +0000
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-27 22:42:45 +0000
commit62a6c04c1af29bed1153a7deb01fa57fa5cc89d1 (patch)
tree4897c6685a17940548778dd5e19b0e0dbb11a12d /test
parentdebian: 2.4-1 (diff)
parentupdate example screenshot (diff)
downloadlinux-status-62a6c04c1af29bed1153a7deb01fa57fa5cc89d1.tar.gz
linux-status-62a6c04c1af29bed1153a7deb01fa57fa5cc89d1.zip
Merge tag 'v2.4.1' into debian
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() {