freebsd-src/usr.bin/lastcomm/tests
Ed Maste 407e2d7cf1 lastcomm: update i386 tests for additional timestamp resolution
Fixes: 6f4ce7e89b ("lastcomm: improve timestamp display")
Sponsored by:	The FreeBSD Foundation
2023-09-22 14:47:03 -04:00
..
legacy_test.sh
Makefile
Makefile.depend
README Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
v1-amd64-acct.in
v1-amd64.out lastcomm: update amd64 tests for additional timestamp resolution 2023-09-22 13:54:24 -04:00
v1-i386-acct.in
v1-i386.out lastcomm: update i386 tests for additional timestamp resolution 2023-09-22 14:47:03 -04:00
v2-amd64-acct.in
v2-amd64.out lastcomm: update amd64 tests for additional timestamp resolution 2023-09-22 13:54:24 -04:00
v2-i386-acct.in
v2-i386.out lastcomm: update i386 tests for additional timestamp resolution 2023-09-22 14:47:03 -04:00
values.sh

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.