summaryrefslogtreecommitdiffstats
path: root/testcorpus/with-patch
diff options
context:
space:
mode:
Diffstat (limited to 'testcorpus/with-patch')
-rw-r--r--testcorpus/with-patch/PKGBUILD15
-rw-r--r--testcorpus/with-patch/fix.patch5
-rw-r--r--testcorpus/with-patch/manifest.json30
3 files changed, 50 insertions, 0 deletions
diff --git a/testcorpus/with-patch/PKGBUILD b/testcorpus/with-patch/PKGBUILD
new file mode 100644
index 0000000..c4246a9
--- /dev/null
+++ b/testcorpus/with-patch/PKGBUILD
@@ -0,0 +1,15 @@
+pkgbase=with-patch
+pkgver=1.0
+pkgrel=1
+pkgdesc="synthetic fixture"
+url="https://example.invalid/with-patch"
+license=(MIT)
+arch=(x86_64)
+source=("fix.patch")
+sha256sums=("SKIP")
+build() {
+ echo building with-patch
+}
+package_with-patch() {
+ echo packaging with-patch
+}
diff --git a/testcorpus/with-patch/fix.patch b/testcorpus/with-patch/fix.patch
new file mode 100644
index 0000000..128d5b6
--- /dev/null
+++ b/testcorpus/with-patch/fix.patch
@@ -0,0 +1,5 @@
+--- a/src/main.c
++++ b/src/main.c
+@@ -1,2 +1,2 @@
+-int x = 1;
++int x = 2;
diff --git a/testcorpus/with-patch/manifest.json b/testcorpus/with-patch/manifest.json
new file mode 100644
index 0000000..cf4776e
--- /dev/null
+++ b/testcorpus/with-patch/manifest.json
@@ -0,0 +1,30 @@
+{
+ "name": "with-patch",
+ "build": "succeed",
+ "sig": true,
+ "packages": [],
+ "installed": [
+ {
+ "name": "glibc",
+ "version": "2.39-1",
+ "arch": "x86_64"
+ },
+ {
+ "name": "pacman",
+ "version": "6.1.0-1",
+ "arch": "x86_64"
+ },
+ {
+ "name": "binutils",
+ "version": "2.42-1",
+ "arch": "x86_64"
+ }
+ ],
+ "log_lines": [
+ "==> Making package.",
+ "==> Entering fakeroot environment."
+ ],
+ "expect": {
+ "notes": "recipe_hash must cover fix.patch"
+ }
+}