#!/bin/bash

# make sure you chmod u+x runTests_CS460_VM_0.sh before you run this!

MACHINE=`uname -n`

echo $MACHINE

echo "----GMAKE CLEAN START----"
echo "----GMAKE CLEAN START----" >&2
gmake clean
echo "----GMAKE CLEAN END----"

echo "----GMAKE CS460_VM START----"
echo "----GMAKE CS460_VM START----" >&2
gmake CS460_VM
echo "----GMAKE CS460_VM END----"

echo "----GMAKE CLEAN START----"
echo "----GMAKE CLEAN START----" >&2
gmake clean
echo "----GMAKE CLEAN END----"

echo "----GMAKE START----"
echo "----GMAKE START----" >&2

gmake 
echo "----GMAKE END----"

echo "----GMAKE runTest START----"
echo "----GMAKE runTest START----" >&2
gmake runTest
echo "----GMAKE runTest END----"

echo "----GMAKE valgrind_V START----"
echo "----GMAKE valgrind_V START----" >&2
gmake valgrind_V 
echo "----GMAKE valgrind_V END----"

echo "----GMAKE valgrind_L START----"
echo "----GMAKE valgrind_L START----" >&2
gmake valgrind_L
echo "----GMAKE valgrind_V END----"

echo "----GMAKE valgrind START----"
echo "----GMAKE valgrind START----" >&2
gmake valgrind
echo "----GMAKE valgrind END----"

echo "----TEST 10 N START----"
echo "----TEST 10 N START----" >&2
./CS460_VM 10 N
echo "----TEST 10 N END----"
