Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / gnu / usr.bin / as / testscripts / dotest
1 #!/bin/sh
2 # ad hoc debug tool
3 # $FreeBSD: src/gnu/usr.bin/as/testscripts/dotest,v 1.4 1999/08/27 23:34:35 peter Exp $
4 # $DragonFly: src/gnu/usr.bin/as/testscripts/Attic/dotest,v 1.2 2003/06/17 04:25:44 dillon Exp $
5
6 x=$1
7 y=$2
8
9 xout=`basename $x`.xxx.$$
10 yout=`basename $x`.yyy.$$
11
12 mkdir $xout
13 mkdir $yout
14
15 for i in *.s
16 do
17         echo Testing $i...
18         object=`basename $i .s`.o
19         $x $i -o $xout/$object
20         $y $i -o $yout/$object
21
22 # if they cmp, we're ok.  Otherwise we have to look closer.
23
24         if (cmp $xout/$object $yout/$object)
25         then
26                 echo $i is ok.
27         else
28                 if (doobjcmp $xout/$object $yout/$object)
29                 then
30                         echo Not the same but objcmp ok.
31                 else
32                         exit 1
33                 fi
34         fi
35
36         echo
37 done
38
39 rm -rf $xout $yout
40
41 exit 0
42
43 # EOF
44
45