Home | History | Annotate | Line # | Download | only in tests
rpath-3_b revision 1.1
      1  1.1  christos # Common portion of all rpath-3?b? tests.
      2  1.1  christos 
      3  1.1  christos tmpfiles=""
      4  1.1  christos trap 'rm -fr $tmpfiles' 1 2 3 15
      5  1.1  christos 
      6  1.1  christos builddir=`pwd`
      7  1.1  christos global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd`
      8  1.1  christos export global_top_auxdir
      9  1.1  christos 
     10  1.1  christos test -d tstdir || mkdir tstdir
     11  1.1  christos 
     12  1.1  christos tmpfiles="$tmpfiles $rp-prefix1"
     13  1.1  christos rm -rf $rp-prefix1
     14  1.1  christos mkdir $rp-prefix1
     15  1.1  christos 
     16  1.1  christos tmpfiles="$tmpfiles $rp-prefix2"
     17  1.1  christos rm -rf $rp-prefix2
     18  1.1  christos mkdir $rp-prefix2
     19  1.1  christos 
     20  1.1  christos tmpfiles="$tmpfiles $rp-prefix3"
     21  1.1  christos rm -rf $rp-prefix3
     22  1.1  christos mkdir $rp-prefix3
     23  1.1  christos 
     24  1.1  christos tmpfiles="$tmpfiles $rp-prefix"
     25  1.1  christos rm -rf $rp-prefix
     26  1.1  christos mkdir $rp-prefix
     27  1.1  christos 
     28  1.1  christos tmpfiles="$tmpfiles tstdir/$rp-build1"
     29  1.1  christos rm -rf tstdir/$rp-build1
     30  1.1  christos mkdir tstdir/$rp-build1
     31  1.1  christos (cd $srcdir/rpathx && tar cf - *) | (cd tstdir/$rp-build1 && tar xf -)
     32  1.1  christos (cd tstdir/$rp-build1
     33  1.1  christos  ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix1 --libdir=$builddir/$rp-prefix1/$LIBDIRSTEM > configure.log 2>&1
     34  1.1  christos  make > make.log 2>&1
     35  1.1  christos  make install > install.log 2>&1
     36  1.1  christos )
     37  1.1  christos if test $remove_la = yes; then
     38  1.1  christos   rm -f $rp-prefix1/lib/librpathx.la
     39  1.1  christos fi
     40  1.1  christos 
     41  1.1  christos tmpfiles="$tmpfiles tstdir/$rp-build2"
     42  1.1  christos rm -rf tstdir/$rp-build2
     43  1.1  christos mkdir tstdir/$rp-build2
     44  1.1  christos (cd $srcdir/rpathy && tar cf - *) | (cd tstdir/$rp-build2 && tar xf -)
     45  1.1  christos (cd tstdir/$rp-build2
     46  1.1  christos  ${CONFIG_SHELL-/bin/sh} ./configure $build2_configure_flags --prefix=$builddir/$rp-prefix2 --libdir=$builddir/$rp-prefix2/$LIBDIRSTEM --with-librpathx-prefix=$builddir/$rp-prefix1 > configure.log 2>&1
     47  1.1  christos  make > make.log 2>&1
     48  1.1  christos  make install > install.log 2>&1
     49  1.1  christos )
     50  1.1  christos if test $remove_la = yes; then
     51  1.1  christos   rm -f $rp-prefix2/lib/librpathy.la
     52  1.1  christos fi
     53  1.1  christos 
     54  1.1  christos tmpfiles="$tmpfiles tstdir/$rp-build3"
     55  1.1  christos rm -rf tstdir/$rp-build3
     56  1.1  christos mkdir tstdir/$rp-build3
     57  1.1  christos (cd $srcdir/rpathz && tar cf - *) | (cd tstdir/$rp-build3 && tar xf -)
     58  1.1  christos (cd tstdir/$rp-build3
     59  1.1  christos  ${CONFIG_SHELL-/bin/sh} ./configure $build3_configure_flags --prefix=$builddir/$rp-prefix3 --libdir=$builddir/$rp-prefix3/$LIBDIRSTEM --with-librpathx-prefix=$builddir/$rp-prefix1 --with-librpathy-prefix=$builddir/$rp-prefix2 > configure.log 2>&1
     60  1.1  christos  make > make.log 2>&1
     61  1.1  christos  make install > install.log 2>&1
     62  1.1  christos )
     63  1.1  christos if test $remove_la = yes; then
     64  1.1  christos   rm -f $rp-prefix3/lib/librpathz.la
     65  1.1  christos fi
     66  1.1  christos 
     67  1.1  christos tmpfiles="$tmpfiles tstdir/$rp-build4"
     68  1.1  christos rm -rf tstdir/$rp-build4
     69  1.1  christos mkdir tstdir/$rp-build4
     70  1.1  christos (cd $srcdir/$build4_package && tar cf - *) | (cd tstdir/$rp-build4 && tar xf -)
     71  1.1  christos (cd tstdir/$rp-build4
     72  1.1  christos  if test $remove_la = yes; then
     73  1.1  christos    build4_configure_flags="--with-librpathx-prefix=$builddir/$rp-prefix1 --with-librpathy-prefix=$builddir/$rp-prefix2"
     74  1.1  christos  else
     75  1.1  christos    build4_configure_flags=
     76  1.1  christos  fi
     77  1.1  christos  ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM --with-librpathz-prefix=$builddir/$rp-prefix3 $build4_configure_flags > configure.log 2>&1
     78  1.1  christos  make > make.log 2>&1
     79  1.1  christos  make check >> make.log
     80  1.1  christos )
     81  1.1  christos result=$?
     82  1.1  christos 
     83  1.1  christos rm -rf $tmpfiles
     84  1.1  christos 
     85  1.1  christos exit $result
     86