summaryrefslogtreecommitdiffstats
path: root/debian/tests
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests')
-rw-r--r--debian/tests/control2
-rwxr-xr-xdebian/tests/import-hello.sh18
2 files changed, 20 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..79bf978
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: import-hello.sh
+Depends: reprepro
diff --git a/debian/tests/import-hello.sh b/debian/tests/import-hello.sh
new file mode 100755
index 0000000..67cae23
--- /dev/null
+++ b/debian/tests/import-hello.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+set -e
+basedir=$(mktemp -d)
+cd $basedir
+mkdir -p conf
+cat <<EOF >> conf/distributions
+Origin: Ubuntu
+Label: Ubuntu
+Suite: impish
+Version: 21.10
+Codename: impish
+Architectures: amd64 arm64 armhf i386 ppc64el riscv64 s390x
+Components: main
+Description: Ubuntu Impish 21.10
+EOF
+reprepro -b $basedir createsymlinks
+apt-get download hello
+reprepro -b $basedir includedeb impish hello*.deb