```$ (set -e; sudo make hier; cd usr.bin/indent/; make; sudo make install; cd tests; make check)
$ sudo make hiercd /usr/src/etc; PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin make LOCAL_MTREE= distrib-dirs
...for file in /usr/share/doc/usd/10.exref /usr/share/doc/usd/11.edit /usr/share/doc/usd/12.vi /usr/share/doc/usd/13.viref; do if [ -f /${file} ]; then rm -f /${file}; fi; done
$ cd usr.bin/indent/testsmtree -deU -i -f /usr/src/etc/mtree/BSD.root.dist -p /
$ make -s obj; make -s all; sudo make -s installboot/kernel:
... type (dir, link)
$ make checkmtree -deU -i -f /usr/src/etc/mtree/BSD.var.dist -p /var
functional_test:comments -> passed [0.034s]mtree -deU -i -f /usr/src/etc/mtree/BSD.usr.dist -p /usr
functional_test:declarations -> passed [0.033s]mtree -deU -i -f /usr/src/etc/mtree/BSD.include.dist -p /usr/include
functional_test:elsecomment -> failed: atf-check failed; see the output of the test for details [0.039s]mtree -deU -i -f /usr/src/etc/mtree/BSD.debug.dist -p /usr/lib
functional_test:float -> passed [0.031s]mtree -deU -i -f /usr/src/etc/mtree/BSD.groff.dist -p /usr
functional_test:label -> failed: atf-check failed; see the output of the test for details [0.036s]mtree -deU -i -f /usr/src/etc/mtree/BSD.tests.dist -p /usr/tests
functional_test:list_head -> passed [0.029s]./usr.bin/indent missing (created)
functional_mtree -deU -i -f /usr/src/etc/mtree/BSD.test:nsac -> passed [0.031s]s.dist -p /usr/lib/debug//usr/tests
functional_test:offsetof -> passed [0.034s]mtree -deU -i -f /usr/src/etc/mtree/BSD.sendmail.dist -p /
functional_test:sac -> failed: atf-check failed; see the output of the test for details [0.035s]install -l s usr/src/sys /sys
functional_test:struct -> passed [0.033s]cd /usr/share/man; for mandir in man*; do install -l s ../$mandir /usr/share/man/en.ISO8859-1/; install -l s ../$mandir /usr/share/man/en.UTF-8/; done
functional_test:surplusbad -> passed [0.033s]cd /usr/share/openssl/man; for mandir in man*; do install -l s ../$mandir /usr/share/openssl/man/en.ISO8859-1/; done
functional_test:types_from_file -> failed: atf-check failedset - `grep "^[a-zA-Z]" /usr/src/etc/man.alias`; while [ $# -gt 0 ] ; do install -l s "$2" "/usr/share/man/$1"; if [ "yes" != "no" ]; then install -l s "$2" "/usr/share/openssl/man/$1"; fi; shift; see the output of the test for details [0.034s]shift; done
functional_test:wchar -> passed [0.035s]
Results file id is usr_tests_usr.bin_indent.20170228-045539-870039set - `grep "^[a-zA-Z]" /usr/src/etc/nls.alias`; while [ $# -gt 0 ] ; do install -l s "$2" "/usr/share/nls/$1"; shift; shift; done
Results saved to /home/ngie/.kyua/store/results.usr_tests_usr.bin_indent.20170228-045539-870039.db
9/13 passed (4 failed===> tests (all)
*** Error code 1
Stop.install -s -o root -g wheel -m 555 indent /usr/bin/indent
make: stopped ininstall -o root -g wheel -m 444 indent.debug /usr/src/lib/debug/usr./bin/indent/tests.debug
$ kyua debug -k /usr/tests/usr.bin/indent/Kyuafile functional_test:elsecomment
Executing command [ sed -e /\$FreeBSD.*\$/d /usr/tests/usr.bin/indent/elsecomment.0.stdout ]install -o root -g wheel -m 444 indent.1.gz /usr/share/man/man1/
Executing command [ /usr/bin/indent ]===> tests (install)
Fail: stdout does not match golden outputinstall -o root -g wheel -m 555 functional_test /usr/tests/usr.bin/indent/functional_test
--- output_file.parsed 2017-02-28 04:56:05.959888000 +0000install -o root -g wheel -m 444 Kyuafile /usr/tests/usr.bin/indent/Kyuafile
+++ /tmp/kyua.gYlegH/2/work/check.dtCn0Q/stdout 2017-02-28 04:56:05.965701000 +0000install -o root -g wheel -m 444 /usr/src/usr.bin/indent/tests/comments.0 /usr/src/usr.bin/indent/tests/comments.0.stdout /usr/src/usr.bin/indent/tests/declarations.0 /usr/src/usr.bin/indent/tests/declarations.0.stdout /usr/src/usr.bin/indent/tests/elsecomment.0 /usr/src/usr.bin/indent/tests/elsecomment.0.stdout /usr/src/usr.bin/indent/tests/elsecomment.0.pro /usr/src/usr.bin/indent/tests/float.0 /usr/src/usr.bin/indent/tests/float.0.stdout /usr/src/usr.bin/indent/tests/label.0 /usr/src/usr.bin/indent/tests/label.0.stdout /usr/src/usr.bin/indent/tests/label.0.pro /usr/src/usr.bin/indent/tests/list_head.0 /usr/src/usr.bin/indent/tests/list_head.0.stdout /usr/src/usr.bin/indent/tests/nsac.0 /usr/src/usr.bin/indent/tests/nsac.0.stdout /usr/src/usr.bin/indent/tests/nsac.0.pro /usr/src/usr.bin/indent/tests/offsetof.0 /usr/src/usr.bin/indent/tests/offsetof.0.stdout /usr/src/usr.bin/indent/tests/sac.0 /usr/src/usr.bin/indent/tests/sac.0.stdout /usr/src/usr.bin/indent/tests/sac.0.pro /usr/src/usr.bin/indent/tests/struct.0 /usr/src/usr.bin/indent/tests/struct.0.stdout /usr/src/usr.bin/indent/tests/surplusbad.0 /usr/src/usr.bin/indent/tests/surplusbad.0.stdout /usr/src/usr.bin/indent/tests/surplusbad.0.pro /usr/src/usr.bin/indent/tests/types_from_file.0 /usr/src/usr.bin/indent/tests/types_from_file.0.stdout /usr/src/usr.bin/indent/tests/types_from_file.0.list /usr/src/usr.bin/indent/tests/types_from_file.0.pro /usr/src/usr.bin/indent/tests/wchar.0 /usr/src/usr.bin/indent/tests/wchar.0.stdout /usr/tests/usr.bin/indent/
@@ -2,8 +2,7 @@functional_test:comments -> passed [0.026s]
voidfunctional_test:declarations -> passed [0.026s]
t(void)functional_test:elsecomment -> passed [0.030s]
{functional_test:float -> passed [0.024s]
- if (0)functional_test:label -> passed [0.026s]
- {functional_test:list_head -> passed [0.026s]
+ if (0) {
} /* Old indent would remove the followingfunctional_test:nsac -> passed [0.025s]
* blank line */functional_test:offsetof -> passed [0.027s]
@@ -12,8 +11,7 @@functional_test:sac -> passed [0.026s]
* testfunctional_test:struct -> passed [0.026s]
*/
- if (1)functional_test:surplusbad -> passed [0.026s]
- ;functional_test:types_from_file -> passed [0.029s]
+ if (1);
else /* Old indent would get very confused here */
{functional_test:wchar -> passed [0.028s]
Files left in work directory after failure: input_file.parsed, output_file.parsedResults file id is usr_tests_usr.bin_indent.20170303-192412-590088
functional_test:elsecomment -> failed: atf-check failed; see the output of the test for detailsResults saved to /home/ngie/.kyua/store/results.usr_tests_usr.bin_indent.20170303-192412-590088.db
13/13 passed (0 failed)```