source: trunk/third/gettext2/autoconf-lib-link/tests/rpath-3_b @ 22167

Revision 22167, 2.5 KB checked in by ghudson, 19 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r22166, which included commits to RCS files with non-trunk default branches.
Line 
1# Common portion of all rpath-3?b? tests.
2
3tmpfiles=""
4trap 'rm -fr $tmpfiles' 1 2 3 15
5
6builddir=`pwd`
7global_top_auxdir=`cd "$top_srcdir"/config && pwd`
8export global_top_auxdir
9
10test -d tstdir || mkdir tstdir
11
12tmpfiles="$tmpfiles $rp-prefix1"
13rm -rf $rp-prefix1
14mkdir $rp-prefix1
15
16tmpfiles="$tmpfiles $rp-prefix2"
17rm -rf $rp-prefix2
18mkdir $rp-prefix2
19
20tmpfiles="$tmpfiles $rp-prefix3"
21rm -rf $rp-prefix3
22mkdir $rp-prefix3
23
24tmpfiles="$tmpfiles $rp-prefix"
25rm -rf $rp-prefix
26mkdir $rp-prefix
27
28tmpfiles="$tmpfiles tstdir/$rp-build1"
29rm -rf tstdir/$rp-build1
30mkdir tstdir/$rp-build1
31(cd $srcdir/rpathx && tar cf - *) | (cd tstdir/$rp-build1 && tar xf -)
32(cd tstdir/$rp-build1
33 ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix1 > configure.log 2>&1
34 make > make.log 2>&1
35 make install > install.log 2>&1
36)
37if test $remove_la = yes; then
38  rm -f $rp-prefix1/lib/librpathx.la
39fi
40
41tmpfiles="$tmpfiles tstdir/$rp-build2"
42rm -rf tstdir/$rp-build2
43mkdir tstdir/$rp-build2
44(cd $srcdir/rpathy && tar cf - *) | (cd tstdir/$rp-build2 && tar xf -)
45(cd tstdir/$rp-build2
46 ${CONFIG_SHELL-/bin/sh} ./configure $build2_configure_flags --prefix=$builddir/$rp-prefix2 --with-librpathx-prefix=$builddir/$rp-prefix1 > configure.log 2>&1
47 make > make.log 2>&1
48 make install > install.log 2>&1
49)
50if test $remove_la = yes; then
51  rm -f $rp-prefix2/lib/librpathy.la
52fi
53
54tmpfiles="$tmpfiles tstdir/$rp-build3"
55rm -rf tstdir/$rp-build3
56mkdir tstdir/$rp-build3
57(cd $srcdir/rpathz && tar cf - *) | (cd tstdir/$rp-build3 && tar xf -)
58(cd tstdir/$rp-build3
59 ${CONFIG_SHELL-/bin/sh} ./configure $build3_configure_flags --prefix=$builddir/$rp-prefix3 --with-librpathx-prefix=$builddir/$rp-prefix1 --with-librpathy-prefix=$builddir/$rp-prefix2 > configure.log 2>&1
60 make > make.log 2>&1
61 make install > install.log 2>&1
62)
63if test $remove_la = yes; then
64  rm -f $rp-prefix3/lib/librpathz.la
65fi
66
67tmpfiles="$tmpfiles tstdir/$rp-build4"
68rm -rf tstdir/$rp-build4
69mkdir tstdir/$rp-build4
70(cd $srcdir/$build4_package && tar cf - *) | (cd tstdir/$rp-build4 && tar xf -)
71(cd tstdir/$rp-build4
72 if test $remove_la = yes; then
73   build4_configure_flags="--with-librpathx-prefix=$builddir/$rp-prefix1 --with-librpathy-prefix=$builddir/$rp-prefix2"
74 else
75   build4_configure_flags=
76 fi
77 ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --with-librpathz-prefix=$builddir/$rp-prefix3 $build4_configure_flags > configure.log 2>&1
78 make > make.log 2>&1
79 make check >> make.log
80)
81result=$?
82
83rm -rf $tmpfiles
84
85exit $result
Note: See TracBrowser for help on using the repository browser.