]> git.sur5r.net Git - i3/i3status/commitdiff
Add testcase for #304 305/head
authorDavid96 <davidlepplaweber@aospa.co>
Mon, 3 Sep 2018 18:51:48 +0000 (20:51 +0200)
committerDavid96 <davidlepplaweber@aospa.co>
Mon, 3 Sep 2018 18:51:48 +0000 (20:51 +0200)
testcases/023-battery-not-charging/BAT0_uevent [new file with mode: 0644]
testcases/023-battery-not-charging/expected_output.txt [new file with mode: 0644]
testcases/023-battery-not-charging/i3status.conf [new file with mode: 0644]

diff --git a/testcases/023-battery-not-charging/BAT0_uevent b/testcases/023-battery-not-charging/BAT0_uevent
new file mode 100644 (file)
index 0000000..1c609ce
--- /dev/null
@@ -0,0 +1 @@
+POWER_SUPPLY_STATUS=Not charging
diff --git a/testcases/023-battery-not-charging/expected_output.txt b/testcases/023-battery-not-charging/expected_output.txt
new file mode 100644 (file)
index 0000000..6fc5dfb
--- /dev/null
@@ -0,0 +1 @@
+BAT
diff --git a/testcases/023-battery-not-charging/i3status.conf b/testcases/023-battery-not-charging/i3status.conf
new file mode 100644 (file)
index 0000000..8660857
--- /dev/null
@@ -0,0 +1,10 @@
+general {
+        output_format = "none"
+}
+
+order += "battery all"
+
+battery all {
+        format = "%status"
+        path = "testcases/023-battery-not-charging/BAT%d_uevent"
+}