#!/bin/bash
runmats() {
  echo travis_fold:start:mats
  echo make allxhelp "$@"
  make -C "$TARGET_MACHINE"/mats allxhelp "$@" 2>&1 | .travis/matting.sh
  echo travis_fold:end:mats
}

runmats o=0
runmats o=3
runmats o=3 cp0=t
runmats o=3 cp0=t eval=interpret

if [ -f "$TARGET_MACHINE"/mats/summary ]; then
  cat "$TARGET_MACHINE"/mats/summary
  diff -q .travis/summary "$TARGET_MACHINE"/mats/summary
  exit $?
else
  exit 1
fi
