UNSUPPORTED: system-windows
RUN: echo -e "\033[1mbold\033[0mreset" > %t.input
RUN: echo -e "\033[1mboldnoreset" >> %t.input
RUN: echo -e "resetafternewline" >> %t.input
RUN: echo -e "\033[30mcolor\033[0m" >> %t.input
RUN: echo -e "\033[31mcolor\033[0m" >> %t.input
RUN: echo -e "\033[32mcolor\033[0m" >> %t.input
RUN: echo -e "\033[33mcolor\033[0m" >> %t.input
RUN: echo -e "\033[34mcolor\033[0m" >> %t.input
RUN: echo -e "\033[35mcolor\033[0m" >> %t.input
RUN: echo -e "\033[36mcolor\033[0m" >> %t.input
RUN: echo -e "\033[37mcolor\033[0m" >> %t.input
RUN: echo -e "\033[33mbefore{{{symbol:highlight}}}after\033[0m" >> %t.input
RUN: echo -e "\033[34msame{{{symbol:highlight}}}after\033[0m" >> %t.input
RUN: echo -e "\033[1mbold{{{symbol:highlight}}}after\033[0m" >> %t.input
RUN: llvm-symbolizer --filter-markup --color=always < %t.input > %t.output
RUN: FileCheck %s --input-file=%t.output --match-full-lines --implicit-check-not {{.}}
CHECK: {{.}}[1mbold{{.}}[0mreset
CHECK: {{.}}[1mboldnoreset
CHECK: {{.}}[0mresetafternewline
CHECK: {{.}}[0;30mcolor{{.}}[0m
CHECK: {{.}}[0;31mcolor{{.}}[0m
CHECK: {{.}}[0;32mcolor{{.}}[0m
CHECK: {{.}}[0;33mcolor{{.}}[0m
CHECK: {{.}}[0;34mcolor{{.}}[0m
CHECK: {{.}}[0;35mcolor{{.}}[0m
CHECK: {{.}}[0;36mcolor{{.}}[0m
CHECK: {{.}}[0;37mcolor{{.}}[0m
CHECK: {{.}}[0;33mbefore{{.}}[0;34mhighlight{{.}}[0;33mafter{{.}}[0m
CHECK: {{.}}[0;34msame{{.}}[0;36mhighlight{{.}}[0;34mafter{{.}}[0m
CHECK: {{.}}[1mbold{{.}}[0;1;34mhighlight{{.}}[0m{{.}}[1mafter{{.}}[0m