summaryrefslogtreecommitdiffstats
path: root/tests/t-buildinfo
diff options
context:
space:
mode:
Diffstat (limited to 'tests/t-buildinfo')
-rw-r--r--tests/t-buildinfo/Makefile11
-rw-r--r--tests/t-buildinfo/db-buildinfo/status28
-rw-r--r--tests/t-buildinfo/db-buildinfo/updates/.keep0
-rw-r--r--tests/t-buildinfo/pkg-source/debian/changelog5
-rw-r--r--tests/t-buildinfo/pkg-source/debian/control13
-rw-r--r--tests/t-buildinfo/pkg-source/debian/source/format1
6 files changed, 58 insertions, 0 deletions
diff --git a/tests/t-buildinfo/Makefile b/tests/t-buildinfo/Makefile
new file mode 100644
index 0000000..019d850
--- /dev/null
+++ b/tests/t-buildinfo/Makefile
@@ -0,0 +1,11 @@
+OPTS = --admindir=$(CURDIR)/db-buildinfo
+
+test:
+ touch test-binary-a_1.0_amd64.deb
+ dpkg-source -b pkg-source
+ cd pkg-source && DEB_HOST_ARCH=amd64 dpkg-checkbuilddeps $(OPTS)
+ cd pkg-source && DEB_HOST_ARCH=amd64 dpkg-genbuildinfo $(OPTS)
+
+test-clean:
+ rm -f *.dsc *.deb *.buildinfo
+ rm -f *.tar.xz
diff --git a/tests/t-buildinfo/db-buildinfo/status b/tests/t-buildinfo/db-buildinfo/status
new file mode 100644
index 0000000..96c0e2a
--- /dev/null
+++ b/tests/t-buildinfo/db-buildinfo/status
@@ -0,0 +1,28 @@
+Package: pkg-depender
+Status: install ok installed
+Priority: extra
+Section: test
+Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org>
+Architecture: i386
+Version: 1.0
+Depends: pkg-virtual
+Description: test package
+
+Package: pkg-provider
+Status: install ok installed
+Priority: extra
+Section: test
+Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org>
+Architecture: i386
+Version: 2.0
+Provides: pkg-virtual
+Description: test package
+
+Package: build-essential
+Status: install ok installed
+Priority: extra
+Section: test
+Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org>
+Architecture: amd64
+Version: 10.0
+Description: fake package
diff --git a/tests/t-buildinfo/db-buildinfo/updates/.keep b/tests/t-buildinfo/db-buildinfo/updates/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/t-buildinfo/db-buildinfo/updates/.keep
diff --git a/tests/t-buildinfo/pkg-source/debian/changelog b/tests/t-buildinfo/pkg-source/debian/changelog
new file mode 100644
index 0000000..104fb70
--- /dev/null
+++ b/tests/t-buildinfo/pkg-source/debian/changelog
@@ -0,0 +1,5 @@
+test-source (1.0) UNRELEASED; urgency=medium
+
+ * Initial release.
+
+ -- Dpkg Developers <debian-dpkg@lists.debian.org> Fri, 09 Dec 2016 18:48:32 +0100
diff --git a/tests/t-buildinfo/pkg-source/debian/control b/tests/t-buildinfo/pkg-source/debian/control
new file mode 100644
index 0000000..e2ff1e1
--- /dev/null
+++ b/tests/t-buildinfo/pkg-source/debian/control
@@ -0,0 +1,13 @@
+Source: test-source
+Section: test
+Priority: extra
+Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org>
+Build-Depends:
+ pkg-depender:i386,
+ pkg-virtual:i386,
+Standards-Version: 3.9.8
+
+Package: pkg-binary-a
+Architecture: amd64
+Multi-Arch: foreign
+Description: test binary a
diff --git a/tests/t-buildinfo/pkg-source/debian/source/format b/tests/t-buildinfo/pkg-source/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/tests/t-buildinfo/pkg-source/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)