#!/bin/bash
set -e
# Part of the tests writes into temporary directories. Copy tests into a writable
# directory and run them from there.
DIR=$(mktemp -d)
pushd "$DIR" >/dev/null
cp -a /usr/libexec/perl-YAML-LibYAML/* ./
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
popd >/dev/null
rm -rf "$DIR"
