#!/bin/sh
set -ev

selected_tests="test_all6 test_brick2 test_brick3 test_partition2 test_partition3"

srcdir="$(pwd)"
cd $AUTOPKGTEST_TMP

for i in $selected_tests; do
  echo Running $i
  mpicc $srcdir/test/$i.c -o $i -lp4est -lsc
  ./$i
done
