summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorMartin Matuska <martin@matuska.org>2019-01-14 16:11:07 +0100
committerMartin Matuska <martin@matuska.org>2019-01-15 01:59:32 +0100
commitce8ddb0ae1ea6b92e4ccac827e1cb79b76e6df80 (patch)
treeabdd7b678c9d3a7b47d8ce807f26b0a519342221 /build
parentfad6b013758cb08c9294674181ef1a84b09e1fae (diff)
downloadlibarchive-ce8ddb0ae1ea6b92e4ccac827e1cb79b76e6df80.tar.gz
Move Cirrus CI commands to a separate script
Test FreeBSD POSIX.1e and NFSv4 ACLs on Cirrus CI
Diffstat (limited to 'build')
-rwxr-xr-xbuild/ci/cirrus_ci.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/build/ci/cirrus_ci.sh b/build/ci/cirrus_ci.sh
new file mode 100755
index 00000000..521402df
--- /dev/null
+++ b/build/ci/cirrus_ci.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+UNAME=`uname`
+if [ "$1" = "install" ]
+then
+ if [ "$UNAME" = "FreeBSD" ]
+ then
+ set -x -e
+ sed -i.bak -e 's,pkg+http://pkg.FreeBSD.org/\${ABI}/quarterly,pkg+http://pkg.FreeBSD.org/\${ABI}/latest,' /etc/pkg/FreeBSD.conf
+ mount -u -o acls /
+ mkdir /tmp_acl_nfsv4
+ MD=`mdconfig -a -t swap -s 128M`
+ newfs /dev/$MD
+ tunefs -N enable /dev/$MD
+ mount /dev/$MD /tmp_acl_nfsv4
+ chmod 1777 /tmp_acl_nfsv4
+ pkg install -y autoconf automake libiconv libtool pkgconf expat libxml2 liblz4 zstd
+ elif [ "$UNAME" = "Darwin" ]
+ then
+ set -x -e
+ brew update
+ brew install xz lz4 zstd
+ fi
+elif [ "$1" = "test" ]
+then
+ if [ "$UNAME" = "FreeBSD" ]
+ then
+ set -e
+ echo "Additional NFSv4 ACL tests"
+ CURDIR=`pwd`
+ BUILDDIR="${CURDIR}/build_ci/autotools"
+ cd "${BUILDDIR}"
+ TMPDIR=/tmp_acl_nfsv4 ./libarchive_test -r "${CURDIR}/libarchive/test" -v test_acl_platform_nfs4
+ fi
+else
+ echo "Usage $0 install | test_nfsv4_acls"
+ exit 1
+fi