summaryrefslogtreecommitdiff
path: root/testcases
diff options
context:
space:
mode:
authoreplanet <emeric.planet@gmail.com>2016-11-14 21:24:16 +0000
committereplanet <emeric.planet@gmail.com>2016-11-14 21:24:16 +0000
commit243d08e1adc48898b3fb53484f00b68978fd685b (patch)
tree0c81563a6af74dd6d443d3fbf67df3f12abf1bbf /testcases
parent7c9108c9b99f53fad7a56f0d2a3d3c1bbbad5906 (diff)
Added unit test case for path_exists
Diffstat (limited to 'testcases')
-rw-r--r--testcases/003-path-exists/expected_output.txt1
-rw-r--r--testcases/003-path-exists/i3status.conf14
2 files changed, 15 insertions, 0 deletions
diff --git a/testcases/003-path-exists/expected_output.txt b/testcases/003-path-exists/expected_output.txt
new file mode 100644
index 0000000..3dbe379
--- /dev/null
+++ b/testcases/003-path-exists/expected_output.txt
@@ -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
index 0000000..38ca7d4
--- /dev/null
+++ b/testcases/003-path-exists/i3status.conf
@@ -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"
+}