#!/bin/bash
# $Id: runAllTests 451 2008-01-08 21:37:35Z dflater $
for f in 0-integrity-*.sql 1-basic-*.sql; do
  if [ "$f" != "0-integrity-common.sql" ]; then
    echo Running $f
    ./runTest "$f" >& "output/$f.txt"
    # Race condition exists with dropping database and temp tables,
    # and/or autovacuum
    echo Sleeping 1 second
    sleep 1
  fi
done
for f in 0-integrity-*.sql 1-basic-*.sql; do
  if [ "$f" != "0-integrity-common.sql" ]; then
    echo Running $f with --kill-overvotes
    ./runTest --kill-overvotes "$f" >& "output_kill-overvotes/$f.txt"
    # Race condition exists with dropping database and temp tables,
    # and/or autovacuum
    echo Sleeping 1 second
    sleep 1
  fi
done
