#!/bin/sh

printUsage()
{
    echo "Usage : $0 < base | gate >" 
}

if [ $# -lt 1 ]
then
    printUsage
    exit 1
fi

if [ $1 == "base" ]
then
	( cd samples/chkdb; ./checkSQL; ./expImpCheck 10000)
elif [ $1 == "gate" ]
then
	( cd gates; ./gatecheck)
elif [ $1 == "clean" ]
then
    rm -f gates/db/*
    rm -f samples/chkdb/db/*
fi