aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-09-29 16:46:53 +0000
committerIan Lance Taylor <ian@airs.com>1994-09-29 16:46:53 +0000
commit7f23bcab2c89367b9c481c961f154872da2fa73e (patch)
treea226f17e224ccf6ef46620d4f218105bd990a69b /binutils/testsuite
parentf2b38b9848d787bd675fdf02b783140f96def027 (diff)
downloadgdb-7f23bcab2c89367b9c481c961f154872da2fa73e.zip
gdb-7f23bcab2c89367b9c481c961f154872da2fa73e.tar.gz
gdb-7f23bcab2c89367b9c481c961f154872da2fa73e.tar.bz2
* VMS does not permits `.' in directory names. Renamed
binutils.all to binutils-all.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r--binutils/testsuite/.Sanitize2
-rw-r--r--binutils/testsuite/ChangeLog5
-rw-r--r--binutils/testsuite/binutils-all/.Sanitize40
-rw-r--r--binutils/testsuite/binutils-all/Makefile.in44
-rw-r--r--binutils/testsuite/binutils-all/bintest.c30
-rw-r--r--binutils/testsuite/binutils-all/configure.in30
6 files changed, 150 insertions, 1 deletions
diff --git a/binutils/testsuite/.Sanitize b/binutils/testsuite/.Sanitize
index 29fd370..1c2eb8c 100644
--- a/binutils/testsuite/.Sanitize
+++ b/binutils/testsuite/.Sanitize
@@ -25,7 +25,7 @@ Things-to-keep:
ChangeLog
Makefile.in
-binutils.all
+binutils-all
config
configure.in
lib
diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog
index eefbd00..f587bd5 100644
--- a/binutils/testsuite/ChangeLog
+++ b/binutils/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+Thu Sep 29 12:45:39 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
+
+ * VMS does not permits `.' in directory names. Renamed
+ binutils.all to binutils-all.
+
Fri Sep 23 16:01:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* configure.in: Use mt-m68k for m68k*-*-aout* and m68k*-*-coff*,
diff --git a/binutils/testsuite/binutils-all/.Sanitize b/binutils/testsuite/binutils-all/.Sanitize
new file mode 100644
index 0000000..3251e0b
--- /dev/null
+++ b/binutils/testsuite/binutils-all/.Sanitize
@@ -0,0 +1,40 @@
+# .Sanitize for deja-gnu.
+
+# Each directory to survive it's 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:
+
+Makefile.in
+bintest.c
+configure.in
+nm.exp
+objdump.exp
+size.exp
+
+Things-to-lose:
+
+# 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/binutils/testsuite/binutils-all/Makefile.in b/binutils/testsuite/binutils-all/Makefile.in
new file mode 100644
index 0000000..0aa1068
--- /dev/null
+++ b/binutils/testsuite/binutils-all/Makefile.in
@@ -0,0 +1,44 @@
+CFLAGS_FOR_TARGET =
+
+CC_FOR_TARGET = ` \
+ if [ -f $${rootme}/../../gcc/xgcc ] ; then \
+ echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \
+ else \
+ if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
+ echo $(CC); \
+ else \
+ t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
+ fi; \
+ fi`
+
+CXX = gcc
+CXX_FOR_TARGET = ` \
+ if [ -f $${rootme}/../../gcc/xgcc ] ; then \
+ echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \
+ else \
+ if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
+ echo $(CXX); \
+ else \
+ t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
+ fi; \
+ fi`
+
+#### host, target, and site specific Makefile frags come in here.
+
+srcdir = .
+
+all: bintest
+
+bintest: $(srcdir)/bintest.c
+ $(CC_FOR_TARGET) $(CFLAGS_FOR_TARGET) $(CFLAGS) -g -o bintest $(srcdir)/bintest.c $(LDFLAGS)
+
+clean:
+ -rm -f *.o bintest *.diff *~ *.bad core m68k.gld
+
+distclean: clean
+ -rm -f Makefile config.status nmtest.c
+
+Makefile : $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
+ $(SHELL) ./config.status
+
+force:
diff --git a/binutils/testsuite/binutils-all/bintest.c b/binutils/testsuite/binutils-all/bintest.c
new file mode 100644
index 0000000..e63d589
--- /dev/null
+++ b/binutils/testsuite/binutils-all/bintest.c
@@ -0,0 +1,30 @@
+/*
+ * nmtest.c -- this is the C code portion of tests for the GNU binutils
+ */
+
+main(argc, argv)
+int argc;
+char *argv[];
+{
+ char two();
+ int one();
+
+ one();
+ two();
+}
+
+int
+one ()
+{
+ int i, j;
+ j = i++;
+}
+
+char
+two ()
+{
+ int i, j;
+ i = j++;
+
+}
+
diff --git a/binutils/testsuite/binutils-all/configure.in b/binutils/testsuite/binutils-all/configure.in
new file mode 100644
index 0000000..3f3da28
--- /dev/null
+++ b/binutils/testsuite/binutils-all/configure.in
@@ -0,0 +1,30 @@
+# necessary to tailor a template configure script into the configure
+# script appropriate for this directory. For more information, check
+# any existing configure script.
+
+srctrigger=nm.exp
+srcname="DejaGnu"
+
+# per-host:
+
+# per-target:
+
+# per-target:
+
+ # everything defaults to unix for a target
+target_makefile_frag=../config/mt-unix
+
+ # this section is for all targets
+case "${target}" in
+ i[345]86-*-aout) target_makefile_frag=../config/mt-i386-aout ;;
+ *-*-lynx*) target_makefile_frag=../config/mt-lynx ;;
+ *-*-vxworks) target_makefile_frag=../config/mt-vxworks ;;
+ m68k-*-*) target_makefile_frag=../config/mt-m68k ;;
+ i960-*-nindy) target_makefile_frag=../config/mt-i960-nindy ;;
+ a29k-*-udi) target_makefile_frag=../config/mt-a29k-udi ;;
+ sparclite-*-*) target_makefile_frag=../config/mt-slite ;;
+ sparc-*-aout) target_makefile_frag=../config/mt-sparc-aout ;;
+ mips-*-ecoff) target_makefile_frag=../config/mt-mips-ecoff ;;
+esac
+
+# post-target: