]> git.sur5r.net Git - i3/i3status/commitdiff
Add network test cases (#246)
authorEmeric Planet <emeric.planet@datadoghq.com>
Mon, 20 Nov 2017 18:51:48 +0000 (19:51 +0100)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Mon, 20 Nov 2017 18:51:48 +0000 (19:51 +0100)
testcases/016-ethernet-down/expected_output.txt [new file with mode: 0644]
testcases/016-ethernet-down/i3status.conf [new file with mode: 0644]
testcases/017-wireless-down/expected_output.txt [new file with mode: 0644]
testcases/017-wireless-down/i3status.conf [new file with mode: 0644]

diff --git a/testcases/016-ethernet-down/expected_output.txt b/testcases/016-ethernet-down/expected_output.txt
new file mode 100644 (file)
index 0000000..be02a09
--- /dev/null
@@ -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 (file)
index 0000000..7835053
--- /dev/null
@@ -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 (file)
index 0000000..aa33e33
--- /dev/null
@@ -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 (file)
index 0000000..0cfc964
--- /dev/null
@@ -0,0 +1,10 @@
+general {
+        output_format = "none"
+}
+
+order += "wireless nonsense"
+
+wireless nonsense {
+        format_up = "W: (%quality at %essid) %ip"
+        format_down = "W: down"
+}