]> git.decadent.org.uk Git - dak.git/commitdiff
tests: add a few packages for testing dak
authorAnsgar Burchardt <ansgar@debian.org>
Sat, 16 Jun 2012 07:44:00 +0000 (09:44 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 1 Jul 2012 11:16:15 +0000 (13:16 +0200)
24 files changed:
tests/fixtures/packages/.gitignore [new file with mode: 0644]
tests/fixtures/packages/Makefile [new file with mode: 0644]
tests/fixtures/packages/gpg/pubring.gpg [new file with mode: 0644]
tests/fixtures/packages/gpg/random_seed [new file with mode: 0644]
tests/fixtures/packages/gpg/secring.gpg [new file with mode: 0644]
tests/fixtures/packages/gpg/trustdb.gpg [new file with mode: 0644]
tests/fixtures/packages/nonfree-package-0.1/debian/changelog [new file with mode: 0644]
tests/fixtures/packages/nonfree-package-0.1/debian/compat [new file with mode: 0644]
tests/fixtures/packages/nonfree-package-0.1/debian/control [new file with mode: 0644]
tests/fixtures/packages/nonfree-package-0.1/debian/nonfree-package.install [new file with mode: 0644]
tests/fixtures/packages/nonfree-package-0.1/debian/rules [new file with mode: 0755]
tests/fixtures/packages/nonfree-package-0.1/some-file [new file with mode: 0644]
tests/fixtures/packages/package-0.1/debian/changelog [new file with mode: 0644]
tests/fixtures/packages/package-0.1/debian/compat [new file with mode: 0644]
tests/fixtures/packages/package-0.1/debian/control [new file with mode: 0644]
tests/fixtures/packages/package-0.1/debian/package.install [new file with mode: 0644]
tests/fixtures/packages/package-0.1/debian/rules [new file with mode: 0755]
tests/fixtures/packages/package-0.1/some-file [new file with mode: 0644]
tests/fixtures/packages/package-built-using-0.1/debian/changelog [new file with mode: 0644]
tests/fixtures/packages/package-built-using-0.1/debian/compat [new file with mode: 0644]
tests/fixtures/packages/package-built-using-0.1/debian/control [new file with mode: 0644]
tests/fixtures/packages/package-built-using-0.1/debian/package-built-using.install [new file with mode: 0644]
tests/fixtures/packages/package-built-using-0.1/debian/rules [new file with mode: 0755]
tests/fixtures/packages/package-built-using-0.1/some-file [new file with mode: 0644]

diff --git a/tests/fixtures/packages/.gitignore b/tests/fixtures/packages/.gitignore
new file mode 100644 (file)
index 0000000..258ed43
--- /dev/null
@@ -0,0 +1,8 @@
+/*.changes
+/*.deb
+/*.diff.gz
+/*.dsc
+/*.tar.gz
+/stamp-*
+
+/*/debian/files
diff --git a/tests/fixtures/packages/Makefile b/tests/fixtures/packages/Makefile
new file mode 100644 (file)
index 0000000..0efd18c
--- /dev/null
@@ -0,0 +1,31 @@
+export GNUPGHOME = $(CURDIR)/gpg
+SHELL = /bin/bash
+
+TAR = nonfree-package_0.1 package_0.1 package-built-using_0.1
+PACKAGES = $(TAR) package_0.1-2 package_0.1-3
+
+all: packages
+
+tarballs: stamp-tarballs
+stamp-tarballs:
+       set -e; for t in $(TAR); do \
+          if [ ! -f $$t.orig.tar.gz ]; then \
+           tar -czf $$t.orig.tar.gz --exclude=debian $${t/_/-}; \
+         fi; \
+       done
+       touch $@
+
+packages: stamp-packages
+stamp-packages: stamp-tarballs
+       set -e; for p in $(PACKAGES); do \
+         (cd $${p/_/-}; dpkg-buildpackage); \
+       done
+       touch $@
+
+clean:
+       set -e; for p in $(PACKAGES); do \
+         make -C $${p/_/-} -f debian/rules clean; \
+       done
+       rm -f *.tar.gz *.dsc *.changes *.diff.gz *.deb
+       rm -f gpg/*~
+       rm -f stamp-*
diff --git a/tests/fixtures/packages/gpg/pubring.gpg b/tests/fixtures/packages/gpg/pubring.gpg
new file mode 100644 (file)
index 0000000..469c3f3
Binary files /dev/null and b/tests/fixtures/packages/gpg/pubring.gpg differ
diff --git a/tests/fixtures/packages/gpg/random_seed b/tests/fixtures/packages/gpg/random_seed
new file mode 100644 (file)
index 0000000..2f6cb5e
Binary files /dev/null and b/tests/fixtures/packages/gpg/random_seed differ
diff --git a/tests/fixtures/packages/gpg/secring.gpg b/tests/fixtures/packages/gpg/secring.gpg
new file mode 100644 (file)
index 0000000..e781f1b
Binary files /dev/null and b/tests/fixtures/packages/gpg/secring.gpg differ
diff --git a/tests/fixtures/packages/gpg/trustdb.gpg b/tests/fixtures/packages/gpg/trustdb.gpg
new file mode 100644 (file)
index 0000000..d0ac562
Binary files /dev/null and b/tests/fixtures/packages/gpg/trustdb.gpg differ
diff --git a/tests/fixtures/packages/nonfree-package-0.1/debian/changelog b/tests/fixtures/packages/nonfree-package-0.1/debian/changelog
new file mode 100644 (file)
index 0000000..ec3f4a1
--- /dev/null
@@ -0,0 +1,5 @@
+nonfree-package (0.1-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- A Maintainer <maint@example.com>  Fri, 08 Jun 2012 18:10:01 +0200
diff --git a/tests/fixtures/packages/nonfree-package-0.1/debian/compat b/tests/fixtures/packages/nonfree-package-0.1/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/tests/fixtures/packages/nonfree-package-0.1/debian/control b/tests/fixtures/packages/nonfree-package-0.1/debian/control
new file mode 100644 (file)
index 0000000..f83f69c
--- /dev/null
@@ -0,0 +1,11 @@
+Source: nonfree-package
+Section: non-free/misc
+Priority: extra
+Maintainer: A Maintainer <maint@example.com>
+Build-Depends: debhelper (>= 7)
+
+Package: nonfree-package
+Architecture: all
+Depends: ${misc:Depends}
+Description: a package
+ a package
diff --git a/tests/fixtures/packages/nonfree-package-0.1/debian/nonfree-package.install b/tests/fixtures/packages/nonfree-package-0.1/debian/nonfree-package.install
new file mode 100644 (file)
index 0000000..af6371d
--- /dev/null
@@ -0,0 +1 @@
+some-file usr/share/nonfree-package
diff --git a/tests/fixtures/packages/nonfree-package-0.1/debian/rules b/tests/fixtures/packages/nonfree-package-0.1/debian/rules
new file mode 100755 (executable)
index 0000000..78c7615
--- /dev/null
@@ -0,0 +1,3 @@
+#! /usr/bin/make -f
+%:
+       dh $@
diff --git a/tests/fixtures/packages/nonfree-package-0.1/some-file b/tests/fixtures/packages/nonfree-package-0.1/some-file
new file mode 100644 (file)
index 0000000..083d0c2
--- /dev/null
@@ -0,0 +1 @@
+some-text
diff --git a/tests/fixtures/packages/package-0.1/debian/changelog b/tests/fixtures/packages/package-0.1/debian/changelog
new file mode 100644 (file)
index 0000000..fbb1609
--- /dev/null
@@ -0,0 +1,5 @@
+package (0.1-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- A Maintainer <maint@example.com>  Fri, 08 Jun 2012 18:10:01 +0200
diff --git a/tests/fixtures/packages/package-0.1/debian/compat b/tests/fixtures/packages/package-0.1/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/tests/fixtures/packages/package-0.1/debian/control b/tests/fixtures/packages/package-0.1/debian/control
new file mode 100644 (file)
index 0000000..9ccf58a
--- /dev/null
@@ -0,0 +1,11 @@
+Source: package
+Section: misc
+Priority: extra
+Maintainer: A Maintainer <maint@example.com>
+Build-Depends: debhelper (>= 7)
+
+Package: package
+Architecture: all
+Depends: ${misc:Depends}
+Description: a package
+ a package
diff --git a/tests/fixtures/packages/package-0.1/debian/package.install b/tests/fixtures/packages/package-0.1/debian/package.install
new file mode 100644 (file)
index 0000000..fb44f77
--- /dev/null
@@ -0,0 +1 @@
+some-file usr/share/apackage
diff --git a/tests/fixtures/packages/package-0.1/debian/rules b/tests/fixtures/packages/package-0.1/debian/rules
new file mode 100755 (executable)
index 0000000..78c7615
--- /dev/null
@@ -0,0 +1,3 @@
+#! /usr/bin/make -f
+%:
+       dh $@
diff --git a/tests/fixtures/packages/package-0.1/some-file b/tests/fixtures/packages/package-0.1/some-file
new file mode 100644 (file)
index 0000000..083d0c2
--- /dev/null
@@ -0,0 +1 @@
+some-text
diff --git a/tests/fixtures/packages/package-built-using-0.1/debian/changelog b/tests/fixtures/packages/package-built-using-0.1/debian/changelog
new file mode 100644 (file)
index 0000000..744ddf6
--- /dev/null
@@ -0,0 +1,5 @@
+package-built-using (0.1-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- A Maintainer <maint@example.com>  Fri, 08 Jun 2012 18:10:01 +0200
diff --git a/tests/fixtures/packages/package-built-using-0.1/debian/compat b/tests/fixtures/packages/package-built-using-0.1/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/tests/fixtures/packages/package-built-using-0.1/debian/control b/tests/fixtures/packages/package-built-using-0.1/debian/control
new file mode 100644 (file)
index 0000000..b51cc53
--- /dev/null
@@ -0,0 +1,12 @@
+Source: package-built-using
+Section: misc
+Priority: extra
+Maintainer: A Maintainer <maint@example.com>
+Build-Depends: debhelper (>= 7)
+
+Package: package-built-using
+Architecture: all
+Depends: ${misc:Depends}
+Built-Using: package (= 0.1-1)
+Description: a package
+ a package
diff --git a/tests/fixtures/packages/package-built-using-0.1/debian/package-built-using.install b/tests/fixtures/packages/package-built-using-0.1/debian/package-built-using.install
new file mode 100644 (file)
index 0000000..fb44f77
--- /dev/null
@@ -0,0 +1 @@
+some-file usr/share/apackage
diff --git a/tests/fixtures/packages/package-built-using-0.1/debian/rules b/tests/fixtures/packages/package-built-using-0.1/debian/rules
new file mode 100755 (executable)
index 0000000..78c7615
--- /dev/null
@@ -0,0 +1,3 @@
+#! /usr/bin/make -f
+%:
+       dh $@
diff --git a/tests/fixtures/packages/package-built-using-0.1/some-file b/tests/fixtures/packages/package-built-using-0.1/some-file
new file mode 100644 (file)
index 0000000..083d0c2
--- /dev/null
@@ -0,0 +1 @@
+some-text