File: do_tests.mingw

package info (click to toggle)
uthash 2.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,788 kB
  • sloc: ansic: 9,838; makefile: 178; perl: 88; sh: 37; cpp: 30
file content (20 lines) | stat: -rw-r--r-- 299 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

echo "MinGW test script starting"

for f in test*.exe
do
  t=`echo $f | sed s/.exe//`
  "./$f" > "$t.out"
  diff -qb "$t.out" "$t.ans"
  if [ $? -eq 1 ]
  then
    echo "$f failed"
  else
    true # can't have empty else
    #echo "$f passed"
  fi
done

echo 
echo "All tests complete"