maint: use slightly more efficient process in README-release
authorJim Meyering <meyering@redhat.com>
Tue, 4 Jan 2011 11:47:24 +0000 (12:47 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 19 Jan 2011 07:35:36 +0000 (08:35 +0100)
* README-release: Run cheaper root-only tests first.
Use half of processing units (not just 1) for the expensive tests.

README-release

index b2bd34c..729ab89 100644 (file)
@@ -29,13 +29,15 @@ FIXME: enable excluded programs like arch? to get their manual pages?
   Run the following on at least one SELinux-enabled (enforcing) and
   one non-SELinux system:
 
-    make distcheck
-    make -j1 check RUN_VERY_EXPENSIVE_TESTS=yes RUN_EXPENSIVE_TESTS=yes
-    sudo env PATH="$PATH" NON_ROOT_USERNAME=$USER make -k check-root
-
-  Note the -j1 above.  If you use -jN, for larger N, some of the expensive
-  tests are likely to interfere with concurrent performance-measuring or
-  timing-sensitive tests, resulting in spurious failures.
+    n=$(( ($(nproc) + 1) / 2 ))
+    sudo env PATH="$PATH" NON_ROOT_USERNAME=$USER make -k -j$(nproc) check-root\
+      && make distcheck \
+      && make -j$n check RUN_VERY_EXPENSIVE_TESTS=yes RUN_EXPENSIVE_TESTS=yes
+
+  Note that the use of -j$n tells make to use approximately half of the
+  available processing units.  If you use -jN, for larger N, some of the
+  expensive tests are likely to interfere with concurrent performance-measuring
+  or timing-sensitive tests, resulting in spurious failures.
 
   If "make distcheck" doesn't run "make syntax-check" for you, then run
   it manually: