Commit dff46d3f authored by Tomas Krizek's avatar Tomas Krizek

distro/tests: support more OBS repos in test-distro.sh

parent 4852c859
#!/bin/bash -x
# ./test-distro.sh {devel|latest} {distro}
# Example usage: ./test-distro.sh devel debian9
# ./test-distro.sh {obs_repo} {distro}
# Example usage: ./test-distro.sh knot-resolver-devel debian9
pkgtestdir="$(dirname ${0})"
repofile="$pkgtestdir/repos.yaml"
......@@ -10,22 +10,11 @@ distro=$2
repo=$1
# Select repos
# TODO: enable knot-dns-devel
echo -e 'repos:\n - knot-resolver-latest' > $repofile # latest is needed for knot
case "$repo" in
devel)
echo -e ' - knot-resolver-devel' >> $repofile
;;
testing)
echo -e 'repos:\n - knot-resolver-testing' > $repofile
;;
latest)
;;
*)
echo "Unknown repo, choose devel|latest|testing"
exit 1
;;
esac
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
......
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