i3status/testcases
Michael Nolan e19539e5f6
Add support for batteries outputting Time to empty on linux (#378)
* Add support for batteries outputting Time to empty on linux

The battery in the pinebook pro does not output the remaining charge
in Wh or mAh, so i3 cannot calculate the time remaining. However, it
does directly output the number of minutes remaining on in
POWER_SUPPLY_TIME_TO_EMPTY. This adds support for reading this field
and converting it to seconds_remaining.

* Add testcase for POWER_SUPPLY_TIME_TO_EMTY_NOW
2020-06-15 09:09:06 +02:00
..
001-battery hide seconds in battery by default 2018-06-29 14:37:48 +02:00
002-cpu-temp
003-path-exists
004-run-watch
005-cpu-temp-max-threshold-format Add unit tests for threshold format 2016-11-15 13:34:06 +02:00
006-cpu-usage-max-threshold-format Add unit tests for threshold format 2016-11-15 13:34:06 +02:00
007-cpu-usage-degraded-threshold-format Add unit tests for threshold format 2016-11-15 13:34:06 +02:00
008-load-max-threshold-format Add unit tests for threshold format 2016-11-15 13:34:06 +02:00
009-disk-low-threshold-format Adding documentation for PR #179 (#182) 2016-11-19 06:02:10 -08:00
010-cpu-usage Fix CPU unit tests (#239) 2017-08-29 19:01:30 +02:00
011-cpu-usage Fix CPU unit tests (#239) 2017-08-29 19:01:30 +02:00
012-cpu-usage-error Fix CPU unit tests (#239) 2017-08-29 19:01:30 +02:00
013-cpu-usage-error Multiple CPU support for cpu_usage (#209) 2017-03-26 06:54:07 -04:00
014-battery-capacity Fix CPU unit tests (#239) 2017-08-29 19:01:30 +02:00
015-battery-capacity hide seconds in battery by default 2018-06-29 14:37:48 +02:00
016-ethernet-down Add network test cases (#246) 2017-11-20 19:51:48 +01:00
017-wireless-down Add network test cases (#246) 2017-11-20 19:51:48 +01:00
018-battery-capacity Treat zero battery capacity as "not available" (#259) 2018-01-28 15:37:51 +01:00
019-battery-capacity Treat zero battery capacity as "not available" (#259) 2018-01-28 15:37:51 +01:00
020-percentliteral-battery use format_placeholder for battery 2020-02-10 21:05:18 +01:00
020-percentliteral-cpu_temperature use format_placeholder for cpu_temperature 2020-02-18 17:51:12 +01:00
020-percentliteral-cpu_usage format_placeholder percent tests 2020-04-07 23:06:37 +02:00
020-percentliteral-ddate use format_placeholder for ddate 2020-02-18 20:22:36 +01:00
020-percentliteral-disk format_placeholder percent tests 2020-04-07 23:06:37 +02:00
020-percentliteral-ethernet format_placeholder percent tests 2020-04-07 23:06:37 +02:00
020-percentliteral-ipv6 format_placeholder percent tests 2020-04-07 23:06:37 +02:00
020-percentliteral-load format_placeholder percent tests 2020-04-07 23:06:37 +02:00
020-percentliteral-memory format_placeholder percent tests 2020-04-07 23:06:37 +02:00
020-percentliteral-path_exists format_placeholder percent tests 2020-04-07 23:06:37 +02:00
020-percentliteral-time format_placeholder percent tests 2020-04-07 23:06:37 +02:00
020-percentliteral-tztime format_placeholder percent tests 2020-04-07 23:06:37 +02:00
020-percentliteral-volume format_placeholder percent tests 2020-04-07 23:06:37 +02:00
020-percentliteral-wireless format_placeholder percent tests 2020-04-07 23:06:37 +02:00
021-battery-second hide seconds in battery by default 2018-06-29 14:37:48 +02:00
022-cpu-usage-tenth-cpu Fix for issue 300: Correctly print usage for cpu 10 2018-07-31 00:27:13 -05:00
023-battery-not-charging Add testcase for #304 2018-09-03 20:51:48 +02:00
024-cpu-usage-invalid-cpu Add testcase for invalid %cpu placeholder 2018-10-23 11:16:16 -04:00
025-file-contents print_file_contents: allocate enough to include \0 2019-06-10 16:36:18 +02:00
026-battery-time-to-empty Add support for batteries outputting Time to empty on linux (#378) 2020-06-15 09:09:06 +02:00