diff options
Diffstat (limited to 'testcases')
-rw-r--r-- | testcases/026-battery-time-to-empty/BAT0_uevent | 4 | ||||
-rw-r--r-- | testcases/026-battery-time-to-empty/expected_output.txt | 1 | ||||
-rw-r--r-- | testcases/026-battery-time-to-empty/i3status.conf | 10 |
3 files changed, 15 insertions, 0 deletions
diff --git a/testcases/026-battery-time-to-empty/BAT0_uevent b/testcases/026-battery-time-to-empty/BAT0_uevent new file mode 100644 index 0000000..5657217 --- /dev/null +++ b/testcases/026-battery-time-to-empty/BAT0_uevent @@ -0,0 +1,4 @@ +POWER_SUPPLY_STATUS=Discharging +POWER_SUPPLY_TIME_TO_EMPTY_NOW=655 +POWER_SUPPLY_CHARGE_FULL_DESIGN=7800000 +POWER_SUPPLY_CHARGE_NOW=2390000 diff --git a/testcases/026-battery-time-to-empty/expected_output.txt b/testcases/026-battery-time-to-empty/expected_output.txt new file mode 100644 index 0000000..92926bb --- /dev/null +++ b/testcases/026-battery-time-to-empty/expected_output.txt @@ -0,0 +1 @@ +BAT 30.64% 10:55 diff --git a/testcases/026-battery-time-to-empty/i3status.conf b/testcases/026-battery-time-to-empty/i3status.conf new file mode 100644 index 0000000..038ca5e --- /dev/null +++ b/testcases/026-battery-time-to-empty/i3status.conf @@ -0,0 +1,10 @@ +general { + output_format = "none" +} + +order += "battery 0" + +battery 0 { + format = "%status %percentage %remaining" + path = "testcases/026-battery-time-to-empty/BAT0_uevent" +} |