opnsense-src/usr.bin/indent/tests
Enji Cooper 7d9ade5da1 Integrate indent tests added in r313544 into ATF/Kyua and the FreeBSD
test suite

This change does the following:

- Introduces symmetry in the test inputs/outputs by adding the exit
  code to the files. This simplified the test driver notably by
  requiring less filename/test name manipulation.
- Adds a test driver for the testcases added in r313544, patterned
  after bin/sh/tests/functional_test.sh . The driver calls indent as
  noted in r313544, with an exception: The $FreeBSD$ RCS keyword's
  expansion is reindented with indent, which means that the output
  differs from the expected output. Thus, all lines with $FreeBSD$
  in them are deleted on the fly, both in the input file and the
  output file.

  The test inputs/outputs are copied to the kyua sandbox before the
  test is run as the pathing in some of the files relies on pathing
  normalized to the current directory (copying the files is the
  easiest way to resolve the issue).

Approved by:	pstef (maintainer)
Reviewed by:	pstef
X-MFC with:	r313544
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D9682
2017-03-03 20:15:22 +00:00
..
comments.0
comments.0.stdout
declarations.0
declarations.0.stdout
elsecomment.0
elsecomment.0.pro
elsecomment.0.stdout
float.0
float.0.stdout
functional_test.sh
label.0
label.0.pro
label.0.stdout
list_head.0
list_head.0.stdout
Makefile
nsac.0
nsac.0.pro
nsac.0.stdout
offsetof.0
offsetof.0.stdout
sac.0
sac.0.pro
sac.0.stdout
struct.0
struct.0.stdout
surplusbad.0
surplusbad.0.pro
surplusbad.0.stdout
types_from_file.0
types_from_file.0.list
types_from_file.0.pro
types_from_file.0.stdout
wchar.0
wchar.0.stdout