Commit 14b2718e authored by Lucas Kanashiro's avatar Lucas Kanashiro

Improve autopkgtest test cases

parent a21dc5db
#!/bin/sh
eval "$(dpkg-architecture --print-set)"
case "$DEB_HOST_ARCH" in
(i?86)
echo "i586"
;;
(armel)
echo "armv5el"
;;
(armhf)
echo "armv7hl"
;;
# add any more special cases here
(*)
echo "$DEB_HOST_GNU_CPU"
;;
esac
Repotype: debian
# create initial user
Preinstall: base-passwd
Preinstall: user-setup
# required for preinstall images
Preinstall: perl
# preinstall essentials + dependencies
Preinstall: base-files base-passwd bash bsdutils coreutils dash debconf
Preinstall: debianutils diffutils dpkg e2fslibs e2fsprogs findutils gawk
Preinstall: gcc-6-base grep gzip hostname initscripts init-system-helpers
Preinstall: insserv libacl1 libattr1 libblkid1 libbz2-1.0 libc-bin libc6
Preinstall: libcomerr2 libdb5.3 libgcc1 liblzma5 libmount1 libncurses5
Preinstall: libpam-modules libpcre3 libsmartcols1
Preinstall: libpam-modules-bin libpam-runtime libpam0g libreadline7
Preinstall: libselinux1 libsemanage-common libsemanage1 libsepol1 libsigsegv2
Preinstall: libslang2 libss2 libtinfo5 libustr-1.0-1 libuuid1 login lsb-base
Preinstall: mount multiarch-support ncurses-base ncurses-bin passwd perl-base
Preinstall: readline-common sed sensible-utils sysv-rc sysvinit-utils
Preinstall: tar tzdata util-linux zlib1g
Runscripts: base-passwd user-setup base-files gawk
VMinstall: libdevmapper1.02.1
Order: user-setup:base-files
# Essential packages (this should also pull the dependencies)
Support: base-files base-passwd bash bsdutils coreutils dash debianutils
Support: diffutils dpkg e2fsprogs findutils grep gzip hostname libc-bin
Support: login mount ncurses-base ncurses-bin perl-base sed
Support: sysvinit-utils tar util-linux
# Build-essentials
Required: build-essential
Prefer: build-essential:make
# build script needs fakeroot
Support: fakeroot
# lintian support would be nice, but breaks too much atm
#Support: lintian
# helper tools in the chroot
Support: less kmod net-tools procps psmisc strace vim
%define debian_version 900
Macros:
%debian_version 900
Test-Command: /bin/true
Depends: obs-api, obs-server, obs-worker, obs-productconverter, obs-utils
Restrictions: superficial
Tests: install-purge-install
Depends: obs-api, obs-server, obs-worker, obs-productconverter, obs-utils
Restrictions: needs-root
Restrictions: needs-root, isolation-machine, breaks-testbed
Tests: install-break-purge
Depends: obs-api, obs-server, obs-worker, obs-productconverter, obs-utils
Restrictions: needs-root
Restrictions: needs-root, isolation-machine, breaks-testbed
Tests: setup-api-and-check
Depends: obs-api, obs-server, default-mysql-server, ssl-cert, curl, apache2
Restrictions: needs-root
Restrictions: needs-root, isolation-machine, breaks-testbed
Tests: smoke-test
Depends: obs-api, obs-server, obs-worker, obs-utils, osc, default-mysql-server, ssl-cert, apache2
Restrictions: needs-root
Depends: obs-api, obs-server, obs-worker, obs-utils, osc, default-mysql-server, ssl-cert, apache2, dpkg-dev
Restrictions: needs-root, isolation-machine, breaks-testbed
dummy (1.0) unstable; urgency=medium
* Initial Release.
-- Lucas Kanashiro <lucas.kanashiro@collabora.com> Mon, 01 Apr 2019 12:01:50 -0300
Source: dummy
Priority: optional
Maintainer: Lucas Kanashiro <lucas.kanashiro@collabora.com>
Build-Depends: debhelper (>= 9)
Standards-Version: 4.1.3
Package: dummy
Architecture: all
Depends: ${misc:Depends}
Description: dummy native package
This package is used to test open-build-service source package
......@@ -3,6 +3,7 @@
exec 2>&1
set -exu
# TODO: https://bugs.debian.org/926198
# set up obs-api app
/usr/share/obs/api/script/rake-tasks.sh setup
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment