diff options
Diffstat (limited to 'testcases')
-rw-r--r-- | testcases/016-ethernet-down/expected_output.txt | 1 | ||||
-rw-r--r-- | testcases/016-ethernet-down/i3status.conf | 10 | ||||
-rw-r--r-- | testcases/017-wireless-down/expected_output.txt | 1 | ||||
-rw-r--r-- | testcases/017-wireless-down/i3status.conf | 10 | ||||
-rw-r--r-- | testcases/018-battery-capacity/1/uevent | 2 | ||||
-rw-r--r-- | testcases/018-battery-capacity/expected_output.txt | 1 | ||||
-rw-r--r-- | testcases/018-battery-capacity/i3status.conf | 10 | ||||
-rw-r--r-- | testcases/019-battery-capacity/1/uevent | 2 | ||||
-rw-r--r-- | testcases/019-battery-capacity/expected_output.txt | 1 | ||||
-rw-r--r-- | testcases/019-battery-capacity/i3status.conf | 11 |
10 files changed, 49 insertions, 0 deletions
diff --git a/testcases/016-ethernet-down/expected_output.txt b/testcases/016-ethernet-down/expected_output.txt new file mode 100644 index 0000000..be02a09 --- /dev/null +++ b/testcases/016-ethernet-down/expected_output.txt @@ -0,0 +1 @@ +E: down diff --git a/testcases/016-ethernet-down/i3status.conf b/testcases/016-ethernet-down/i3status.conf new file mode 100644 index 0000000..7835053 --- /dev/null +++ b/testcases/016-ethernet-down/i3status.conf @@ -0,0 +1,10 @@ +general { + output_format = "none" +} + +order += "ethernet nonsense" + +ethernet nonsense { + format_up = "E: %ip (%speed)" + format_down = "E: down" +} diff --git a/testcases/017-wireless-down/expected_output.txt b/testcases/017-wireless-down/expected_output.txt new file mode 100644 index 0000000..aa33e33 --- /dev/null +++ b/testcases/017-wireless-down/expected_output.txt @@ -0,0 +1 @@ +W: down diff --git a/testcases/017-wireless-down/i3status.conf b/testcases/017-wireless-down/i3status.conf new file mode 100644 index 0000000..0cfc964 --- /dev/null +++ b/testcases/017-wireless-down/i3status.conf @@ -0,0 +1,10 @@ +general { + output_format = "none" +} + +order += "wireless nonsense" + +wireless nonsense { + format_up = "W: (%quality at %essid) %ip" + format_down = "W: down" +} diff --git a/testcases/018-battery-capacity/1/uevent b/testcases/018-battery-capacity/1/uevent new file mode 100644 index 0000000..00b1148 --- /dev/null +++ b/testcases/018-battery-capacity/1/uevent @@ -0,0 +1,2 @@ +POWER_SUPPLY_CHARGE_FULL=100 +POWER_SUPPLY_CHARGE_NOW=50 diff --git a/testcases/018-battery-capacity/expected_output.txt b/testcases/018-battery-capacity/expected_output.txt new file mode 100644 index 0000000..ab07d0a --- /dev/null +++ b/testcases/018-battery-capacity/expected_output.txt @@ -0,0 +1 @@ +50.00% diff --git a/testcases/018-battery-capacity/i3status.conf b/testcases/018-battery-capacity/i3status.conf new file mode 100644 index 0000000..7a3443c --- /dev/null +++ b/testcases/018-battery-capacity/i3status.conf @@ -0,0 +1,10 @@ +general { + output_format = "none" +} + +order += "battery all" + +battery all { + format = "%percentage" + path = "testcases/018-battery-capacity/%d/uevent" +} diff --git a/testcases/019-battery-capacity/1/uevent b/testcases/019-battery-capacity/1/uevent new file mode 100644 index 0000000..d004bf1 --- /dev/null +++ b/testcases/019-battery-capacity/1/uevent @@ -0,0 +1,2 @@ +POWER_SUPPLY_CHARGE_FULL_DESIGN=100 +POWER_SUPPLY_CHARGE_NOW=50 diff --git a/testcases/019-battery-capacity/expected_output.txt b/testcases/019-battery-capacity/expected_output.txt new file mode 100644 index 0000000..ab07d0a --- /dev/null +++ b/testcases/019-battery-capacity/expected_output.txt @@ -0,0 +1 @@ +50.00% diff --git a/testcases/019-battery-capacity/i3status.conf b/testcases/019-battery-capacity/i3status.conf new file mode 100644 index 0000000..8152d44 --- /dev/null +++ b/testcases/019-battery-capacity/i3status.conf @@ -0,0 +1,11 @@ +general { + output_format = "none" +} + +order += "battery all" + +battery all { + format = "%percentage" + path = "testcases/019-battery-capacity/%d/uevent" + last_full_capacity = true +} |