summaryrefslogtreecommitdiff
path: root/testcases/020-percentliteral-cpu_temperature
diff options
context:
space:
mode:
authorIngo Bürk <admin@airblader.de>2020-02-20 08:47:27 +0100
committerGitHub <noreply@github.com>2020-02-20 08:47:27 +0100
commita27ce763f40888f18428325cedc7ec21b9ba99af (patch)
tree4a117826ff70aba74237cf67f397e0019d68824c /testcases/020-percentliteral-cpu_temperature
parentb61e959a58750fe3a4cf9ed2472d4cb7112bd2c3 (diff)
parent2ef1d7440a877ed69ea73c9e2b0c2fc920fcd0bb (diff)
Merge pull request #385 from Stunkymonkey/format_placeholder-cpu_temp
use format_placeholder for cpu_temperature
Diffstat (limited to 'testcases/020-percentliteral-cpu_temperature')
-rw-r--r--testcases/020-percentliteral-cpu_temperature/expected_output.txt1
-rw-r--r--testcases/020-percentliteral-cpu_temperature/i3status.conf10
-rw-r--r--testcases/020-percentliteral-cpu_temperature/temp1_input1
3 files changed, 12 insertions, 0 deletions
diff --git a/testcases/020-percentliteral-cpu_temperature/expected_output.txt b/testcases/020-percentliteral-cpu_temperature/expected_output.txt
new file mode 100644
index 0000000..a0c0525
--- /dev/null
+++ b/testcases/020-percentliteral-cpu_temperature/expected_output.txt
@@ -0,0 +1 @@
+I can %haz literal% % ?
diff --git a/testcases/020-percentliteral-cpu_temperature/i3status.conf b/testcases/020-percentliteral-cpu_temperature/i3status.conf
new file mode 100644
index 0000000..b1c4008
--- /dev/null
+++ b/testcases/020-percentliteral-cpu_temperature/i3status.conf
@@ -0,0 +1,10 @@
+general {
+ output_format = "none"
+}
+
+order += "cpu_temperature 0"
+
+cpu_temperature 0 {
+ format = "I can %haz literal% % ?"
+ path = "testcases/020-percentliteral-cpu_temperature/temp1_input"
+} \ No newline at end of file
diff --git a/testcases/020-percentliteral-cpu_temperature/temp1_input b/testcases/020-percentliteral-cpu_temperature/temp1_input
new file mode 100644
index 0000000..a90c8f8
--- /dev/null
+++ b/testcases/020-percentliteral-cpu_temperature/temp1_input
@@ -0,0 +1 @@
+37000 \ No newline at end of file