diff options
Diffstat (limited to 'testcorpus')
| -rw-r--r-- | testcorpus/git-multi/PKGBUILD | 19 | ||||
| -rw-r--r-- | testcorpus/git-multi/manifest.json | 12 | ||||
| -rw-r--r-- | testcorpus/git-tagged/PKGBUILD | 15 | ||||
| -rw-r--r-- | testcorpus/git-tagged/manifest.json | 12 |
4 files changed, 58 insertions, 0 deletions
diff --git a/testcorpus/git-multi/PKGBUILD b/testcorpus/git-multi/PKGBUILD new file mode 100644 index 0000000..3f55f20 --- /dev/null +++ b/testcorpus/git-multi/PKGBUILD @@ -0,0 +1,19 @@ +pkgbase=git-multi +pkgver=r1.0 +pkgrel=1 +pkgdesc="synthetic fixture with two upstream repos" +url="https://example.invalid/git-multi" +license=(MIT) +arch=(x86_64) +source=("git+file://@UPSTREAM_DIR@" "git+file://@UPSTREAM2_DIR@") +sha256sums=("SKIP" "SKIP") +makedepends=("git") +build() { + echo building git-multi +} +package_git-multi() { + echo packaging git-multi +} +pkgver() { + printf "r%s" "$(git -C @UPSTREAM_DIR@ rev-list --count HEAD)" +} diff --git a/testcorpus/git-multi/manifest.json b/testcorpus/git-multi/manifest.json new file mode 100644 index 0000000..bedfd29 --- /dev/null +++ b/testcorpus/git-multi/manifest.json @@ -0,0 +1,12 @@ +{ + "name": "git-multi", + "build": "succeed", + "sig": true, + "packages": [], + "installed": [ + { "name": "glibc", "version": "2.39-1", "arch": "x86_64" } + ], + "log_lines": ["==> Making package."], + "vercheck": "r1-1", + "expect": { "notes": "two VCS sources, two pin entries (ยง5.2: probe every source, not just the first)" } +} diff --git a/testcorpus/git-tagged/PKGBUILD b/testcorpus/git-tagged/PKGBUILD new file mode 100644 index 0000000..aed4c58 --- /dev/null +++ b/testcorpus/git-tagged/PKGBUILD @@ -0,0 +1,15 @@ +pkgbase=git-tagged +pkgver=1.0 +pkgrel=1 +pkgdesc="synthetic fixture pinned to a tag" +url="https://example.invalid/git-tagged" +license=(MIT) +arch=(x86_64) +source=("git+file://@UPSTREAM_DIR@#tag=v1") +sha256sums=("SKIP") +build() { + echo building git-tagged +} +package_git-tagged() { + echo packaging git-tagged +} diff --git a/testcorpus/git-tagged/manifest.json b/testcorpus/git-tagged/manifest.json new file mode 100644 index 0000000..9c6b890 --- /dev/null +++ b/testcorpus/git-tagged/manifest.json @@ -0,0 +1,12 @@ +{ + "name": "git-tagged", + "build": "succeed", + "sig": true, + "packages": [], + "installed": [ + { "name": "glibc", "version": "2.39-1", "arch": "x86_64" } + ], + "log_lines": ["==> Making package."], + "vercheck": "1.0-1", + "expect": { "notes": "#tag=v1 respected: upstream movement must not move this pin" } +} |
