#!/bin/bash
# $Id: runTest 446 2008-01-08 20:49:07Z dflater $
if test -z "$1"; then
  echo Usage: ./runTest [--kill-overvotes] test-file-name.sql
else
  dropdb votetest 2>/dev/null
  createdb votetest
  if test "$1" == "--kill-overvotes"; then
    VOTETEST_HOOK="\\i Infrastructure-KillOvervotes.sql" psql votetest < $2
  else
    VOTETEST_HOOK=";" psql votetest < $1
  fi
fi
