Home | History | Annotate | Line # | Download | only in tests
rpath-2_a revision 1.1.1.1
      1  1.1  christos # Common portion of all rpath-2?a? 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-prefix"
     13  1.1  christos rm -rf $rp-prefix
     14  1.1  christos mkdir $rp-prefix
     15  1.1  christos 
     16  1.1  christos tmpfiles="$tmpfiles tstdir/$rp-build1"
     17  1.1  christos rm -rf tstdir/$rp-build1
     18  1.1  christos mkdir tstdir/$rp-build1
     19  1.1  christos (cd $srcdir/rpathx && tar cf - *) | (cd tstdir/$rp-build1 && tar xf -)
     20  1.1  christos (cd tstdir/$rp-build1
     21  1.1  christos  ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1
     22  1.1  christos  make > make.log 2>&1
     23  1.1  christos  make install > install.log 2>&1
     24  1.1  christos )
     25  1.1  christos if test $remove_la = yes; then
     26  1.1  christos   rm -f $rp-prefix/lib/librpathx.la
     27  1.1  christos fi
     28  1.1  christos 
     29  1.1  christos tmpfiles="$tmpfiles tstdir/$rp-build2"
     30  1.1  christos rm -rf tstdir/$rp-build2
     31  1.1  christos mkdir tstdir/$rp-build2
     32  1.1  christos (cd $srcdir/rpathy && tar cf - *) | (cd tstdir/$rp-build2 && tar xf -)
     33  1.1  christos (cd tstdir/$rp-build2
     34  1.1  christos  ${CONFIG_SHELL-/bin/sh} ./configure $build2_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1
     35  1.1  christos  make > make.log 2>&1
     36  1.1  christos  make install > install.log 2>&1
     37  1.1  christos )
     38  1.1  christos if test $remove_la = yes; then
     39  1.1  christos   rm -f $rp-prefix/lib/librpathy.la
     40  1.1  christos fi
     41  1.1  christos 
     42  1.1  christos tmpfiles="$tmpfiles tstdir/$rp-build3"
     43  1.1  christos rm -rf tstdir/$rp-build3
     44  1.1  christos mkdir tstdir/$rp-build3
     45  1.1  christos (cd $srcdir/$build3_package && tar cf - *) | (cd tstdir/$rp-build3 && tar xf -)
     46  1.1  christos (cd tstdir/$rp-build3
     47  1.1  christos  ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1
     48  1.1  christos  make > make.log 2>&1
     49  1.1  christos  make check >> make.log
     50  1.1  christos )
     51  1.1  christos result=$?
     52  1.1  christos 
     53  1.1  christos rm -rf $tmpfiles
     54  1.1  christos 
     55  1.1  christos exit $result
     56