freebsd-dev/usr.bin/lastcomm/tests
Enji Cooper b943c77347 Fix .../usr.bin/lastcomm/legacy_test:main on i386
The time in the output files was ahead by 3 hours on i386. Fix the incorrect
offset.

Differential Revision: https://reviews.freebsd.org/D7079 (as part of a larger diff)
MFC after: 1 week
PR: 210329
Reported by: asomers
Approved by: re (gjb)
Reviewed by: cem
Sponsored by: EMC / Isilon Storage Division
2016-07-03 17:52:21 +00:00
..
legacy_test.sh Output the diffs to standard error when comparing the expected vs the 2016-07-03 17:51:24 +00:00
Makefile Skip lastcomm and sa tests on unsupported architectures 2016-06-26 00:53:31 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
README
v1-amd64-acct.in
v1-amd64.out
v1-i386-acct.in
v1-i386.out Fix .../usr.bin/lastcomm/legacy_test:main on i386 2016-07-03 17:52:21 +00:00
v1-sparc64-acct.in
v1-sparc64.out
v2-amd64-acct.in
v2-amd64.out
v2-i386-acct.in
v2-i386.out Fix .../usr.bin/lastcomm/legacy_test:main on i386 2016-07-03 17:52:21 +00:00
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.