X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=t%2Fltorder.sh;h=de87274f7ece0e520826151b74824825eb8fd27b;hb=6febcd41b3dcf99a89aaf21329c00fdadcd68771;hp=358e620fe43a66c78fad2f6da82b4293ebc64fab;hpb=f4b8c5856fb76889f8a44287c2bf48256f1a2a00;p=platform%2Fupstream%2Fautomake.git diff --git a/t/ltorder.sh b/t/ltorder.sh old mode 100755 new mode 100644 index 358e620..de87274 --- a/t/ltorder.sh +++ b/t/ltorder.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 2008-2012 Free Software Foundation, Inc. +# Copyright (C) 2008-2013 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 @@ -17,7 +17,7 @@ # Test for correct installation order of nobase libtool libraries. required='cc libtoolize' -. ./defs || Exit 1 +. test-init.sh cat >>configure.ac <<'END' AC_PROG_CC @@ -27,6 +27,7 @@ AC_OUTPUT END cat >Makefile.am <<'END' +AUTOMAKE_OPTIONS = subdir-objects nobase_lib_LTLIBRARIES = liba1.la sub/liba2.la sub/liba3.la liba4.la liba5.la sub_liba2_la_LIBADD = liba1.la sub_liba3_la_LIBADD = sub/liba2.la @@ -49,14 +50,13 @@ $ACLOCAL $AUTOCONF $AUTOMAKE --add-missing -./configure "--prefix=`pwd`/inst" +./configure --prefix="$(pwd)/inst" $MAKE -$MAKE install 2>stderr || { cat stderr >&2; Exit 1; } -cat stderr >&2 -grep 'has not been installed' stderr && Exit 1 +run_make -E install +grep 'has not been installed' stderr && exit 1 $MAKE uninstall -test `find inst -type f -print | wc -l` -eq 0 +test $(find inst -type f -print | wc -l) -eq 0 :