From d1165232ee01640da8804f9df5c551a78410ca74 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Tue, 7 Apr 2020 23:06:37 +0200 Subject: format_placeholder percent tests --- testcases/020-percentliteral-cpu_usage/expected_output.txt | 1 + testcases/020-percentliteral-cpu_usage/i3status.conf | 9 +++++++++ testcases/020-percentliteral-disk/expected_output.txt | 1 + testcases/020-percentliteral-disk/i3status.conf | 9 +++++++++ testcases/020-percentliteral-ethernet/expected_output.txt | 1 + testcases/020-percentliteral-ethernet/i3status.conf | 9 +++++++++ testcases/020-percentliteral-ipv6/expected_output.txt | 1 + testcases/020-percentliteral-ipv6/i3status.conf | 10 ++++++++++ testcases/020-percentliteral-load/expected_output.txt | 1 + testcases/020-percentliteral-load/i3status.conf | 9 +++++++++ testcases/020-percentliteral-memory/expected_output.txt | 1 + testcases/020-percentliteral-memory/i3status.conf | 9 +++++++++ testcases/020-percentliteral-path_exists/expected_output.txt | 1 + testcases/020-percentliteral-path_exists/i3status.conf | 9 +++++++++ testcases/020-percentliteral-time/expected_output.txt | 1 + testcases/020-percentliteral-time/i3status.conf | 9 +++++++++ testcases/020-percentliteral-tztime/expected_output.txt | 1 + testcases/020-percentliteral-tztime/i3status.conf | 9 +++++++++ testcases/020-percentliteral-volume/expected_output.txt | 1 + testcases/020-percentliteral-volume/i3status.conf | 9 +++++++++ testcases/020-percentliteral-wireless/expected_output.txt | 1 + testcases/020-percentliteral-wireless/i3status.conf | 10 ++++++++++ 22 files changed, 112 insertions(+) create mode 100644 testcases/020-percentliteral-cpu_usage/expected_output.txt create mode 100644 testcases/020-percentliteral-cpu_usage/i3status.conf create mode 100644 testcases/020-percentliteral-disk/expected_output.txt create mode 100644 testcases/020-percentliteral-disk/i3status.conf create mode 100644 testcases/020-percentliteral-ethernet/expected_output.txt create mode 100644 testcases/020-percentliteral-ethernet/i3status.conf create mode 100644 testcases/020-percentliteral-ipv6/expected_output.txt create mode 100644 testcases/020-percentliteral-ipv6/i3status.conf create mode 100644 testcases/020-percentliteral-load/expected_output.txt create mode 100644 testcases/020-percentliteral-load/i3status.conf create mode 100644 testcases/020-percentliteral-memory/expected_output.txt create mode 100644 testcases/020-percentliteral-memory/i3status.conf create mode 100644 testcases/020-percentliteral-path_exists/expected_output.txt create mode 100644 testcases/020-percentliteral-path_exists/i3status.conf create mode 100644 testcases/020-percentliteral-time/expected_output.txt create mode 100644 testcases/020-percentliteral-time/i3status.conf create mode 100644 testcases/020-percentliteral-tztime/expected_output.txt create mode 100644 testcases/020-percentliteral-tztime/i3status.conf create mode 100644 testcases/020-percentliteral-volume/expected_output.txt create mode 100644 testcases/020-percentliteral-volume/i3status.conf create mode 100644 testcases/020-percentliteral-wireless/expected_output.txt create mode 100644 testcases/020-percentliteral-wireless/i3status.conf (limited to 'testcases') diff --git a/testcases/020-percentliteral-cpu_usage/expected_output.txt b/testcases/020-percentliteral-cpu_usage/expected_output.txt new file mode 100644 index 0000000..a0c0525 --- /dev/null +++ b/testcases/020-percentliteral-cpu_usage/expected_output.txt @@ -0,0 +1 @@ +I can %haz literal% % ? diff --git a/testcases/020-percentliteral-cpu_usage/i3status.conf b/testcases/020-percentliteral-cpu_usage/i3status.conf new file mode 100644 index 0000000..7f929b2 --- /dev/null +++ b/testcases/020-percentliteral-cpu_usage/i3status.conf @@ -0,0 +1,9 @@ +general { + output_format = "none" +} + +order += "cpu_usage" + +cpu_usage { + format = "I can %haz literal% % ?" +} diff --git a/testcases/020-percentliteral-disk/expected_output.txt b/testcases/020-percentliteral-disk/expected_output.txt new file mode 100644 index 0000000..a0c0525 --- /dev/null +++ b/testcases/020-percentliteral-disk/expected_output.txt @@ -0,0 +1 @@ +I can %haz literal% % ? diff --git a/testcases/020-percentliteral-disk/i3status.conf b/testcases/020-percentliteral-disk/i3status.conf new file mode 100644 index 0000000..42bf032 --- /dev/null +++ b/testcases/020-percentliteral-disk/i3status.conf @@ -0,0 +1,9 @@ +general { + output_format = "none" +} + +order += "disk /" + +disk / { + format = "I can %haz literal% % ?" +} diff --git a/testcases/020-percentliteral-ethernet/expected_output.txt b/testcases/020-percentliteral-ethernet/expected_output.txt new file mode 100644 index 0000000..a0c0525 --- /dev/null +++ b/testcases/020-percentliteral-ethernet/expected_output.txt @@ -0,0 +1 @@ +I can %haz literal% % ? diff --git a/testcases/020-percentliteral-ethernet/i3status.conf b/testcases/020-percentliteral-ethernet/i3status.conf new file mode 100644 index 0000000..a7674aa --- /dev/null +++ b/testcases/020-percentliteral-ethernet/i3status.conf @@ -0,0 +1,9 @@ +general { + output_format = "none" +} + +order += "ethernet NONEXISTINGETHERNETDEVICE" + +ethernet NONEXISTINGETHERNETDEVICE { + format_down = "I can %haz literal% % ?" +} diff --git a/testcases/020-percentliteral-ipv6/expected_output.txt b/testcases/020-percentliteral-ipv6/expected_output.txt new file mode 100644 index 0000000..a0c0525 --- /dev/null +++ b/testcases/020-percentliteral-ipv6/expected_output.txt @@ -0,0 +1 @@ +I can %haz literal% % ? diff --git a/testcases/020-percentliteral-ipv6/i3status.conf b/testcases/020-percentliteral-ipv6/i3status.conf new file mode 100644 index 0000000..5c0d527 --- /dev/null +++ b/testcases/020-percentliteral-ipv6/i3status.conf @@ -0,0 +1,10 @@ +general { + output_format = "none" +} + +order += "ipv6" + +ipv6 { + format_up = "I can %haz literal% % ?" + format_down = "I can %haz literal% % ?" +} diff --git a/testcases/020-percentliteral-load/expected_output.txt b/testcases/020-percentliteral-load/expected_output.txt new file mode 100644 index 0000000..a0c0525 --- /dev/null +++ b/testcases/020-percentliteral-load/expected_output.txt @@ -0,0 +1 @@ +I can %haz literal% % ? diff --git a/testcases/020-percentliteral-load/i3status.conf b/testcases/020-percentliteral-load/i3status.conf new file mode 100644 index 0000000..e001bac --- /dev/null +++ b/testcases/020-percentliteral-load/i3status.conf @@ -0,0 +1,9 @@ +general { + output_format = "none" +} + +order += "load" + +load { + format = "I can %haz literal% % ?" +} diff --git a/testcases/020-percentliteral-memory/expected_output.txt b/testcases/020-percentliteral-memory/expected_output.txt new file mode 100644 index 0000000..a0c0525 --- /dev/null +++ b/testcases/020-percentliteral-memory/expected_output.txt @@ -0,0 +1 @@ +I can %haz literal% % ? diff --git a/testcases/020-percentliteral-memory/i3status.conf b/testcases/020-percentliteral-memory/i3status.conf new file mode 100644 index 0000000..9dd8105 --- /dev/null +++ b/testcases/020-percentliteral-memory/i3status.conf @@ -0,0 +1,9 @@ +general { + output_format = "none" +} + +order += "memory" + +memory { + format = "I can %haz literal% % ?" +} diff --git a/testcases/020-percentliteral-path_exists/expected_output.txt b/testcases/020-percentliteral-path_exists/expected_output.txt new file mode 100644 index 0000000..a0c0525 --- /dev/null +++ b/testcases/020-percentliteral-path_exists/expected_output.txt @@ -0,0 +1 @@ +I can %haz literal% % ? diff --git a/testcases/020-percentliteral-path_exists/i3status.conf b/testcases/020-percentliteral-path_exists/i3status.conf new file mode 100644 index 0000000..5972914 --- /dev/null +++ b/testcases/020-percentliteral-path_exists/i3status.conf @@ -0,0 +1,9 @@ +general { + output_format = "none" +} + +order += "path_exists all" + +path_exists all { + format = "I can %haz literal% % ?" +} diff --git a/testcases/020-percentliteral-time/expected_output.txt b/testcases/020-percentliteral-time/expected_output.txt new file mode 100644 index 0000000..a0c0525 --- /dev/null +++ b/testcases/020-percentliteral-time/expected_output.txt @@ -0,0 +1 @@ +I can %haz literal% % ? diff --git a/testcases/020-percentliteral-time/i3status.conf b/testcases/020-percentliteral-time/i3status.conf new file mode 100644 index 0000000..22cb2a0 --- /dev/null +++ b/testcases/020-percentliteral-time/i3status.conf @@ -0,0 +1,9 @@ +general { + output_format = "none" +} + +order += "time" + +time { + format = "I can %%haz literal% % ?" +} diff --git a/testcases/020-percentliteral-tztime/expected_output.txt b/testcases/020-percentliteral-tztime/expected_output.txt new file mode 100644 index 0000000..a0c0525 --- /dev/null +++ b/testcases/020-percentliteral-tztime/expected_output.txt @@ -0,0 +1 @@ +I can %haz literal% % ? diff --git a/testcases/020-percentliteral-tztime/i3status.conf b/testcases/020-percentliteral-tztime/i3status.conf new file mode 100644 index 0000000..c20099c --- /dev/null +++ b/testcases/020-percentliteral-tztime/i3status.conf @@ -0,0 +1,9 @@ +general { + output_format = "none" +} + +order += "tztime berlin" + +tztime berlin { + format_time = "I can %haz literal% % ?" +} diff --git a/testcases/020-percentliteral-volume/expected_output.txt b/testcases/020-percentliteral-volume/expected_output.txt new file mode 100644 index 0000000..a0c0525 --- /dev/null +++ b/testcases/020-percentliteral-volume/expected_output.txt @@ -0,0 +1 @@ +I can %haz literal% % ? diff --git a/testcases/020-percentliteral-volume/i3status.conf b/testcases/020-percentliteral-volume/i3status.conf new file mode 100644 index 0000000..3a0edb5 --- /dev/null +++ b/testcases/020-percentliteral-volume/i3status.conf @@ -0,0 +1,9 @@ +general { + output_format = "none" +} + +order += "volume master" + +volume master { + format = "I can %haz literal% % ?" +} diff --git a/testcases/020-percentliteral-wireless/expected_output.txt b/testcases/020-percentliteral-wireless/expected_output.txt new file mode 100644 index 0000000..a0c0525 --- /dev/null +++ b/testcases/020-percentliteral-wireless/expected_output.txt @@ -0,0 +1 @@ +I can %haz literal% % ? diff --git a/testcases/020-percentliteral-wireless/i3status.conf b/testcases/020-percentliteral-wireless/i3status.conf new file mode 100644 index 0000000..69a25a3 --- /dev/null +++ b/testcases/020-percentliteral-wireless/i3status.conf @@ -0,0 +1,10 @@ +general { + output_format = "none" +} + +order += "wireless _first_" + +wireless _first_ { + format_up = "I can %haz literal% % ?" + format_down = "I can %haz literal% % ?" +} -- cgit v1.2.3