From 562f6e383d84e16ad3ff9d9c777c89e8150a924f Mon Sep 17 00:00:00 2001 From: Mihai Coman Date: Tue, 15 Nov 2016 13:34:06 +0200 Subject: Add unit tests for threshold format --- testcases/008-load-max-threshold-format/expected_output.txt | 1 + testcases/008-load-max-threshold-format/i3status.conf | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 testcases/008-load-max-threshold-format/expected_output.txt create mode 100644 testcases/008-load-max-threshold-format/i3status.conf (limited to 'testcases/008-load-max-threshold-format') diff --git a/testcases/008-load-max-threshold-format/expected_output.txt b/testcases/008-load-max-threshold-format/expected_output.txt new file mode 100644 index 0000000..97fca6d --- /dev/null +++ b/testcases/008-load-max-threshold-format/expected_output.txt @@ -0,0 +1 @@ +ABOVE_THRESHOLD diff --git a/testcases/008-load-max-threshold-format/i3status.conf b/testcases/008-load-max-threshold-format/i3status.conf new file mode 100644 index 0000000..0a23983 --- /dev/null +++ b/testcases/008-load-max-threshold-format/i3status.conf @@ -0,0 +1,10 @@ +general { + output_format = "none" +} + +order += "load" + +load { + format_above_threshold = "ABOVE_THRESHOLD" + max_threshold = -1 +} -- cgit v1.2.3