source:
scripts/untested/autotools/patches/automake-1.5-test-fixes.patch@
f118837
Last change on this file since f118837 was d1afb9e, checked in by , 19 years ago | |
---|---|
|
|
File size: 2.2 KB |
-
automake-1.5/tests/insthook.test
Fix the tests so they don't fail :) http://bugs.gentoo.org/show_bug.cgi?id=79505 insthook: update the head/tail syntax since coreutils has deprecated the old style dirname,ccnoco: rip patches from fedora
old new 17 test x$lnum != x && tail +$lnum Makefile.in | head -3 | grep install-exec-hook17 test x$lnum != x && tail -n +$lnum Makefile.in | head -n 3 | grep install-exec-hook -
tests/dirname.test
diff -u automake-1.5/tests/dirname.test automake-1.6.3/tests/dirname.test
old new 5 5 . $srcdir/defs || exit 1 6 6 7 7 cat > configure.in << 'END' 8 AC_ PLAIN_SCRIPT8 AC_INIT 9 9 echo "1 /a/path/to/a/file = _AM_DIRNAME([/a/path/to/a/file])" 10 10 echo "2 another/path/to/a/file = _AM_DIRNAME([another/path/to/a/file])" 11 11 echo "3 file = _AM_DIRNAME([file])" … … 15 15 echo "7 /file = _AM_DIRNAME([/file])" 16 16 END 17 17 18 # Fail gracefully if no autoconf.19 $needs_autoconf20 21 18 $ACLOCAL || exit 1 22 $AUTOCONF || exit 1 23 24 # fail gracefully if autoconf didn't support AC_PLAIN_SCRIPT, because it won't 25 # support our regexps anyhow 26 test -s configure || exit 77 19 # fail gracefully if autoconf didn't support support our regexps anyhow 20 $AUTOCONF || exit 77 27 21 28 $SHELL ./configure >got || exit 1 22 # Use --quiet otherwise unwelcome messages like "loading site script" 23 # would cause a failure. 24 ./configure --quiet >got || exit 1 29 25 30 26 cat >wanted <<EOF 31 27 1 /a/path/to/a/file = /a/path/to/a … … 40 36 diff wanted got || exit 1 41 37 42 38 exit 0 43 -
tests/ccnoco.test
diff -u automake-1.5/tests/ccnoco.test automake-1.6.3/tests/ccnoco.test
old new 39 39 } 40 40 END 41 41 42 $needs_autoconf43 42 gcc -v || exit 77 44 43 45 44 cat > Mycomp << 'END' … … 51 50 ;; 52 51 esac 53 52 54 exec gcc ${1+"$@"}53 exec gcc "$@" 55 54 END 56 55 57 56 chmod +x Mycomp … … 59 58 set -e 60 59 61 60 61 # Ignore user CFLAGS. 62 CFLAGS= 63 export CFLAGS 64 62 65 for conf in configure.1 configure.3; do 63 66 cp $conf configure.in 64 67
Note:
See TracBrowser
for help on using the repository browser.