#!/usr/bin/env bash
#PBS -N test_BGW
#PBS -q debug
#PBS -l nodes=1:ppn=8
#PBS -l walltime=00:30:00
#PBS -V

export TEMPDIRPATH=$SCRATCH/tmp

# Uncomment below to set number of
# procs in testsuite
export BGW_TEST_MPI_NPROCS=8

cd $PBS_O_WORKDIR 
#export MPIEXEC="`which mpirun`"
# Uncomment below to test threaded version
export MPIEXEC="`which mpirun` -bysocket -bind-to-socket"
make check-parallel &> test.out

echo "Exit status = $?"
