repo.or.cz
/
wvstreams.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Try another fix for wvlinkerhack and static libraries.
[wvstreams.git]
/
wvtestcolour.pl
blob
1001e7c4f7cc0067dc3d12e552ec1e89a3838a16
1
#!/usr/bin/perl
2
#
3
# Usage: <run test> 2>&1 | wvtestcolour.pl
4
#
5
6
while
(<
STDIN
>)
7
{
8
$_
=~
s/ok(\s+)$/\033[32mok\033[0m$1/
;
9
$_
=~
s/(FAIL|FAILED)(\s+)/\033[1;31m$1\033[0m$2/
;
10
$_
=~
s/^(!\s+\S+)/\033[1;34m$1\033[0m/
;
11
$_
=~
s/^([^<]+<[^>]+>:)/\033[1;33m$1\033[0m/
;
12
13
print
"
$_
"
;
14
}