opnsense-src/usr.bin/lastcomm/tests
Ed Maste 99d97cf3ae lastcomm: update amd64 and i386 tests for additional timestamp resolution
Fixes: 6f4ce7e89ba4 ("lastcomm: improve timestamp display")
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit f079ef5b6a3c6d8800724286675199f79b553ccb)
(cherry picked from commit 407e2d7cf1b6762c9768eaff60500b8d007cd81c)
2024-01-06 20:27:18 -05:00
..
legacy_test.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
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 and i386 tests for additional timestamp resolution 2024-01-06 20:27:18 -05:00
v1-i386-acct.in
v1-i386.out lastcomm: update amd64 and i386 tests for additional timestamp resolution 2024-01-06 20:27:18 -05:00
v2-amd64-acct.in
v2-amd64.out lastcomm: update amd64 and i386 tests for additional timestamp resolution 2024-01-06 20:27:18 -05:00
v2-i386-acct.in
v2-i386.out lastcomm: update amd64 and i386 tests for additional timestamp resolution 2024-01-06 20:27:18 -05:00
values.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00

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.