Merge pull request #407 from Stunkymonkey/format_placeholder-tests
format_placeholder percent tests
This commit is contained in:
commit
b13fd68e08
@ -19,6 +19,7 @@ addons:
|
||||
- libcap2-bin
|
||||
- clang-format-3.8
|
||||
- libllvm3.5
|
||||
- pulseaudio
|
||||
script:
|
||||
- clang-format-3.8 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)
|
||||
# TODO: re-enable sanitizers once issues are fixed
|
||||
|
@ -0,0 +1 @@
|
||||
I can %haz literal% % ?
|
9
testcases/020-percentliteral-cpu_usage/i3status.conf
Normal file
9
testcases/020-percentliteral-cpu_usage/i3status.conf
Normal file
@ -0,0 +1,9 @@
|
||||
general {
|
||||
output_format = "none"
|
||||
}
|
||||
|
||||
order += "cpu_usage"
|
||||
|
||||
cpu_usage {
|
||||
format = "I can %haz literal% % ?"
|
||||
}
|
1
testcases/020-percentliteral-disk/expected_output.txt
Normal file
1
testcases/020-percentliteral-disk/expected_output.txt
Normal file
@ -0,0 +1 @@
|
||||
I can %haz literal% % ?
|
9
testcases/020-percentliteral-disk/i3status.conf
Normal file
9
testcases/020-percentliteral-disk/i3status.conf
Normal file
@ -0,0 +1,9 @@
|
||||
general {
|
||||
output_format = "none"
|
||||
}
|
||||
|
||||
order += "disk /"
|
||||
|
||||
disk / {
|
||||
format = "I can %haz literal% % ?"
|
||||
}
|
@ -0,0 +1 @@
|
||||
I can %haz literal% % ?
|
9
testcases/020-percentliteral-ethernet/i3status.conf
Normal file
9
testcases/020-percentliteral-ethernet/i3status.conf
Normal file
@ -0,0 +1,9 @@
|
||||
general {
|
||||
output_format = "none"
|
||||
}
|
||||
|
||||
order += "ethernet NONEXISTINGETHERNETDEVICE"
|
||||
|
||||
ethernet NONEXISTINGETHERNETDEVICE {
|
||||
format_down = "I can %haz literal% % ?"
|
||||
}
|
1
testcases/020-percentliteral-ipv6/expected_output.txt
Normal file
1
testcases/020-percentliteral-ipv6/expected_output.txt
Normal file
@ -0,0 +1 @@
|
||||
I can %haz literal% % ?
|
10
testcases/020-percentliteral-ipv6/i3status.conf
Normal file
10
testcases/020-percentliteral-ipv6/i3status.conf
Normal file
@ -0,0 +1,10 @@
|
||||
general {
|
||||
output_format = "none"
|
||||
}
|
||||
|
||||
order += "ipv6"
|
||||
|
||||
ipv6 {
|
||||
format_up = "I can %haz literal% % ?"
|
||||
format_down = "I can %haz literal% % ?"
|
||||
}
|
1
testcases/020-percentliteral-load/expected_output.txt
Normal file
1
testcases/020-percentliteral-load/expected_output.txt
Normal file
@ -0,0 +1 @@
|
||||
I can %haz literal% % ?
|
9
testcases/020-percentliteral-load/i3status.conf
Normal file
9
testcases/020-percentliteral-load/i3status.conf
Normal file
@ -0,0 +1,9 @@
|
||||
general {
|
||||
output_format = "none"
|
||||
}
|
||||
|
||||
order += "load"
|
||||
|
||||
load {
|
||||
format = "I can %haz literal% % ?"
|
||||
}
|
1
testcases/020-percentliteral-memory/expected_output.txt
Normal file
1
testcases/020-percentliteral-memory/expected_output.txt
Normal file
@ -0,0 +1 @@
|
||||
I can %haz literal% % ?
|
9
testcases/020-percentliteral-memory/i3status.conf
Normal file
9
testcases/020-percentliteral-memory/i3status.conf
Normal file
@ -0,0 +1,9 @@
|
||||
general {
|
||||
output_format = "none"
|
||||
}
|
||||
|
||||
order += "memory"
|
||||
|
||||
memory {
|
||||
format = "I can %haz literal% % ?"
|
||||
}
|
@ -0,0 +1 @@
|
||||
I can %haz literal% % ?
|
9
testcases/020-percentliteral-path_exists/i3status.conf
Normal file
9
testcases/020-percentliteral-path_exists/i3status.conf
Normal file
@ -0,0 +1,9 @@
|
||||
general {
|
||||
output_format = "none"
|
||||
}
|
||||
|
||||
order += "path_exists all"
|
||||
|
||||
path_exists all {
|
||||
format = "I can %haz literal% % ?"
|
||||
}
|
1
testcases/020-percentliteral-time/expected_output.txt
Normal file
1
testcases/020-percentliteral-time/expected_output.txt
Normal file
@ -0,0 +1 @@
|
||||
I can %haz literal% % ?
|
9
testcases/020-percentliteral-time/i3status.conf
Normal file
9
testcases/020-percentliteral-time/i3status.conf
Normal file
@ -0,0 +1,9 @@
|
||||
general {
|
||||
output_format = "none"
|
||||
}
|
||||
|
||||
order += "time"
|
||||
|
||||
time {
|
||||
format = "I can %%haz literal% % ?"
|
||||
}
|
1
testcases/020-percentliteral-tztime/expected_output.txt
Normal file
1
testcases/020-percentliteral-tztime/expected_output.txt
Normal file
@ -0,0 +1 @@
|
||||
I can %haz literal% % ?
|
9
testcases/020-percentliteral-tztime/i3status.conf
Normal file
9
testcases/020-percentliteral-tztime/i3status.conf
Normal file
@ -0,0 +1,9 @@
|
||||
general {
|
||||
output_format = "none"
|
||||
}
|
||||
|
||||
order += "tztime berlin"
|
||||
|
||||
tztime berlin {
|
||||
format_time = "I can %haz literal% % ?"
|
||||
}
|
1
testcases/020-percentliteral-volume/expected_output.txt
Normal file
1
testcases/020-percentliteral-volume/expected_output.txt
Normal file
@ -0,0 +1 @@
|
||||
I can %haz literal% % ?
|
9
testcases/020-percentliteral-volume/i3status.conf
Normal file
9
testcases/020-percentliteral-volume/i3status.conf
Normal file
@ -0,0 +1,9 @@
|
||||
general {
|
||||
output_format = "none"
|
||||
}
|
||||
|
||||
order += "volume master"
|
||||
|
||||
volume master {
|
||||
format = "I can %haz literal% % ?"
|
||||
}
|
@ -0,0 +1 @@
|
||||
I can %haz literal% % ?
|
10
testcases/020-percentliteral-wireless/i3status.conf
Normal file
10
testcases/020-percentliteral-wireless/i3status.conf
Normal file
@ -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% % ?"
|
||||
}
|
Loading…
Reference in New Issue
Block a user