summaryrefslogtreecommitdiff
path: root/testsuite/tests/module/convert-tests.sh
blob: d4053472ac9f94906858ffa42774e456ee85bcc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/sh

# something like this...
for i in mod*.hs; do 
  if ! test -f ${i%.hs}.output; then 
     echo "test('${i%.hs}', normal, compile, [''])"
  else if grep error ${i%.hs}.output >/dev/null; then
     echo "test('${i%.hs}', normal, compile_fail, [''])"
  else 
     echo "test('${i%.hs}', normal, compile, [''])"
  fi fi
done