summaryrefslogtreecommitdiffstats
path: root/tests/aux/setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/aux/setup.sh')
-rw-r--r--tests/aux/setup.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/aux/setup.sh b/tests/aux/setup.sh
index e16b3d6..6b2c95c 100644
--- a/tests/aux/setup.sh
+++ b/tests/aux/setup.sh
@@ -49,3 +49,14 @@ FOO_SH="$(cat <<-'EOF'
mkdir -p '../src/src/'
printf '%s\n' "${FOO_SH}" >'../src/src/foo.sh'
+
+mkdir 'patches/'
+cat >'patches/01_goodbye.patch' <<-'EOF'
+ diff -Naur a/src/foo.sh b/src/foo.sh
+ --- a/src/foo.sh
+ +++ b/src/foo.sh
+ @@ -1,2 +1,2 @@
+ #!/bin/sh
+ -printf 'Hello, world!\n'
+ +printf 'Goodbye, world!\n'
+ EOF