]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/testsuite/lib/dotest
This commit was generated by cvs2svn to track changes on a CVS vendor
[thirdparty/binutils-gdb.git] / gas / testsuite / lib / dotest
1 #!/bin/sh
2 # ad hoc debug tool
3 # $Id$
4
5 x=$1
6 y=$2
7
8 xout=`basename $x`.xxx.$$
9 yout=`basename $x`.yyy.$$
10
11 mkdir $xout
12 mkdir $yout
13
14 for i in *.s
15 do
16 echo Testing $i...
17 object=`basename $i .s`.o
18 $x $i -o $xout/$object
19 $y $i -o $yout/$object
20
21 # if they cmp, we're ok. Otherwise we have to look closer.
22
23 if (cmp $xout/$object $yout/$object)
24 then
25 echo $i is ok.
26 else
27 if (doobjcmp $xout/$object $yout/$object)
28 then
29 echo Not the same but objcmp ok.
30 else
31 exit 1
32 fi
33 fi
34
35 echo
36 done
37
38 rm -rf $xout $yout
39
40 exit 0
41
42 # EOF
43
44