aboutsummaryrefslogtreecommitdiff
path: root/gas/testscripts
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-04-01 13:18:55 +0000
committerKen Raeburn <raeburn@cygnus>1993-04-01 13:18:55 +0000
commitd1c89c281780bf3f8a3c584e5b44926ff347a442 (patch)
tree67d7bd00cc6c65741e11a60aeafc654797c715da /gas/testscripts
parentbf097a0b40fa095486cc6e0ddb04cd1112c16d07 (diff)
downloadgdb-d1c89c281780bf3f8a3c584e5b44926ff347a442.zip
gdb-d1c89c281780bf3f8a3c584e5b44926ff347a442.tar.gz
gdb-d1c89c281780bf3f8a3c584e5b44926ff347a442.tar.bz2
merging this directory into testsuite
Diffstat (limited to 'gas/testscripts')
-rw-r--r--gas/testscripts/.Sanitize38
-rwxr-xr-xgas/testscripts/doboth20
-rwxr-xr-xgas/testscripts/doobjcmp89
-rwxr-xr-xgas/testscripts/dostriptest15
-rwxr-xr-xgas/testscripts/dotest44
-rwxr-xr-xgas/testscripts/dounsortreloc9
-rwxr-xr-xgas/testscripts/dounsortsymbols9
7 files changed, 0 insertions, 224 deletions
diff --git a/gas/testscripts/.Sanitize b/gas/testscripts/.Sanitize
deleted file mode 100644
index d039fa0..0000000
--- a/gas/testscripts/.Sanitize
+++ /dev/null
@@ -1,38 +0,0 @@
-# .Sanitize for devo/gas/testscripts
-
-# Each directory to survive its way into a release will need a file
-# like this one called "./.Sanitize". All keyword lines must exist,
-# and must exist in the order specified by this file. Each directory
-# in the tree will be processed, top down, in the following order.
-
-# Hash started lines like this one are comments and will be deleted
-# before anything else is done. Blank lines will also be squashed
-# out.
-
-# The lines between the "Do-first:" line and the "Things-to-keep:"
-# line are executed as a /bin/sh shell script before anything else is
-# done in this directory.
-
-Do-first:
-
-# All files listed between the "Things-to-keep:" line and the
-# "Do-last:" line will be kept. All other files will be removed.
-# Directories listed in this section will have their own Sanitize
-# called. Directories not listed will be removed in their entirety
-# with rm -rf.
-
-Things-to-keep:
-
-doboth
-doobjcmp
-dostriptest
-dotest
-dounsortreloc
-dounsortsymbols
-
-# The lines between the "Do-last:" line and the end of the file
-# are executed as a /bin/sh shell script after everything else is
-# done.
-
-Do-last:
-
diff --git a/gas/testscripts/doboth b/gas/testscripts/doboth
deleted file mode 100755
index a8c3358..0000000
--- a/gas/testscripts/doboth
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-# $Id$
-
-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/gas/testscripts/doobjcmp b/gas/testscripts/doobjcmp
deleted file mode 100755
index 9fbe46b..0000000
--- a/gas/testscripts/doobjcmp
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/sh
-# $Id$
-# 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/gas/testscripts/dostriptest b/gas/testscripts/dostriptest
deleted file mode 100755
index 4b89df8..0000000
--- a/gas/testscripts/dostriptest
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-# $Id$
-
-x=striptest.xx.$$
-y=striptest.yy.$$
-
-cp $1 $x
-strip $x
-cp $2 $y
-strip $y
-
-doobjcmp $x $y
-exit
-
-#eof
diff --git a/gas/testscripts/dotest b/gas/testscripts/dotest
deleted file mode 100755
index 8c7a28c..0000000
--- a/gas/testscripts/dotest
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-# ad hoc debug tool
-# $Id$
-
-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/gas/testscripts/dounsortreloc b/gas/testscripts/dounsortreloc
deleted file mode 100755
index d8da0a9..0000000
--- a/gas/testscripts/dounsortreloc
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-# $Id$
-# 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/gas/testscripts/dounsortsymbols b/gas/testscripts/dounsortsymbols
deleted file mode 100755
index 8fb6db3..0000000
--- a/gas/testscripts/dounsortsymbols
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-# $Id$
-# 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