Nicholas Nethercote 8a75eecbad Rewrite cg_diff in Python.
For all the same reasons I rewrote `cg_annotate` in Python.

The commit also moves the Python "build" steps into
`auxprogs/pybuild.sh`, for easy sharing.

Finally, it very slightly tweaks the whitespace in the output of
`cg_annotate`.
2023-03-28 14:54:25 +11:00

7 lines
460 B
Plaintext

# The `prog` doesn't matter because we don't use its output. Instead we test
# the post-processing of the `ann-diff2{a,b}.cgout` test files.
prog: ../../tests/true
vgopts: --cachegrind-out-file=cachegrind.out
post: python ../../cachegrind/cg_diff --mod-filename="s/.*aux\//aux\//i" --mod-funcname="s/(f[a-z]*)[0-9]/\1N/g" ann-diff2a.cgout ann-diff2b.cgout > ann-diff2c.cgout && python ../../cachegrind/cg_annotate ann-diff2c.cgout
cleanup: rm ann-diff2c.cgout