#!/bin/sh

ln -sf /usr/sbin/runc runc
export GOPATH=/tmp/gopath
export GOCACHE=/tmp/gocache
mkdir -p /etc/containers
cat > /etc/containers/policy.json << EOF
{
    "default": [
        {
            "type": "insecureAcceptAnything"
        }
    ]
}
EOF
go mod vendor
make recvtty
script -e -c 'bats -t tests/integration'
