freebsd-skq/usr.bin/lastcomm/tests
Enji Cooper b2d48be1bc Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and
netbsd-tests.test.mk (r289151)

- Eliminate explicit OBJTOP/SRCTOP setting
- Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk
- Remove unnecessary TESTSDIR setting
- Use SRCTOP where possible for clarity

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Divison
2015-10-12 08:16:03 +00:00
..
legacy_test.sh
Makefile
README
v1-amd64-acct.in
v1-amd64.out
v1-i386-acct.in
v1-i386.out
v1-sparc64-acct.in
v1-sparc64.out
v2-amd64-acct.in
v2-amd64.out
v2-i386-acct.in
v2-i386.out
v2-sparc64-acct.in
v2-sparc64.out
values.sh

$FreeBSD$

To create the files for regression testing do the following.

1. Run values.sh for a given architecture and accounting version.
2. Unpack the generated file and rename acct into VERSION-ARCH.acct.
3. Run lastcomm -cuseS -f VERSION-ARCH-acct.in |
   awk '{$4 = ""; print}' >VERSION-ARCH.out.
4. Compare the reported values in VERSION-ARCH.out against the
   *.time values found in the file that values.sh generated.