]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: provide 100% coverage for echo
authorBernhard Voelker <mail@bernhard-voelker.de>
Mon, 24 Sep 2018 21:47:39 +0000 (23:47 +0200)
committerPádraig Brady <P@draigBrady.com>
Sat, 27 Oct 2018 12:02:54 +0000 (05:02 -0700)
commitbdd54b4ee00853086852d1813e66525689fc0a39
tree6833b1e94c633a14e0b22d234c89361193a82574
parent8d328706c6ef0264dffb923f96431af1e26dcddd
tests: provide 100% coverage for echo

*  src/echo.c (usage): Assert that STATUS is always EXIT_SUCCESS.
* tests/misc/echo.sh: Add further tests for all hex and escape and
escape characters.

To get coverage statistics, run:
  make coverage -j 4 TESTS=tests/misc/echo.sh SUBDIRS=.
  xdg-open doc/coverage/src/echo.c.gcov.frameset.html
src/echo.c
tests/misc/echo.sh