]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: update valgrind instructions
authorPádraig Brady <P@draigBrady.com>
Sat, 27 Sep 2025 16:44:48 +0000 (17:44 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 27 Sep 2025 23:25:06 +0000 (00:25 +0100)
* README-valgrind: Adjust to current repo structure,
and give clearer step by step instructions.

README-valgrind

index 43e29a53cbdf8dab2b9b4d46af78cc434e851489..8b4abecfbdcd7ab5aa5c7d7bdb53cbe04f5c4a18 100644 (file)
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
 
-
-# Convert Makefile.am files:
-#  find tests -name check.mk | xargs grep -wl PATH |
-#    xargs perl -pi -e 's,src(\$\(PATH_SEPARATOR\)),src/vg$1,'
-# To restore:
-#  find tests -name check.mk | xargs grep -wl PATH |
-#    xargs perl -pi -e 's,src/vg,src,'
-#
-# Create this symlink for suppressions (this is no longer necessary,
-# with Linux kernel 2.6.9 and valgrind-2.2.0):
-# ln -s $PWD/.vg-suppressions /tmp/cu-vg
-
-
-# Create src/vg:
-
+# Step 1:
+# Run this file to create src/vg:
 coreutils=$(echo 'spy:;@echo $(all_programs) $(noinst_PROGRAMS)' |
-            (cd src; make -f Makefile -f - spy | tr -s '\n ' '  '))
+            (make -f Makefile -f - spy | sed 's,src/,,g'| tr -s '\n ' '  '))
 mkdir -p src/vg
 pwd=`pwd`
 srcdir=$pwd/src
@@ -52,3 +39,20 @@ done
 EOF
 cd src/vg
 . ./gen
+
+
+# Step 2
+# Convert make file to point to src/vg wrappers
+#   sed -i 's,src\(\$(PATH_SEPARATOR)\),src/vg\1,' tests/local.mk
+# To restore:
+#   sed -i 's,src/vg,src,' tests/local.mk
+
+# Step 2.5  Usually not needed
+# Create this symlink for suppressions (this is no longer necessary,
+# with Linux kernel 2.6.9 and valgrind-2.2.0):
+#   ln -s $PWD/.vg-suppressions /tmp/cu-vg
+
+
+# Step 3:
+# Run (probably a subset of tests due to speed) with fd 3 redirected:
+#   make TESTS=... SUBDIRS=. check 3>vg.log