summaryrefslogtreecommitdiff
path: root/conformance/findbads
blob: 87570f8cff89f5603cedf0e682b86ebced79d061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# Generate and test single tests, and archive the nonconforming ones.
# First command line parameter is the lenght of test in bytes, default is 10.

path=`dirname $0`

trap 'rm -f $path/test.{in,out,ref} &> /dev/null ; exit' INT

while true; do
  $path/findbad "$@"
  echo -e "findbads: bad test found!!!\7"
  if ! test -d $path/badtests; then
    mkdir $path/badtests
  fi
  cp $path/test.in $path/badtests/$RANDOM.in
done