The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/openzfs/scripts/zfs-tests-color.sh

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #!/bin/sh
    2 # A large mass of sed for coloring zfs-tests.sh output
    3 # Version 2, thanks to наб.
    4 # Just pipe zfs-tests.sh output into this, and watch.
    5 
    6 exec "$(command -v gsed || echo sed)" \
    7         -e 's/\] \[PASS\]$/] [\x1b[92mPASS\x1b[0m]/' \
    8         -e 's/\] \[FAIL\]$/] [\x1b[1;91mFAIL\x1b[0m]/' \
    9         -e 's/\] \[KILLED\]$/] [\x1b[1;101mKILLED\x1b[0m]/' \
   10         -e 's/\] \[SKIP\]$/] [\x1b[1mSKIP\x1b[0m]/' \
   11         -e 's/\] \[RERAN\]$/] [\x1b[1;93mRERAN\x1b[0m]/' \
   12         -e 's/^\(PASS\W\)/\x1b[92m\1\x1b[0m/' \
   13         -e 's/^\(FAIL\W\)/\x1b[1;91m\1\x1b[0m/' \
   14         -e 's/^\(KILLED\W\)/\x1b[1;101m\1\x1b[0m/' \
   15         -e 's/^\(SKIP\W\)/\x1b[1m\1\x1b[0m/' \
   16         -e 's/^\(RERAN\W\)/\x1b[1;93m\1\x1b[0m/' \
   17         -e 's/^Tests with result\(.\+\)PASS\(.\+\)$/Tests with result\1\x1b[92mPASS\x1b[0m\2/' \
   18         -e 's/^\(\W\+\)\(KILLED\)\(\W\)/\1\x1b[1;101m\2\x1b[0m\3/g' \
   19         -e 's/^\(\W\+\)\(FAIL\)\(\W\)/\1\x1b[1;91m\2\x1b[0m\3/g' \
   20         -e 's/^\(\W\+\)\(RERUN\)\(\W\)/\1\x1b[1;93m\2\x1b[0m\3/g' \
   21         -e 's/^\(\W\+\)\(SKIP\)\(\W\)/\1\x1b[1m\2\x1b[0m\3/g' \
   22         -e 's/expected \(PASS\))$/expected \x1b[92m\1\x1b[0m)/' \
   23         -e 's/expected \(KILLED\))$/expected \x1b[1;101m\1\x1b[0m)/' \
   24         -e 's/expected \(FAIL\))$/expected \x1b[1;91m\1\x1b[0m)/' \
   25         -e 's/expected \(RERUN\))$/expected \x1b[1;93m\1\x1b[0m)/' \
   26         -e 's/expected \(SKIP\))$/expected \x1b[1m\1\x1b[0m)/' \
   27         -e 's/^Test\( ([[:alnum:] ]\+)\)\?: \(.\+\) (run as \(.\+\)) \[\([0-9]\+:[0-9]\+\)\] \[\(.\+\)\]$/\x1b[1mTest\1: \x1b[0m\2 (run as \x1b[1m\3\x1b[0m) [\x1b[1m\4\x1b[0m\] [\5\]/'

Cache object: 2287e6c2afce45e8c7db21b31408a9be


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.