diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:41:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:41:58 +0000 |
commit | 1852910ef0fd7393da62b88aee66ee092208748e (patch) | |
tree | ad3b659dbbe622b58a5bda4fe0b5e1d80eee9277 /distro/tests/test-distro.sh | |
parent | Initial commit. (diff) | |
download | knot-resolver-1852910ef0fd7393da62b88aee66ee092208748e.tar.xz knot-resolver-1852910ef0fd7393da62b88aee66ee092208748e.zip |
Adding upstream version 5.3.1.upstream/5.3.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'distro/tests/test-distro.sh')
-rwxr-xr-x | distro/tests/test-distro.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/distro/tests/test-distro.sh b/distro/tests/test-distro.sh new file mode 100755 index 0000000..55b75d0 --- /dev/null +++ b/distro/tests/test-distro.sh @@ -0,0 +1,26 @@ +#!/bin/bash -x +# SPDX-License-Identifier: GPL-3.0-or-later + +# ./test-distro.sh {obs_repo} {distro} +# Example usage: ./test-distro.sh knot-resolver-devel debian9 + +pkgtestdir="$(dirname ${0})" +repofile="$pkgtestdir/repos.yaml" + +distro=$2 +repo=$1 + +# Select repos +echo -e "repos:\n - $repo" > $repofile +if [ "$repo" == "knot-resolver-devel" ]; then + # get Knot DNS from knot-resolver-latest + echo -e ' - knot-resolver-latest' >> $repofile +fi + +pushd "$pkgtestdir/$distro" +vagrant destroy -f &>/dev/null +vagrant up +ret=$? +vagrant destroy -f &>/dev/null +popd +exit $ret |