aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/lastcomm/tests/README
diff options
context:
space:
mode:
authorJulio Merino <jmmv@FreeBSD.org>2014-03-16 04:09:22 +0000
committerJulio Merino <jmmv@FreeBSD.org>2014-03-16 04:09:22 +0000
commitd14afb2adcbf0db6625f582abf0c7154e4e005bd (patch)
tree22c8956efd4de8b6e41a15566111321ba8fdfde0 /usr.bin/lastcomm/tests/README
parente93e4134613b6d343c15de3d1cd24f781ee05a35 (diff)
Migrate tools/regression/{usr.bin/lastcomm,usr.sbin}/ to the new tests layout.
This change was originally going to only migrate the usr.sbin tests but, as it turns out, the usr.sbin/sa/ tests require files from usr.bin/lastcomm/ so it's better to just also migrate the latter at the same time. The other usr.bin tests will be moved separately. To make these tests work within the test suite, some of them have required changes to prevent modifying the source directory and instead just rely on the current directory for file manipulation.
Notes
Notes: svn path=/head/; revision=263226
Diffstat (limited to 'usr.bin/lastcomm/tests/README')
-rw-r--r--usr.bin/lastcomm/tests/README10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr.bin/lastcomm/tests/README b/usr.bin/lastcomm/tests/README
new file mode 100644
index 000000000000..62e0281dbf88
--- /dev/null
+++ b/usr.bin/lastcomm/tests/README
@@ -0,0 +1,10 @@
+$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.