0001-basic 2.2 KB
Newer Older
A
Ansgar Burchardt 已提交
1
#! /bin/bash
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#
# © 2017 Ansgar Burchardt <ansgar@debian.org>
# License: GPL-2+
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
A
Ansgar Burchardt 已提交
18 19 20 21 22 23 24 25 26 27

set -e
set -u

. ${DAK_ROOT:?}/integration-tests/common
. ${DAK_ROOT:?}/integration-tests/setup

# add a unstable suite with amd64
dak admin architecture add amd64 AMD64
dak admin suite add unstable "" codename=sid
28
dak admin suite-architecture add unstable source all amd64
A
Ansgar Burchardt 已提交
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
dak admin suite-component add unstable main contrib non-free

(
  suites="$(dak admin suite list | sort | xargs)"
  suites_e="byhand new unstable"
  assert-equal "dak admin suite list" "${suites}" "${suites_e}"
)

(
  unstable_archs="$(dak admin s-a list-arch unstable | sort | xargs)"
  assert-equal "dak admin s-a list-arch unstable" "${unstable_archs}" "amd64"
)

(
  cs_unstable="$(dak control-suite -l unstable)"
  assert-equal "dak control-suite -l unstable" "${cs_unstable}" ""
)

(
  co_unstable="$(dak control-override -l unstable)"
  assert-equal "dak control-override -l unstable" "${co_unstable}" ""
)
51

52 53 54 55 56 57 58 59 60
(
  dak control-overrides -s unstable -t deb -a << EOF
package required admin
EOF
  dak control-overrides -s unstable -t dsc -a << EOF
package admin
EOF
)

61
(
62 63 64
  packages=$(fixture-package-dir)
  import-fixture-signing-key

65 66 67 68
  cp ${packages:?}/nonfree-package_* ${packages:?}/package_* ${DAKBASE}/tmp

  dak process-upload -d ${DAKBASE}/tmp --automatic
)
69 70 71 72 73 74 75 76 77 78 79 80

(
  dak contents scan-binary
  dak contents scan-source
)

(
  dak generate-packages-sources2 -s unstable
  dak contents generate -a dak-master -s unstable
  # TODO: make this work in the CI; needs GnuPG key
  #dak generate-release -s unstable
)
B
Bastian Blank 已提交
81 82 83 84

(
  dak rm -n -s unstable package
)