procps: Run test as tester

This commit is contained in:
Xi Ruoyao 2024-03-01 23:48:58 +08:00
parent 887bf34f49
commit c2d820a770
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -70,22 +70,17 @@
<screen revision='sysv'><userinput remap="make">make</userinput></screen> <screen revision='sysv'><userinput remap="make">make</userinput></screen>
<screen revision='systemd'><userinput remap="make">make src_w_LDADD='$(LDADD) -lsystemd'</userinput></screen> <screen revision='systemd'><userinput remap="make">make src_w_LDADD='$(LDADD) -lsystemd'</userinput></screen>
<para> To run the test suite, run:</para> <!-- To editors: "pmap {X,XX} with unreachable process" tests don't work
as root. They may seem to pass due to some Tcl/Expect/DejaGNU
internal hazards with some "luck" though. -->
<para>To run the test suite, run:</para>
<screen><userinput remap="test">make -k check</userinput></screen> <screen><userinput remap="test">su tester -c "PATH=$PATH make check"</userinput></screen>
<para>One test named <para>One test named
<literal>ps with output flag bsdtime,cputime,etime,etimes</literal> <literal>ps with output flag bsdtime,cputime,etime,etimes</literal>
is known to fail if the host kernel is not built with is known to fail if the host kernel is not built with
<literal>CONFIG_BSD_PROCESS_ACCT</literal> enabled. <literal>CONFIG_BSD_PROCESS_ACCT</literal> enabled.</para>
<!-- These two tests just do not work as root but they seem to pass
in most time due to some internal hazards of Tcl/Expect/DejaGNU
framework. However the failures have been really observed.
TODO: run the test suite as tester after the freeze ends. -->
Two tests named
<literal>pmap X with unreachable process</literal> and
<literal>pmap XX with unreachable process</literal> are known to
fail occasionally.</para>
<para>Install the package:</para> <para>Install the package:</para>