diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-09-29 16:39:01 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-09-29 16:39:01 +0000 |
commit | d2c0200413611fb6b7fad8e45c9a42c2e8f743f7 (patch) | |
tree | cfa87bb4b27a264890ca0212dde9931696fdfb0a /ld/testsuite/ld.bootstrap | |
parent | ec591fcf4593685c5b3cae35a3ad6ce87f127c26 (diff) | |
download | gdb-d2c0200413611fb6b7fad8e45c9a42c2e8f743f7.zip gdb-d2c0200413611fb6b7fad8e45c9a42c2e8f743f7.tar.gz gdb-d2c0200413611fb6b7fad8e45c9a42c2e8f743f7.tar.bz2 |
* VMS does not permits `.' in directory names. Renamed
ld.bootstrap to ld-bootstrap, ld.cdtest to ld-cdtest, and
ld.scripts to ld-scripts.
Diffstat (limited to 'ld/testsuite/ld.bootstrap')
-rw-r--r-- | ld/testsuite/ld.bootstrap/.Sanitize | 36 | ||||
-rw-r--r-- | ld/testsuite/ld.bootstrap/bootstrap.exp | 75 |
2 files changed, 0 insertions, 111 deletions
diff --git a/ld/testsuite/ld.bootstrap/.Sanitize b/ld/testsuite/ld.bootstrap/.Sanitize deleted file mode 100644 index abbbecc..0000000 --- a/ld/testsuite/ld.bootstrap/.Sanitize +++ /dev/null @@ -1,36 +0,0 @@ -# .Sanitize for ld dejagnu testsuites - -# 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: - -bootstrap.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: - -#eof diff --git a/ld/testsuite/ld.bootstrap/bootstrap.exp b/ld/testsuite/ld.bootstrap/bootstrap.exp deleted file mode 100644 index f2e7c5c..0000000 --- a/ld/testsuite/ld.bootstrap/bootstrap.exp +++ /dev/null @@ -1,75 +0,0 @@ -# Expect script for LD Bootstrap Tests -# Copyright (C) 1993,1994 Free Software Foundation -# -# 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ -# -# Written by Jeffrey Wheat (cassidy@cygnus.com) -# Rewritten by Ian Lance Taylor (ian@cygnus.com) -# - -# Make sure that ld can bootstrap itself. - -# This test can only be run if ld generates native executables. -if ![isnative] {return} - -# This test can only be run if we have the ld build directory, since -# we need the object files. -if {$ld != "$objdir/ld.new"} {return} - -# Bootstrap ld. First link the object files together using -r, in -# order to test -r. Then link the result into an executable, ld1, to -# really test -r. Use ld1 to link a fresh ld, ld2. Use ld2 to link a -# new ld, ld3. ld2 and ld3 should be identical. - -foreach flags {"" "--static" "--traditional-format" "--no-keep-memory"} { - if {"$flags" != ""} { - set testname "bootstrap with $flags" - } else { - set testname "bootstrap" - } - - if ![ld_relocate $ld tmpdir/ld-partial.o "$flags $OFILES"] { - fail $testname - return - } - - if ![ld_link $ld tmpdir/ld1 "$flags tmpdir/ld-partial.o $BFDLIB $LIBIBERTY"] { - fail $testname - return - } - - if ![ld_link tmpdir/ld1 tmpdir/ld2 "$flags $OFILES $BFDLIB $LIBIBERTY"] { - fail $testname - return - } - - if ![ld_link tmpdir/ld2 tmpdir/ld3 "$flags $OFILES $BFDLIB $LIBIBERTY"] { - fail $testname - return - } - - send_log "cmp tmpdir/ld2 tmpdir/ld3\n" - verbose "cmp tmpdir/ld2 tmpdir/ld3" - catch "exec cmp tmpdir/ld2 tmpdir/ld3" exec_output - - if [string match "" $exec_output] then { - pass $testname - } else { - send_log "$exec_output\n" - verbose "$exec_output" 1 - - fail $testname - } -} |