File: podman-init

package info (click to toggle)
autopkgtest 5.55
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,600 kB
  • sloc: python: 15,479; sh: 2,317; makefile: 116; perl: 19
file content (27 lines) | stat: -rwxr-xr-x 825 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
# Copyright 2022 Simon McVittie
# SPDX-License-Identifier: GPL-2.0-or-later

set -eu

vendor=debian
suite=testing

if [ -z "${AUTOPKGTEST_TEST_UNINSTALLED-}" ]; then
    export AUTOPKGTEST_TEST_INSTALLED=yes
    build_podman=autopkgtest-build-podman
else
    build_podman=tools/autopkgtest-build-podman
fi

if ! "$build_podman" --vendor="$vendor" --release="$suite" --init=systemd; then
    echo "SKIP: Unable to build autopkgtest/systemd/$vendor:$suite container"
    exit 77
fi

export AUTOPKGTEST_TEST_PODMAN_INIT="autopkgtest/systemd/$vendor:$suite"
export PYTHONUNBUFFERED=1
# Wrapping the test in annotate-output helps to distinguish the output of
# the autopkgtest that is running these tests from the output of the
# autopkgtest that is under test.
exec annotate-output ./tests/autopkgtest PodmanInitRunner