-SUBDIRS = . docs
+SUBDIRS = . docs tests
INCLUDES = -I$(top_srcdir)/include
--- /dev/null
+Makefile.in
+Makefile
--- /dev/null
+## Process this file with automake to produce Makefile.in
+
+noinst_SCRIPTS = filter_stderr
+
+EXTRA_DIST = \
+ $(noinst_SCRIPTS) \
+ true.stderr.exp true.stderr.exp.hd true.vgtest
--- /dev/null
+#! /bin/sh
+
+# Same as for MemCheck
+
+dir=`dirname $0`
+
+$dir/../../memcheck/tests/filter_stderr
+
--- /dev/null
+
+
+ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
+malloc/free: in use at exit: 0 bytes in 0 blocks.
+malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+For a detailed leak analysis, rerun with: --leak-check=yes
+For counts of detected errors, rerun with: -v
--- /dev/null
+
+
+ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
+malloc/free: in use at exit: 0 bytes in 0 blocks.
+malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+For a detailed leak analysis, rerun with: --leak-check=yes
+For counts of detected errors, rerun with: -v
--- /dev/null
+prog: ../../tests/true
coregrind/docs/Makefile
coregrind/valgrind
addrcheck/Makefile
+ addrcheck/tests/Makefile
addrcheck/docs/Makefile
memcheck/Makefile
memcheck/tests/Makefile
memcheck/docs/Makefile
cachegrind/Makefile
- cachegrind/cg_annotate
cachegrind/tests/Makefile
cachegrind/docs/Makefile
+ cachegrind/cg_annotate
corecheck/Makefile
corecheck/tests/Makefile
corecheck/docs/Makefile
helgrind/Makefile
+ helgrind/tests/Makefile
helgrind/docs/Makefile
lackey/Makefile
+ lackey/tests/Makefile
lackey/docs/Makefile
none/Makefile
none/tests/Makefile
-SUBDIRS = . docs
+SUBDIRS = . docs tests
CFLAGS = $(WERROR) -DVG_LIBDIR="\"$(libdir)"\" \
-Winline -Wall -Wshadow -O -fomit-frame-pointer @PREFERRED_STACK_BOUNDARY@ -g
--- /dev/null
+Makefile.in
+Makefile
--- /dev/null
+## Process this file with automake to produce Makefile.in
+
+noinst_SCRIPTS = filter_stderr
+
+EXTRA_DIST = \
+ $(noinst_SCRIPTS) \
+ true.stderr.exp true.stderr.exp.hd true.vgtest
--- /dev/null
+#! /bin/sh
+
+# Same as for MemCheck
+
+dir=`dirname $0`
+
+$dir/../../tests/filter_stderr_basic |
+
+# Output looks like...
+#
+# ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
+# [0] = { }
+# ==27116== 0 possible data races found
+
+sed "/ERROR SUMMARY:/ , /0 possible data races found/ d"
+
--- /dev/null
+prog: ../../tests/true
-SUBDIRS = . docs
+SUBDIRS = . docs tests
CFLAGS = $(WERROR) -DVG_LIBDIR="\"$(libdir)"\" \
-Winline -Wall -Wshadow -O -fomit-frame-pointer @PREFERRED_STACK_BOUNDARY@ -g
--- /dev/null
+Makefile.in
+Makefile
--- /dev/null
+## Process this file with automake to produce Makefile.in
+
+noinst_SCRIPTS = filter_stderr
+
+EXTRA_DIST = \
+ $(noinst_SCRIPTS) \
+ true.stderr.exp true.stderr.exp.hd true.vgtest
--- /dev/null
+#! /bin/sh
+
+dir=`dirname $0`
+
+$dir/../../tests/filter_stderr_basic |
+
+# Output looks like this...
+#
+# Counted 53 calls to _dl_runtime_resolve()
+#
+# Executed:
+# BBs: 47131
+# x86 instrs: 193330
+# UInstrs: 523996
+#
+# Jccs:
+# total: 36368
+# % taken: 58%
+#
+# Ratios:
+# x86 instrs : BB = 41 : 10
+# UInstrs : BB = 111 : 10
+# UInstrs : x86_instr = 27 : 10
+#
+# ...so chop all lines between first and last (inclusive)
+sed "/^Counted [0-9]\+ calls to _dl_runtime_resolve()$/ , \
+ /UInstrs : x86_instrs = [0-9]\+ : [0-9]\+/ \
+ d"
+
--- /dev/null
+
+
+ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
+malloc/free: in use at exit: 0 bytes in 0 blocks.
+malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
+For a detailed leak analysis, rerun with: --leak-check=yes
+For counts of detected errors, rerun with: -v
--- /dev/null
+prog: ../../tests/true
#! /bin/sh
-# Skip first four lines (valgrind intro)
-
dir=`dirname $0`
$dir/../../tests/filter_stderr_basic |
filter_stderr_basic \
filter_test_paths
+noinst_PROGRAMS = \
+ true
+
+CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g
+CXXFLAGS = $(CFLAGS)
+
+# generic C ones
+true_SOURCES = true.c
+
EXTRA_DIST = \
$(noinst_SCRIPTS) \
blocked_syscall.c \
# Remove ==pid== and --pid-- and ++pid++ strings
sed "s/\(==\|--\|++\)[0-9]\{3,5\}\1 //" |
-# Remove "<name>, a <description> for x86-linux." line and the following
-# copyright notice line
+# Remove intro line for 1.0.X branch
+sed "/valgrind-.*, a memory error detector for x86 GNU\/Linux./d" |
+sed "/cachegrind-.*, an I1.D1.L2 cache profiler for x86 GNU\/Linux./d" |
+
+# Remove "<name>, a <description> for x86-linux." line
+# and the following copyright notice line for post-1.0.X branch
sed "/^.*, .* for x86-linux\./ , /./ d" |
# Remove other introductory lines
--- /dev/null
+int main(void)
+{
+ return 0;
+}