summaryrefslogtreecommitdiff
path: root/testcases/005-cpu-temp-max-threshold-format
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@users.noreply.github.com>2016-11-16 13:45:59 -0800
committerGitHub <noreply@github.com>2016-11-16 13:45:59 -0800
commitb91e2a4b71911bf2767865580e519c93b26390e8 (patch)
treeddd829d68420558612fcf189e214d842757fb5b8 /testcases/005-cpu-temp-max-threshold-format
parent7b63102b9d646ef40edd76a3132f11ab74d5efd6 (diff)
parent562f6e383d84e16ad3ff9d9c777c89e8150a924f (diff)
Merge pull request #179 from mihaicmn/feature-threshold-format
Provide format_above_threshold/format_below_threshold options
Diffstat (limited to 'testcases/005-cpu-temp-max-threshold-format')
-rw-r--r--testcases/005-cpu-temp-max-threshold-format/expected_output.txt1
-rw-r--r--testcases/005-cpu-temp-max-threshold-format/i3status.conf11
-rw-r--r--testcases/005-cpu-temp-max-threshold-format/temp1_input1
3 files changed, 13 insertions, 0 deletions
diff --git a/testcases/005-cpu-temp-max-threshold-format/expected_output.txt b/testcases/005-cpu-temp-max-threshold-format/expected_output.txt
new file mode 100644
index 0000000..5ba90c9
--- /dev/null
+++ b/testcases/005-cpu-temp-max-threshold-format/expected_output.txt
@@ -0,0 +1 @@
+ABOVE_THRESHOLD: 50 °C
diff --git a/testcases/005-cpu-temp-max-threshold-format/i3status.conf b/testcases/005-cpu-temp-max-threshold-format/i3status.conf
new file mode 100644
index 0000000..10c6b3c
--- /dev/null
+++ b/testcases/005-cpu-temp-max-threshold-format/i3status.conf
@@ -0,0 +1,11 @@
+general {
+ output_format = "none"
+}
+
+order += "cpu_temperature 0"
+
+cpu_temperature 0 {
+ format_above_threshold = "ABOVE_THRESHOLD: %degrees °C"
+ max_threshold = 45
+ path = "testcases/005-cpu-temp-max-threshold-format/temp1_input"
+}
diff --git a/testcases/005-cpu-temp-max-threshold-format/temp1_input b/testcases/005-cpu-temp-max-threshold-format/temp1_input
new file mode 100644
index 0000000..ccfc37a
--- /dev/null
+++ b/testcases/005-cpu-temp-max-threshold-format/temp1_input
@@ -0,0 +1 @@
+50000