view tests/clean.sh @ 423:b09d2eb1a2b2 api-inversion

Cheap hackery abounds. Include an accumulator into the query_loop chain. Somewhat surprisingly, very few tests fail, and those that do are due to over-specific reporting requirements in the case of ties, so rewrite those tests to be more permissive. There are probably codepaths which ignore the accumulator completely; they will still work, because the accumulator will return zero points when it is asked to ->get_points().
author mas01cr
date Wed, 24 Dec 2008 10:55:08 +0000
parents 1853beeb0521
children
line wrap: on
line source
#! /bin/sh

for file in [0-9][0-9][0-9][0-9]*; do
  if [ -d ${file} ]; then
    echo Cleaning ${file}
    rm -f ${file}/test*
    if [ -f ${file}/clean.sh ]; then
      (cd ${file} && sh ./clean.sh)
    fi
  fi
done