mirror of
git://sourceware.org/git/valgrind.git
synced 2026-01-12 00:19:31 +08:00
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.
16 lines
325 B
Bash
Executable File
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
|