]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Oops, this should have gone away a long time ago
authorAkim Demaille <akim@epita.fr>
Fri, 12 May 2000 10:33:23 +0000 (10:33 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 12 May 2000 10:33:23 +0000 (10:33 +0000)
testsuite/Makefile.am [deleted file]
testsuite/Makefile.in [deleted file]
testsuite/autoconf.g/init.exp [deleted file]
testsuite/autoconf.g/sizeof.exp [deleted file]
testsuite/autoconf.s/defines.exp [deleted file]
testsuite/autoconf.s/syntax.exp [deleted file]
testsuite/config/unix.exp [deleted file]
testsuite/lib/common.exp [deleted file]

diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am
deleted file mode 100644 (file)
index 146e103..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-## Process this file with automake to create Makefile.in.
-
-## Makefile for Autoconf testsuite.
-## Copyright (C) 1999 Free Software Foundation, Inc.
-
-## This program 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.
-
-## 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.
-
-AUTOMAKE_OPTIONS = dejagnu
-
-GENERIC_TESTS = autoconf.g/sizeof.exp autoconf.g/init.exp
-SPECIFIC_TESTS = autoconf.s/defines.exp autoconf.s/syntax.exp
-
-EXTRA_DIST = config/unix.exp lib/common.exp $(GENERIC_TESTS) $(SPECIFIC_TESTS)
-
-AUTOCONFFLAGS = -m $(top_builddir)
-AUTOCONF = $(top_builddir)/autoconf
-
-## FIXME: I don't think it is normal that we need AUTOCONF.  Some scripts
-## use it explicitly though.
-RUNTESTFLAGS = AUTOCONF="$(AUTOCONF)" AUTOCONFFLAGS="$(AUTOCONFFLAGS)"
diff --git a/testsuite/Makefile.in b/testsuite/Makefile.in
deleted file mode 100644 (file)
index d4f54fb..0000000
+++ /dev/null
@@ -1,216 +0,0 @@
-# Makefile.in generated automatically by automake 1.4 from Makefile.am
-
-# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-SHELL = @SHELL@
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
-VPATH = @srcdir@
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-
-bindir = @bindir@
-sbindir = @sbindir@
-libexecdir = @libexecdir@
-datadir = @datadir@
-sysconfdir = @sysconfdir@
-sharedstatedir = @sharedstatedir@
-localstatedir = @localstatedir@
-libdir = @libdir@
-infodir = @infodir@
-mandir = @mandir@
-includedir = @includedir@
-oldincludedir = /usr/include
-
-DESTDIR =
-
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-
-top_builddir = ..
-
-ACLOCAL = @ACLOCAL@
-AUTOMAKE = @AUTOMAKE@
-AUTOHEADER = @AUTOHEADER@
-
-INSTALL = @INSTALL@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-transform = @program_transform_name@
-
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-AWK = @AWK@
-HELP2MAN = @HELP2MAN@
-M4 = @M4@
-PERL = @PERL@
-PERLSCRIPTS = @PERLSCRIPTS@
-standards_texi = @standards_texi@
-
-AUTOMAKE_OPTIONS = dejagnu
-
-GENERIC_TESTS = autoconf.g/sizeof.exp autoconf.g/init.exp
-SPECIFIC_TESTS = autoconf.s/defines.exp autoconf.s/syntax.exp
-
-EXTRA_DIST = config/unix.exp lib/common.exp $(GENERIC_TESTS) $(SPECIFIC_TESTS)
-
-AUTOCONFFLAGS = -m $(top_builddir)
-AUTOCONF = $(top_builddir)/autoconf
-
-RUNTESTFLAGS = AUTOCONF="$(AUTOCONF)" AUTOCONFFLAGS="$(AUTOCONFFLAGS)"
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_CLEAN_FILES = 
-DIST_COMMON =  Makefile.am Makefile.in
-
-
-PACKAGE = @PACKAGE@
-VERSION = @VERSION@
-
-DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
-
-TAR = tar
-GZIP_ENV = --best
-EXPECT = expect
-RUNTEST = runtest
-all: all-redirect
-.SUFFIXES:
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
-       cd $(top_srcdir) && $(AUTOMAKE) --gnu testsuite/Makefile
-
-Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
-       cd $(top_builddir) \
-         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
-
-tags: TAGS
-TAGS:
-
-
-distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
-
-subdir = testsuite
-
-distdir: $(DISTFILES)
-       here=`cd $(top_builddir) && pwd`; \
-       top_distdir=`cd $(top_distdir) && pwd`; \
-       distdir=`cd $(distdir) && pwd`; \
-       cd $(top_srcdir) \
-         && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu testsuite/Makefile
-       $(mkinstalldirs) $(distdir)/autoconf.g $(distdir)/autoconf.s \
-          $(distdir)/config $(distdir)/lib
-       @for file in $(DISTFILES); do \
-         d=$(srcdir); \
-         if test -d $$d/$$file; then \
-           cp -pr $$d/$$file $(distdir)/$$file; \
-         else \
-           test -f $(distdir)/$$file \
-           || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
-           || cp -p $$d/$$file $(distdir)/$$file || :; \
-         fi; \
-       done
-
-DEJATOOL = $(PACKAGE)
-
-RUNTESTDEFAULTFLAGS = --tool $(DEJATOOL) --srcdir $$srcdir
-
-check-DEJAGNU: site.exp
-       srcdir=`cd $(srcdir) && pwd`; export srcdir; \
-       EXPECT=$(EXPECT); export EXPECT; \
-       runtest=$(RUNTEST); \
-       if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
-         $$runtest $(RUNTESTDEFAULTFLAGS) $(RUNTESTFLAGS); \
-       else echo "WARNING: could not find \`runtest'" 1>&2; :;\
-       fi
-site.exp: Makefile
-       @echo 'Making a new site.exp file...'
-       @test ! -f site.bak || rm -f site.bak
-       @echo '## these variables are automatically generated by make ##' > $@-t
-       @echo '# Do not edit here.  If you wish to override these values' >> $@-t
-       @echo '# edit the last section' >> $@-t
-       @echo 'set tool $(DEJATOOL)' >> $@-t
-       @echo 'set srcdir $(srcdir)' >> $@-t
-       @echo 'set objdir' `pwd` >> $@-t
-       @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t
-       @test ! -f site.exp || sed '1,/^## All variables above are.*##/ d' site.exp >> $@-t
-       @test ! -f site.exp || mv site.exp site.bak
-       @mv $@-t site.exp
-info-am:
-info: info-am
-dvi-am:
-dvi: dvi-am
-check-am: all-am
-       $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU
-check: check-am
-installcheck-am:
-installcheck: installcheck-am
-install-exec-am:
-install-exec: install-exec-am
-
-install-data-am:
-install-data: install-data-am
-
-install-am: all-am
-       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-install: install-am
-uninstall-am:
-uninstall: uninstall-am
-all-am: Makefile
-all-redirect: all-am
-install-strip:
-       $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
-installdirs:
-
-
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-       -rm -f Makefile $(CONFIG_CLEAN_FILES)
-       -rm -f config.cache config.log stamp-h stamp-h[0-9]*
-
-maintainer-clean-generic:
-mostlyclean-am:  mostlyclean-generic
-
-mostlyclean: mostlyclean-am
-
-clean-am:  clean-generic mostlyclean-am
-
-clean: clean-am
-
-distclean-am:  distclean-generic clean-am
-
-distclean: distclean-am
-
-maintainer-clean-am:  maintainer-clean-generic distclean-am
-       @echo "This command is intended for maintainers to use;"
-       @echo "it deletes files that may require special tools to rebuild."
-
-maintainer-clean: maintainer-clean-am
-
-.PHONY: tags distdir check-DEJAGNU info-am info dvi-am dvi check \
-check-am installcheck-am installcheck install-exec-am install-exec \
-install-data-am install-data install-am install uninstall-am uninstall \
-all-redirect all-am all installdirs mostlyclean-generic \
-distclean-generic clean-generic maintainer-clean-generic clean \
-mostlyclean distclean maintainer-clean
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/testsuite/autoconf.g/init.exp b/testsuite/autoconf.g/init.exp
deleted file mode 100644 (file)
index 5efb2d4..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-# Test whether AC_INIT and AC_OUTPUT compile.
-autoconf_test AC_INIT ""
diff --git a/testsuite/autoconf.g/sizeof.exp b/testsuite/autoconf.g/sizeof.exp
deleted file mode 100644 (file)
index 933deac..0000000
+++ /dev/null
@@ -1 +0,0 @@
-autoconf_test AC_CHECK_SIZEOF "AC_CHECK_SIZEOF(long *)"
diff --git a/testsuite/autoconf.s/defines.exp b/testsuite/autoconf.s/defines.exp
deleted file mode 100644 (file)
index 18f5a32..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-# -*- TCL -*-
-# Check for a 1-1 correspondence between acconfig.h and acspecific.m4.
-# Copyright (C) 1994 Free Software Foundation, Inc.
-
-# This program 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.
-
-# Adapted by David MacKenzie from a shell script by Paul Eggert.
-# \f
-# set top_srcdir "$srcdir/.."
-#
-# set uscript {s/^#undef[       ]*\([^  ]*\).*/\1/p}
-# set undefs [exec sed -n $uscript $top_srcdir/acconfig.h]
-#
-# set dscript {s/.*AC_DEFINE[A-Z_]*(\([^$,)]*\).*/\1/p; s/.*AC_CHECK_TYPE(\([^$,)]*\).*/\1/p}
-# set defines [exec sed -n $dscript $top_srcdir/acspecific.m4]
-#
-# send_user "Checking acspecific.m4 for definitions of symbols in acconfig.h...\n"
-#
-# foreach u $undefs {
-#     send_user "$u\n"
-#     if {[lsearch -exact $defines $u] != -1} {
-#        xpass "$u"
-#     } else {
-#        xfail "$u, not defined"
-#     }
-# }
-#
-# send_user "Checking acconfig.h for symbols defined in acspecific.m4...\n"
-#
-# foreach d $defines {
-#     send_user "$d\n"
-#     if {[lsearch -exact $undefs $d] != -1} {
-#        xpass "$d"
-#     } else {
-#        xfail "$d, no entry"
-#     }
-# }
diff --git a/testsuite/autoconf.s/syntax.exp b/testsuite/autoconf.s/syntax.exp
deleted file mode 100644 (file)
index 95a4611..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-# Test all of the acspecific.m4 macros. -*- TCL -*-
-
-send_user "Checking for syntax errors in the specific tests...\n"
-set script {s/^AC_DEFUN(\([^,]*\).*/\1/p}
-set macros [exec sed -n $script $srcdir/../acspecific.m4]
-
-foreach mac $macros {
-    send_user "$mac\n"
-    autoconf_test $mac $mac
-}
diff --git a/testsuite/config/unix.exp b/testsuite/config/unix.exp
deleted file mode 100644 (file)
index 8d19d74..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-# -*- TCL -*-
-# Test-specific TCL procedures required by DejaGNU.
-# Copyright (C) 1994 Free Software Foundation, Inc.
-
-# This program 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.
-
-# Modified by David MacKenzie <djm@gnu.ai.mit.edu> from the gcc files
-# written by Rob Savoye <rob@cygnus.com>.
-\f
-#
-# Called by runtest.
-# Extract and print the version number of autoconf.
-#
-proc autoconf_version {} {
-    global AUTOCONF
-    global AUTOCONFFLAGS
-
-    if {[which $AUTOCONF] != 0} then {
-       set tmp [ eval exec $AUTOCONF $AUTOCONFFLAGS --version /dev/null ]
-       regexp "version.*$" $tmp version
-       if [info exists version] then {
-           clone_output "[which $AUTOCONF] $version\n"
-       } else {
-           warning "cannot get version from $tmp."
-       }
-    } else {
-       warning "$AUTOCONF, program does not exist"
-    }
-}
-
-#
-# Compile a configure.in using autoconf.
-# Runs autoconf and leaves the output in $comp_output.
-# Called by individual test scripts.
-# Return 1 if ok, 0 if not.
-proc autoconf_start { configout } {
-    global verbose
-    global AUTOCONF
-    global AUTOCONFFLAGS
-    global comp_output
-
-    if {[which $AUTOCONF] == 0} then {
-       error "$AUTOCONF, program does not exist"
-       exit 1
-    }
-
-    set configin "$configout.in"
-
-    send_log "$AUTOCONF $AUTOCONFFLAGS $configin > $configout\n"
-    if $verbose>1 then {
-       send_user "Spawning \"$AUTOCONF $AUTOCONFFLAGS $configin > $configout\"\n"
-    }
-
-    catch "exec $AUTOCONF $AUTOCONFFLAGS $configin > $configout" comp_output
-    if ![string match "" $comp_output] then {
-       send_log "$comp_output\n"
-       if $verbose>1 then {
-           send_user "$comp_output\n"
-       }
-    }
-    catch "exec chmod +x $configout"
-    return 1
-}
-
-#
-# Execute the configure script.
-# Leaves the output in $exec_output.
-# Called by individual test scripts.
-# Return 1 if successful so far, 0 if failure already.
-proc autoconf_load { args } {
-    global verbose
-    global exec_output
-
-    if ![file exists $args] then {
-       error "$args, configure script does not exist"
-       return 0
-    }
-
-    # Check whether m4 processing left any icky residue.
-    # The autoconf script does this already, pretty much.
-    # catch "exec sed -n -e /dnl/p -e /AC_/p $args" exec_output
-    # if $verbose>1 then {
-    #  send_user "Checked $args for unexpanded m4 macros\n"
-    # }
-    # if ![string match "" $exec_output] then {
-    #  fail "$args, unexpanded m4 macros"
-    #  send_log "$exec_output\n"
-    #  return 0
-    # }
-
-    # Capture only stderr in exec_output, not "creating Makefile" etc.
-    catch "exec ./$args --cache=/dev/null >/dev/null" exec_output
-    if $verbose>1 then {
-       send_user "Executed $args --cache=/dev/null\n"
-    }
-    if ![string match "" $exec_output] then {
-       fail "$args, problem with executing"
-       send_log "$exec_output\n"
-       return 0
-    } else {
-       return 1
-    }
-}
-
-#
-# Called by runtest.
-# Clean up (remove temporary files) before runtest exits.
-#
-proc autoconf_exit {} {
-}
-
-load_lib common.exp
diff --git a/testsuite/lib/common.exp b/testsuite/lib/common.exp
deleted file mode 100644 (file)
index 2ebb2d6..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-# -*- TCL -*-
-# Auxiliary procedures for autoconf tests.
-# Copyright (C) 1994 Free Software Foundation, Inc.
-
-# This program 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 David MacKenzie <djm@gnu.ai.mit.edu>.
-\f
-#
-# Create a configure.in from a string.
-# CONFIG.in is the file to create containing CONTENTS plus boilerplate.
-# Return 1 if successful, 0 if an error occurs.
-proc autoconf_create {config contents} {
-    if [catch {open "$config.in" "w"} hand] {
-       error "$config, cannot create $config.in"
-       return 0
-    }
-    puts $hand "AC_INIT(confdummy.in)
-$contents
-AC_OUTPUT(confdummy)"
-    close $hand
-
-    if [catch {open "confdummy.in" "w"} hand] {
-       error "$config, cannot create confdummy.in"
-       return 0
-    }
-    puts $hand "# This is a dummy file for testing.
-srcdir = @srcdir@
-# Please ignore this file."
-    close $hand
-
-    return 1
-}
-
-# Compile a configure.in into a configure
-#  and call error if there's any output (undefined macros, can't
-#  find library files, etc.).
-proc autoconf_start_plus {configout} {
-    global comp_output
-
-    set status [autoconf_start $configout]
-    if {$status==0} {
-       return 0
-    }
-    # Examine $comp_output.
-    if [string match "*is obsolete*" "$comp_output"] then {
-       return 1
-    }
-    if [string match "*allow cross*" "$comp_output"] then {
-       return 1
-    }
-    if ![string match "" "$comp_output"] then {
-       fail "$configout, problem with running autoconf"
-       return 0
-    }
-    return 1
-}
-
-# Execute a configure script and check the output
-#  against what it's supposed to be.
-# Return 1 if successful so far, 0 if failure already.
-proc autoconf_load_plus {args} {
-    global exec_output
-
-    set status [autoconf_load $args]
-    if {$status==0} {
-       return 0
-    }
-    if [string match "*:*" "$exec_output"] then {
-       fail "$args, problem with executing"
-       return 0
-    }
-    return 1
-}
-
-# Remove generated configuration files for test CONFIG.
-# Return 1 if successful, 0 if not.
-proc autoconf_remove {config} {
-    if [catch "exec rm -f $config $config.in [glob -nocomplain conftest* confdummy*] config.status config.cache config.log"] {
-       warning "$config output files, cannot remove"
-       return 0
-    }
-    return 1
-}
-
-# The standard autoconf test: create, compile, run, and remove
-# a simple configure script to test a single macro.
-# TESTNAME is the name of the macro being tested.
-# CONTENTS is the body of the configure script to create and test.
-proc autoconf_test {testname contents} {
-    if ![autoconf_remove $testname] {
-       return 0
-    }
-    if ![autoconf_create $testname "$contents"] {
-       return 0
-    }
-    if ![autoconf_start_plus $testname] {
-       autoconf_remove $testname
-       return 0
-    }
-    if ![autoconf_load_plus $testname] {
-       autoconf_remove $testname
-       return 0
-    }
-    if ![autoconf_remove $testname] {
-       return 0
-    }
-
-    pass "$testname"
-    return 1
-}