diff options
author | eplanet <emeric.planet@gmail.com> | 2016-11-14 09:13:44 +0100 |
---|---|---|
committer | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2016-11-14 00:13:44 -0800 |
commit | b0af4e4c8543d8cdfd8bc7cd68b760d9d66e927c (patch) | |
tree | e9586c0909c71a33208b8d22661577a0e705d83a /testcases/001-battery | |
parent | 220b9e156527463512862f59b2413702d3ef6a3f (diff) |
Unit testing in Travis (#170)
Diffstat (limited to 'testcases/001-battery')
-rw-r--r-- | testcases/001-battery/BAT0_uevent | 4 | ||||
-rw-r--r-- | testcases/001-battery/expected_output.txt | 1 | ||||
-rw-r--r-- | testcases/001-battery/i3status.conf | 10 |
3 files changed, 15 insertions, 0 deletions
diff --git a/testcases/001-battery/BAT0_uevent b/testcases/001-battery/BAT0_uevent new file mode 100644 index 0000000..b994324 --- /dev/null +++ b/testcases/001-battery/BAT0_uevent @@ -0,0 +1,4 @@ +POWER_SUPPLY_STATUS=Discharging +POWER_SUPPLY_CURRENT_NOW=1107000 +POWER_SUPPLY_CHARGE_FULL_DESIGN=7800000 +POWER_SUPPLY_CHARGE_NOW=2390000 diff --git a/testcases/001-battery/expected_output.txt b/testcases/001-battery/expected_output.txt new file mode 100644 index 0000000..6e1898b --- /dev/null +++ b/testcases/001-battery/expected_output.txt @@ -0,0 +1 @@ +BAT 30.64% 02:09:32 diff --git a/testcases/001-battery/i3status.conf b/testcases/001-battery/i3status.conf new file mode 100644 index 0000000..b55e768 --- /dev/null +++ b/testcases/001-battery/i3status.conf @@ -0,0 +1,10 @@ +general { + output_format = "none" +} + +order += "battery all" + +battery all { + format = "%status %percentage %remaining" + path = "testcases/001-battery/BAT%d_uevent" +} |