1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#!/bin/sh
set -eu
usage() {
cat <<EOF
usage: backends/lxc/test-package [OPTIONS] PACKAGE OUTPUTDIR [EXTRA-AUTOPKGTEST-ARGS]
$@
EOF
}
# container name has to be 15 characters or less. see
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=898875
container_name=ci-$(date +%j)-$(openssl rand -hex 4)
# shellcheck disable=SC2086 # intentional word splitting of backend args
debci-autopkgtest --user debci --apt-upgrade "$@" \
-- lxc --sudo --name "${container_name}" ${debci_autopkgtest_args_lxc:-} "autopkgtest-${debci_suite:?}-${debci_arch:?}"
|