blob: 6728829dc662b91aadfb2c0af50d1ac7dca275d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash -x
# ./test-distro.sh {obs_repo} {distro}
# Example usage: ./test-distro.sh knot-dns-devel debian9
pkgtestdir="$(dirname ${0})"
repofile="$pkgtestdir/repos.yaml"
repo=$1
distro=$2
# Select repos
echo -e "repos:\n - $repo" > $repofile
pushd "$pkgtestdir/$distro"
vagrant destroy -f &>/dev/null
vagrant up
ret=$?
vagrant destroy -f &>/dev/null
popd
exit $ret
|