#!/bin/sh

exec 2>&1
set -ex

export VAGRANT_DEFAULT_PROVIDER=libvirt

if [ -z "$ADTTMP" ]; then
  export PATH=$(pwd)/bin:"$PATH"
  export RUBYLIB=$(pwd)/lib
  ADTTMP=$(mktemp -d)
  trap "rm -rf $ADTTMP" INT TERM EXIT
fi

# This is not super useful for testing all functionalities, but at least tests
# that we can load the environment and run basic commands. This means that at
# least vagrant is happy enough about all its dependencies.

vagrant --version
vagrant status
vagrant box list
