format_placeholder percent tests

This commit is contained in:
Felix Buehler 2020-04-07 23:06:37 +02:00
parent e697a1f19f
commit d1165232ee
23 changed files with 113 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "cpu_usage"
cpu_usage {
format = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "disk /"
disk / {
format = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "ethernet NONEXISTINGETHERNETDEVICE"
ethernet NONEXISTINGETHERNETDEVICE {
format_down = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,10 @@
general {
output_format = "none"
}
order += "ipv6"
ipv6 {
format_up = "I can %haz literal% % ?"
format_down = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "load"
load {
format = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "memory"
memory {
format = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "path_exists all"
path_exists all {
format = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "time"
time {
format = "I can %%haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "tztime berlin"
tztime berlin {
format_time = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "volume master"
volume master {
format = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View 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% % ?"
}