aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorBill Cox <bill@cygnus>1994-04-11 23:17:18 +0000
committerBill Cox <bill@cygnus>1994-04-11 23:17:18 +0000
commit099c286e7440447b4c7d9e1ced7b86ffaa255c29 (patch)
tree60a2b627693df63e457b3b79fe6905e2a341d35a /gas/testsuite
parentbf08d1e26655066aa16637662bb4eb2a2e3a3aad (diff)
downloadgdb-099c286e7440447b4c7d9e1ced7b86ffaa255c29.zip
gdb-099c286e7440447b4c7d9e1ced7b86ffaa255c29.tar.gz
gdb-099c286e7440447b4c7d9e1ced7b86ffaa255c29.tar.bz2
* Makefile.in (check): Set TCL_LIBRARY for runtest.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog4
-rw-r--r--gas/testsuite/Makefile.in33
2 files changed, 36 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index a3fe72b..fe34309 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
+
+ * Makefile.in (check): Set TCL_LIBRARY for runtest.
+
Mon Apr 11 07:54:10 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
* gas/hppa/more.parse/callinfobug.s: Add missing name for
diff --git a/gas/testsuite/Makefile.in b/gas/testsuite/Makefile.in
index ffbef0e..63a8705 100644
--- a/gas/testsuite/Makefile.in
+++ b/gas/testsuite/Makefile.in
@@ -1,3 +1,22 @@
+# Makefile for regression testing the GNU assemblers.
+# Copyright (C) 1987, 88, 90, 91, 92, 93, 1994 Free Software Foundation, Inc.
+
+#This file is part of the GNU Assembler (gas).
+
+#gas is free software; you can redistribute it and/or modify
+#it under the terms of the GNU General Public License as published by
+#the Free Software Foundation; either version 2, or (at your option)
+#any later version.
+
+#gas is distributed in the hope that it will be useful,
+#but WITHOUT ANY WARRANTY; without even the implied warranty of
+#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+#GNU General Public License for more details.
+
+#You should have received a copy of the GNU General Public License
+#along with GNU CC; see the file COPYING. If not, write to
+#the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+
srcdir = .
prefix = /usr/local
@@ -34,7 +53,13 @@ GCCFLAGS = -g -O
LINK= ln -s
-RUNTEST = runtest
+EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \
+ echo $${rootme}/../../expect/expect ; \
+ else echo expect ; fi`
+
+RUNTEST = `if [ -f $${srcdir}/../../dejagnu/runtest ] ; then \
+ echo $${srcdir}/../../dejagnu/runtest ; \
+ else echo runtest ; fi`
RUNTESTFLAGS =
# The ugliness in the program_transform_name version seems necessary
@@ -99,6 +124,12 @@ site.exp: ./Makefile
@mv -f ./tmp0 site.exp
check: site.exp
+ rootme=`pwd`; export rootme; \
+ srcdir=${srcdir} ; export srcdir ; \
+ EXPECT=${EXPECT} ; export EXPECT ; \
+ if [ -f $${rootme}/../../expect/expect ] ; then \
+ TCL_LIBRARY=$${srcdir}/../../tcl/library ; \
+ export TCL_LIBRARY ; fi ; \
$(RUNTEST) $(RUNTESTFLAGS) --tool gas AS=$(AS_FOR_TARGET) ASFLAGS="$(ASFLAGS)"
force: