SVNews r330634

NOTE: This service is experimental and subject to change! Use at your own risk!

2018-03-08 07:05:19 - r330634 by eadler (Eitan Adler)

Complete list of files affected by revision r330634:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

   Contents     MODIFY   /stable/11  
  History   Contents     ADD   /stable/11/usr.bin/indent/tests  

Commit message:

MFC r313544:

indent(1): add regression test cases

These examples show expected behavior of indent(1). They are meant to be used
together with a regression test mechanism, either Kyua, a Makefile or perhaps
something else. The mechanism should in essence do this:
  indent -P${test}.pro < ${test}.0 > ${test}
and compare ${test}.0.stdout to ${test} If the files differ or the exit
status isn't 0, the test failed.

* ${test}.pro is an indent(1) profile: a list of options passed through a file.
  The program doesn't complain if the file doesn't exist.
* ${test}.0 is a C source file which acts as input for indent(1). It doesn't
  have to have any particular formatting, since it's the output that matters.
* ${test}.0.stdout contains expected output. It doesn't have to be formatted in
  Kernel Normal Form as the point of the tests is to check for regressions in
  the program and not to check that it always produces KNF.


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 11 ms, 2 files printed. Current time is 2018-03-22 11:28:40. All times are in UTC/GMT.