Files
valgrind/auxprogs/ltp-apply-patches.sh
Martin Cermak 03ea5d11d3 Allow for patching LTP sources
Sometimes there's an upstream LTP patch that helps testing
valgrind, but it's not yet part of the official LTP tarball.
In such cases it's helpful to be able to patch the LTP sources.
Attached patch allows for that.  It comes with a real life
example patch: LTP commit b62b831cf.
2025-08-06 16:39:34 +02:00

16 lines
325 B
Bash
Executable File

#!/bin/bash
set -xe
LTP_SRC_DIR=$1
cd $(dirname $(readlink -f $0))
echo "applying LTP patches ..."
if compgen -G "ltp-patches/*.patch"; then
for i in ltp-patches/*.patch; do
patch -d "$LTP_SRC_DIR" -p1 < "$i"
done
echo "applying LTP patches finished"
else
echo "no patches found, nothing to do"
fi