#!/bin/bash
unset TEST_AUTHOR
set -e
# RU: Некоторые тесты пишут во временные файлы/каталоги. Проще всего скопировать тесты
# RU: в доступную на запись директорию и запускать их оттуда.
# EN: Some tests write into temporary files/directories. The easiest solution is to copy
# EN: the tests into a writable directory and execute them from there.
DIR=$(mktemp -d)
pushd "$DIR" >/dev/null
cp -a /usr/libexec/perl-XML-Twig/* ./
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
popd >/dev/null
rm -rf "$DIR"
