automake: Do not use only 4 cores for testing if we have more

This commit is contained in:
Xi Ruoyao 2023-09-11 16:07:26 +08:00
parent 95ebbb42b7
commit c17a77452a
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -53,11 +53,14 @@
<screen><userinput remap="make">make</userinput></screen> <screen><userinput remap="make">make</userinput></screen>
<para> Using the -j4 make option speeds up the tests, even on systems with <para>Using four parallel jobs speeds up the tests, even on systems with
only one processor, due to internal delays in individual tests. To test less logical cores, due to internal delays in individual tests. To test
the results, issue:</para> the results, issue:</para>
<screen><userinput remap="test">make -j4 check</userinput></screen> <screen><userinput remap="test">make <replaceable>-j$(($(nproc)&gt;4?$(nproc):4))</replaceable> check</userinput></screen>
<para>Replace <replaceable>$((...))</replaceable> with the number of
logical cores you want to use if you don't want to use all.</para>
<para>The test t/subobj.sh is known to fail.</para> <para>The test t/subobj.sh is known to fail.</para>