From: Ansgar Burchardt Date: Sat, 16 Jun 2012 07:44:00 +0000 (+0200) Subject: tests: add a few packages for testing dak X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=6372b5da40015f31b84cacef741adde83ce8872c;p=dak.git tests: add a few packages for testing dak --- diff --git a/tests/fixtures/packages/.gitignore b/tests/fixtures/packages/.gitignore new file mode 100644 index 00000000..258ed43a --- /dev/null +++ b/tests/fixtures/packages/.gitignore @@ -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 index 00000000..0efd18c7 --- /dev/null +++ b/tests/fixtures/packages/Makefile @@ -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 index 00000000..469c3f39 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 index 00000000..2f6cb5ee 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 index 00000000..e781f1b8 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 index 00000000..d0ac5623 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 index 00000000..ec3f4a11 --- /dev/null +++ b/tests/fixtures/packages/nonfree-package-0.1/debian/changelog @@ -0,0 +1,5 @@ +nonfree-package (0.1-1) unstable; urgency=low + + * Initial release. + + -- A Maintainer 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 index 00000000..7f8f011e --- /dev/null +++ b/tests/fixtures/packages/nonfree-package-0.1/debian/compat @@ -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 index 00000000..f83f69c1 --- /dev/null +++ b/tests/fixtures/packages/nonfree-package-0.1/debian/control @@ -0,0 +1,11 @@ +Source: nonfree-package +Section: non-free/misc +Priority: extra +Maintainer: A Maintainer +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 index 00000000..af6371d2 --- /dev/null +++ b/tests/fixtures/packages/nonfree-package-0.1/debian/nonfree-package.install @@ -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 index 00000000..78c7615d --- /dev/null +++ b/tests/fixtures/packages/nonfree-package-0.1/debian/rules @@ -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 index 00000000..083d0c25 --- /dev/null +++ b/tests/fixtures/packages/nonfree-package-0.1/some-file @@ -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 index 00000000..fbb16098 --- /dev/null +++ b/tests/fixtures/packages/package-0.1/debian/changelog @@ -0,0 +1,5 @@ +package (0.1-1) unstable; urgency=low + + * Initial release. + + -- A Maintainer 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 index 00000000..7f8f011e --- /dev/null +++ b/tests/fixtures/packages/package-0.1/debian/compat @@ -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 index 00000000..9ccf58a8 --- /dev/null +++ b/tests/fixtures/packages/package-0.1/debian/control @@ -0,0 +1,11 @@ +Source: package +Section: misc +Priority: extra +Maintainer: A Maintainer +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 index 00000000..fb44f773 --- /dev/null +++ b/tests/fixtures/packages/package-0.1/debian/package.install @@ -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 index 00000000..78c7615d --- /dev/null +++ b/tests/fixtures/packages/package-0.1/debian/rules @@ -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 index 00000000..083d0c25 --- /dev/null +++ b/tests/fixtures/packages/package-0.1/some-file @@ -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 index 00000000..744ddf60 --- /dev/null +++ b/tests/fixtures/packages/package-built-using-0.1/debian/changelog @@ -0,0 +1,5 @@ +package-built-using (0.1-1) unstable; urgency=low + + * Initial release. + + -- A Maintainer 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 index 00000000..7f8f011e --- /dev/null +++ b/tests/fixtures/packages/package-built-using-0.1/debian/compat @@ -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 index 00000000..b51cc53c --- /dev/null +++ b/tests/fixtures/packages/package-built-using-0.1/debian/control @@ -0,0 +1,12 @@ +Source: package-built-using +Section: misc +Priority: extra +Maintainer: A Maintainer +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 index 00000000..fb44f773 --- /dev/null +++ b/tests/fixtures/packages/package-built-using-0.1/debian/package-built-using.install @@ -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 index 00000000..78c7615d --- /dev/null +++ b/tests/fixtures/packages/package-built-using-0.1/debian/rules @@ -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 index 00000000..083d0c25 --- /dev/null +++ b/tests/fixtures/packages/package-built-using-0.1/some-file @@ -0,0 +1 @@ +some-text