Last change
on this file was 10, checked in by bird, 23 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
522 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | # ad hoc debug tool
|
---|
3 |
|
---|
4 | x=$1
|
---|
5 | y=$2
|
---|
6 |
|
---|
7 | xout=`basename $x`.xxx.$$
|
---|
8 | yout=`basename $x`.yyy.$$
|
---|
9 |
|
---|
10 | mkdir $xout
|
---|
11 | mkdir $yout
|
---|
12 |
|
---|
13 | for i in *.s
|
---|
14 | do
|
---|
15 | echo Testing $i...
|
---|
16 | object=`basename $i .s`.o
|
---|
17 | $x $i -o $xout/$object
|
---|
18 | $y $i -o $yout/$object
|
---|
19 |
|
---|
20 | # if they cmp, we're ok. Otherwise we have to look closer.
|
---|
21 |
|
---|
22 | if (cmp $xout/$object $yout/$object)
|
---|
23 | then
|
---|
24 | echo $i is ok.
|
---|
25 | else
|
---|
26 | if (doobjcmp $xout/$object $yout/$object)
|
---|
27 | then
|
---|
28 | echo Not the same but objcmp ok.
|
---|
29 | else
|
---|
30 | exit 1
|
---|
31 | fi
|
---|
32 | fi
|
---|
33 |
|
---|
34 | echo
|
---|
35 | done
|
---|
36 |
|
---|
37 | rm -rf $xout $yout
|
---|
38 |
|
---|
39 | exit 0
|
---|
40 |
|
---|
41 | # EOF
|
---|
42 |
|
---|
43 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.