test: dragonly bsd support
This commit is contained in:
parent
b8f4dbd8d1
commit
b19b3a37fe
2 changed files with 6 additions and 6 deletions
|
|
@ -12,7 +12,7 @@ with_restconf=$3
|
|||
|
||||
# create user & group
|
||||
if [ ! $(id -u clicon) ]; then
|
||||
if [ $release = "freebsd" ]; then
|
||||
if [ $release = "freebsd" -o $release = "dragonfly" ]; then
|
||||
sudo pw useradd clicon -d /nonexistent -s /usr/sbin/nologin;
|
||||
sudo pw group mod clicon -m vagrant; # start clixon tests as this users
|
||||
sudo pw group mod clicon -m $wwwuser;
|
||||
|
|
@ -41,7 +41,7 @@ test -d src/cligen || (cd src;git clone https://github.com/clicon/cligen.git)
|
|||
cd src/cligen
|
||||
git pull origin master
|
||||
|
||||
if [ $release = "freebsd" ]; then
|
||||
if [ $release = "freebsd" -o $release = "dragonfly" ]; then
|
||||
./configure
|
||||
MAKE=$(which gmake)
|
||||
elif [ $release = "arch" ]; then
|
||||
|
|
@ -62,7 +62,7 @@ test -d src/clixon || (cd src;git clone https://github.com/clicon/clixon.git)
|
|||
cd src/clixon
|
||||
git pull origin master
|
||||
|
||||
if [ $release = "freebsd" ]; then
|
||||
if [ $release = "freebsd" -o $release = "dragonfly" ]; then
|
||||
LDFLAGS=-L/usr/local/lib ./configure --with-cligen=/ --with-restconf=${with_restconf}
|
||||
else
|
||||
# Problems with su not having "sbin" in path on centos when when we run tests later
|
||||
|
|
@ -79,7 +79,7 @@ sudo ldconfig
|
|||
cd test
|
||||
echo "#!/usr/bin/env bash" > ./site.sh
|
||||
echo "IPv6=true" >> ./site.sh
|
||||
if [ $release = "freebsd" ]; then
|
||||
if [ $release = "freebsd" -o $release = "dragonfly" ]; then
|
||||
echo "make=gmake" >> ./site.sh
|
||||
fi
|
||||
echo "OPENCONFIG=/usr/local/share/openconfig/public" >> ./site.sh
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ linuxrelease()
|
|||
{
|
||||
box=$1
|
||||
release="unknown"
|
||||
for r in freebsd openbsd opensuse ubuntu centos coreos alpine debian arch gentoo fedora rhel; do
|
||||
for r in freebsd dragonfly openbsd opensuse ubuntu centos coreos alpine debian arch gentoo fedora rhel; do
|
||||
# -i ignore case
|
||||
if [ -n "$(echo "$box" | grep -io "$r")" ]; then
|
||||
release=$r
|
||||
|
|
@ -128,7 +128,7 @@ case $release in
|
|||
;;
|
||||
esac
|
||||
;;
|
||||
freebsd)
|
||||
freebsd | dragonfly)
|
||||
# packages for building
|
||||
$sshcmd sudo pkg upgrade -y
|
||||
$sshcmd sudo pkg install -y git gmake bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue