diff options
| author | svn2git <svn2git@FreeBSD.org> | 1994-05-01 08:00:00 +0000 |
|---|---|---|
| committer | svn2git <svn2git@FreeBSD.org> | 1994-05-01 08:00:00 +0000 |
| commit | a16f65c7d117419bd266c28a1901ef129a337569 (patch) | |
| tree | 2626602f66dc3551e7a7c7bc9ad763c3bc7ab40a /gnu/usr.bin/as/testscripts | |
| parent | 8503f4f13f77abf7adc8f7e329c6f9c1d52b6a20 (diff) | |
Release FreeBSD 1.1upstream/1.1.0_cvsrelease/1.1.0_cvs
This commit was manufactured to restore the state of the 1.1-RELEASE image.
Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
Diffstat (limited to 'gnu/usr.bin/as/testscripts')
| -rwxr-xr-x | gnu/usr.bin/as/testscripts/doboth | 20 | ||||
| -rwxr-xr-x | gnu/usr.bin/as/testscripts/doobjcmp | 89 | ||||
| -rwxr-xr-x | gnu/usr.bin/as/testscripts/dostriptest | 15 | ||||
| -rwxr-xr-x | gnu/usr.bin/as/testscripts/dotest | 44 | ||||
| -rwxr-xr-x | gnu/usr.bin/as/testscripts/dounsortreloc | 9 | ||||
| -rwxr-xr-x | gnu/usr.bin/as/testscripts/dounsortsymbols | 9 |
6 files changed, 186 insertions, 0 deletions
diff --git a/gnu/usr.bin/as/testscripts/doboth b/gnu/usr.bin/as/testscripts/doboth new file mode 100755 index 000000000000..dc379e93d3fb --- /dev/null +++ b/gnu/usr.bin/as/testscripts/doboth @@ -0,0 +1,20 @@ +#!/bin/sh +# $Id: doboth,v 1.1 1993/11/03 00:56:17 paul Exp $ + +x=$1 ; shift +y=$1 ; shift + +rm tmp.0 > /dev/null 2>&1 +ln -s $x tmp.0 +$* tmp.0 > tmp.1 + +rm tmp.0 +ln -s $y tmp.0 +$* tmp.0 > tmp.2 + +rm tmp.0 + +diff -c tmp.1 tmp.2 +exit + +#eof diff --git a/gnu/usr.bin/as/testscripts/doobjcmp b/gnu/usr.bin/as/testscripts/doobjcmp new file mode 100755 index 000000000000..9fe6d907558e --- /dev/null +++ b/gnu/usr.bin/as/testscripts/doobjcmp @@ -0,0 +1,89 @@ +#!/bin/sh +# $Id: doobjcmp,v 1.1 1993/11/03 00:56:18 paul Exp $ +# compare two object files, in depth. + +x=$1 +y=$2 +BOTH="$1 $2" + + +# if they cmp, we're fine. +if (cmp $BOTH > /dev/null) +then + exit 0 +fi + +# otherwise, we must look closer. +if (doboth $BOTH size) +then + echo Sizes ok. +else + echo Sizes differ: + size $BOTH +# exit 1 +fi + +if (doboth $BOTH objdump +header) +then + echo Headers ok. +else + echo Header differences. +# exit 1 +fi + +if (doboth $BOTH objdump +text > /dev/null) +then + echo Text ok. +else + echo Text differences. +# doboth $BOTH objdump +text +# exit 1 +fi + +if (doboth $BOTH objdump +data > /dev/null) +then + echo Data ok. +else + echo Data differences. +# doboth $BOTH objdump +data +# exit 1 +fi + +if (doboth $BOTH objdump +symbols > /dev/null) +then + echo Symbols ok. +else + echo -n Symbol differences... + + if (doboth $BOTH dounsortsymbols) + then + echo but symbols are simply ordered differently. +# echo Now what to do about relocs'?' +# exit 1 + else + echo and symbols differ in content. + exit 1 + fi +fi + +# of course, if there were symbol diffs, then the reloc symbol indexes +# will be off. + +if (doboth $BOTH objdump -r > /dev/null) +then + echo Reloc ok. +else + echo -n Reloc differences... + + if (doboth $BOTH dounsortreloc) + then + echo but relocs are simply ordered differently. + else + echo and relocs differ in content. + exit 1 + fi +fi + +exit + +# eof diff --git a/gnu/usr.bin/as/testscripts/dostriptest b/gnu/usr.bin/as/testscripts/dostriptest new file mode 100755 index 000000000000..6f0c2918aeed --- /dev/null +++ b/gnu/usr.bin/as/testscripts/dostriptest @@ -0,0 +1,15 @@ +#!/bin/sh +# $Id: dostriptest,v 1.1 1993/11/03 00:56:19 paul Exp $ + +x=striptest.xx.$$ +y=striptest.yy.$$ + +cp $1 $x +strip $x +cp $2 $y +strip $y + +doobjcmp $x $y +exit + +#eof diff --git a/gnu/usr.bin/as/testscripts/dotest b/gnu/usr.bin/as/testscripts/dotest new file mode 100755 index 000000000000..ff39433d32b9 --- /dev/null +++ b/gnu/usr.bin/as/testscripts/dotest @@ -0,0 +1,44 @@ +#!/bin/sh +# ad hoc debug tool +# $Id: dotest,v 1.1 1993/11/03 00:56:21 paul Exp $ + +x=$1 +y=$2 + +xout=`basename $x`.xxx.$$ +yout=`basename $x`.yyy.$$ + +mkdir $xout +mkdir $yout + +for i in *.s +do + echo Testing $i... + object=`basename $i .s`.o + $x $i -o $xout/$object + $y $i -o $yout/$object + +# if they cmp, we're ok. Otherwise we have to look closer. + + if (cmp $xout/$object $yout/$object) + then + echo $i is ok. + else + if (doobjcmp $xout/$object $yout/$object) + then + echo Not the same but objcmp ok. + else + exit 1 + fi + fi + + echo +done + +rm -rf $xout $yout + +exit 0 + +# EOF + + diff --git a/gnu/usr.bin/as/testscripts/dounsortreloc b/gnu/usr.bin/as/testscripts/dounsortreloc new file mode 100755 index 000000000000..b990553fa6e7 --- /dev/null +++ b/gnu/usr.bin/as/testscripts/dounsortreloc @@ -0,0 +1,9 @@ +#!/bin/sh +# $Id: dounsortreloc,v 1.1 1993/11/03 00:56:22 paul Exp $ +# objdump the reloc table, but strip off the headings and reloc +# numbers and sort the result. Intended for use in comparing reloc +# tables that may not be in the same order. + +objdump +reloc +omit-relocation-numbers +omit-symbol-numbers $1 \ + | sort +#eof diff --git a/gnu/usr.bin/as/testscripts/dounsortsymbols b/gnu/usr.bin/as/testscripts/dounsortsymbols new file mode 100755 index 000000000000..480fe555317e --- /dev/null +++ b/gnu/usr.bin/as/testscripts/dounsortsymbols @@ -0,0 +1,9 @@ +#!/bin/sh +# $Id: dounsortsymbols,v 1.1 1993/11/03 00:56:24 paul Exp $ +# objdump the symbol table, but strip off the headings and symbol +# numbers and sort the result. Intended for use in comparing symbol +# tables that may not be in the same order. + +objdump +symbols +omit-symbol-numbers $1 \ + | sort +#eof |
