#!/usr/bin/bash
set -e
# bin/testml writes tests compiled with TestML::Compiler into ./.testml.
DIR=$(mktemp -d)
cp -a /usr/libexec/perl-TestML/* "$DIR"
pushd "$DIR"/upstream/src/perl5
unset TESTML_BRIDGE TESTML_DEVEL TESTML_FILEVAR
export PATH=../../bin:$PATH TESTML_ROOT=../.. TESTML_RUN=perl5-tap
prove -I . -j "$(getconf _NPROCESSORS_ONLN)" test/*.tml
popd
rm -r "$DIR"
