]> git.sur5r.net Git - i3/i3status/commitdiff
Added unit test case for path_exists
authoreplanet <emeric.planet@gmail.com>
Mon, 14 Nov 2016 21:24:16 +0000 (21:24 +0000)
committereplanet <emeric.planet@gmail.com>
Mon, 14 Nov 2016 21:24:16 +0000 (21:24 +0000)
testcases/003-path-exists/expected_output.txt [new file with mode: 0644]
testcases/003-path-exists/i3status.conf [new file with mode: 0644]

diff --git a/testcases/003-path-exists/expected_output.txt b/testcases/003-path-exists/expected_output.txt
new file mode 100644 (file)
index 0000000..3dbe379
--- /dev/null
@@ -0,0 +1 @@
+EXISTING: yes | NONEXISTANT: no
diff --git a/testcases/003-path-exists/i3status.conf b/testcases/003-path-exists/i3status.conf
new file mode 100644 (file)
index 0000000..38ca7d4
--- /dev/null
@@ -0,0 +1,14 @@
+general {
+        output_format = "none"
+}
+
+order += "path_exists EXISTING"
+order += "path_exists NONEXISTANT"
+
+path_exists EXISTING {
+        path = "testcases/003-path-exists"
+}
+
+path_exists NONEXISTANT {
+        path = "testcases/003-path-exists/nonexistant"
+}