aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-sh/rd-sh.exp
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2001-10-14 15:18:11 +0000
committerHans-Peter Nilsson <hp@axis.com>2001-10-14 15:18:11 +0000
commit7739e068a7ea8b3668c2e37702b80aff02f19662 (patch)
tree86a2e74da2c5fe4672077d086979869ec31ca984 /ld/testsuite/ld-sh/rd-sh.exp
parentc987d8c09dafb9cb2c1b37c3aface3494c2e1717 (diff)
downloadgdb-7739e068a7ea8b3668c2e37702b80aff02f19662.zip
gdb-7739e068a7ea8b3668c2e37702b80aff02f19662.tar.gz
gdb-7739e068a7ea8b3668c2e37702b80aff02f19662.tar.bz2
* ld-sh/rd-sh.exp: New framework file.
* ld-sh/ld-r-1.d, ld-sh/ldr1.s, ld-sh/ldr2.s, ld-sh/shared-1.d, ld-sh/weak1.s, ld-sh/weak1.d, ld-sh/sub2l.s, ld-sh/sub2l-1.d: New test files.
Diffstat (limited to 'ld/testsuite/ld-sh/rd-sh.exp')
-rw-r--r--ld/testsuite/ld-sh/rd-sh.exp36
1 files changed, 36 insertions, 0 deletions
diff --git a/ld/testsuite/ld-sh/rd-sh.exp b/ld/testsuite/ld-sh/rd-sh.exp
new file mode 100644
index 0000000..5bc9a0c
--- /dev/null
+++ b/ld/testsuite/ld-sh/rd-sh.exp
@@ -0,0 +1,36 @@
+# Expect script for run_dump_test based ld-sh tests.
+# Copyright 2001 Free Software Foundation, Inc.
+#
+# This file 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 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Written by Hans-Peter Nilsson (hp@bitrange.com)
+#
+
+# This file is kept separate from sh.exp, because having it separate
+# simplifies selective testing, like in "make check-ld
+# RUNTESTFLAGS=rd-sh.exp=shared-1". It is assumed that sh.exp is a place
+# for constructs where the name of the test is harder to extract and
+# select than here.
+
+if ![istarget sh*-*-*] {
+ return
+}
+
+set rd_test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
+foreach shtest $rd_test_list {
+ # We need to strip the ".d", but can leave the dirname.
+ verbose [file rootname $shtest]
+ run_dump_test [file rootname $shtest]
+}