rpath-1 revision 1.1 1 # Common portion of all rpath-1* tests.
2
3 tmpfiles=""
4 trap 'rm -fr $tmpfiles' 1 2 3 15
5
6 builddir=`pwd`
7 global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd`
8 export global_top_auxdir
9
10 test -d tstdir || mkdir tstdir
11
12 tmpfiles="$tmpfiles $rp-prefix"
13 rm -rf $rp-prefix
14 mkdir $rp-prefix
15
16 tmpfiles="$tmpfiles tstdir/$rp-build1"
17 rm -rf tstdir/$rp-build1
18 mkdir tstdir/$rp-build1
19 (cd $srcdir/rpathx && tar cf - *) | (cd tstdir/$rp-build1 && tar xf -)
20 (cd tstdir/$rp-build1
21 ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1
22 make > make.log 2>&1
23 make install > install.log 2>&1
24 )
25
26 tmpfiles="$tmpfiles tstdir/$rp-build2"
27 rm -rf tstdir/$rp-build2
28 mkdir tstdir/$rp-build2
29 (cd $srcdir/rpathlx && tar cf - *) | (cd tstdir/$rp-build2 && tar xf -)
30 (cd tstdir/$rp-build2
31 ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1
32 make > make.log 2>&1
33 make check >> make.log
34 )
35 result=$?
36
37 rm -rf $tmpfiles
38
39 exit $result
40