summaryrefslogtreecommitdiff
path: root/testcases/003-path-exists
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@users.noreply.github.com>2016-11-15 09:27:44 -0800
committerGitHub <noreply@github.com>2016-11-15 09:27:44 -0800
commit7b63102b9d646ef40edd76a3132f11ab74d5efd6 (patch)
tree03fc7d94ec0e1de5fc65a59931f379ed1c8d85e8 /testcases/003-path-exists
parentb0af4e4c8543d8cdfd8bc7cd68b760d9d66e927c (diff)
parent9c472405234789bec8ce522ecab025a208481fbe (diff)
Merge pull request #178 from eplanet/ut_cpu_temp
Unit testing some new cases
Diffstat (limited to 'testcases/003-path-exists')
-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"
+}