summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-17 17:50:04 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-17 17:58:29 (EDT)
commitf1b93e49041f0fc1dfe69c56cfbda3a84a046bff (patch)
tree169706580e7afda885347d8da85dcc1f04b92c47 /tests
parent800d2e1f4fec0ec1b80e74ba61f1bad79692b4b4 (diff)
tests/aux/setup.sh: Make a patch
Diffstat (limited to 'tests')
-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