mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-01-23 14:32:20 +08:00
conditional tests
This commit is contained in:
parent
f090de0c74
commit
3d3ae35b34
@ -4,7 +4,7 @@ source versions.sh
|
|||||||
|
|
||||||
GLSOURCES="/sources"
|
GLSOURCES="/sources"
|
||||||
|
|
||||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||||
|
|
||||||
[ -d glibc-${glibc_version} ] && rm -rf glibc-${glibc_version}
|
[ -d glibc-${glibc_version} ] && rm -rf glibc-${glibc_version}
|
||||||
|
|
||||||
@ -30,9 +30,10 @@ if [ $? -ne 0 ]; then
|
|||||||
myfail "Failed building glibc"
|
myfail "Failed building glibc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# temporarily disable
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||||
#echo "running glibc make check, could take awhile..."
|
echo "running glibc make check, could take awhile..."
|
||||||
#make check > ${GLSOURCES}/glibc.check.log 2>&1
|
make check > ${GLSOURCES}/glibc.check.log 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
touch /etc/ld.so.conf
|
touch /etc/ld.so.conf
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ source versions.sh
|
|||||||
|
|
||||||
GLSOURCES="/sources"
|
GLSOURCES="/sources"
|
||||||
|
|
||||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||||
|
|
||||||
[ -d zlib-${zlib_version} ] && rm -rf zlib-${zlib_version}
|
[ -d zlib-${zlib_version} ] && rm -rf zlib-${zlib_version}
|
||||||
|
|
||||||
@ -20,8 +20,10 @@ if [ $? -ne 0 ]; then
|
|||||||
myfail "Failed building zlib"
|
myfail "Failed building zlib"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Running zlib make check."
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||||
make check > ${GLSOURCES}/zlib.check 2>&1
|
echo "Running zlib make check."
|
||||||
|
make check > ${GLSOURCES}/zlib.check.log 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ source versions.sh
|
|||||||
|
|
||||||
GLSOURCES="/sources"
|
GLSOURCES="/sources"
|
||||||
|
|
||||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||||
|
|
||||||
[ -d xz-${xz_version} ] && rm -rf xz-${xz_version}
|
[ -d xz-${xz_version} ] && rm -rf xz-${xz_version}
|
||||||
|
|
||||||
@ -21,8 +21,10 @@ if [ $? -ne 0 ]; then
|
|||||||
myfail "Failed building xz"
|
myfail "Failed building xz"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "running xz make check"
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||||
make check > ${GLSOURCES}/xz.check 2>&1
|
echo "running xz make check"
|
||||||
|
make check > ${GLSOURCES}/xz.check.log 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
make install
|
make install
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
@ -4,7 +4,7 @@ source versions.sh
|
|||||||
|
|
||||||
GLSOURCES="/sources"
|
GLSOURCES="/sources"
|
||||||
|
|
||||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||||
|
|
||||||
[ -d lz4-${lz4_version} ] && rm -rf lz4-${lz4_version}
|
[ -d lz4-${lz4_version} ] && rm -rf lz4-${lz4_version}
|
||||||
|
|
||||||
@ -17,8 +17,10 @@ if [ $? -ne 0 ]; then
|
|||||||
myfail "Failed building lz4"
|
myfail "Failed building lz4"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "running lz4 make check"
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||||
make -j1 check > ${GLSOURCES}/lz4.check 2>&1
|
echo "running lz4 make check"
|
||||||
|
make -j1 check > ${GLSOURCES}/lz4.check.log 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
make BUILD_STATIC=no PREFIX=/usr install
|
make BUILD_STATIC=no PREFIX=/usr install
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
@ -4,7 +4,7 @@ source versions.sh
|
|||||||
|
|
||||||
GLSOURCES="/sources"
|
GLSOURCES="/sources"
|
||||||
|
|
||||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||||
|
|
||||||
[ -d zstd-${zstd_version} ] && rm -rf zstd-${zstd_version}
|
[ -d zstd-${zstd_version} ] && rm -rf zstd-${zstd_version}
|
||||||
|
|
||||||
@ -17,8 +17,10 @@ if [ $? -ne 0 ]; then
|
|||||||
myfail "Failed building zstd"
|
myfail "Failed building zstd"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "running zstd make check"
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||||
make check > ${GLSOURCES}/zstd.check 2>&1
|
echo "running zstd make check"
|
||||||
|
make check > ${GLSOURCES}/zstd.check.log 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
make prefix=/usr install
|
make prefix=/usr install
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
@ -4,7 +4,7 @@ source versions.sh
|
|||||||
|
|
||||||
GLSOURCES="/sources"
|
GLSOURCES="/sources"
|
||||||
|
|
||||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||||
|
|
||||||
[ -d file-${file_version} ] && rm -rf file-${file_version}
|
[ -d file-${file_version} ] && rm -rf file-${file_version}
|
||||||
|
|
||||||
@ -19,8 +19,10 @@ if [ $? -ne 0 ]; then
|
|||||||
myfail "Failed building file"
|
myfail "Failed building file"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "running file make check"
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||||
make check > ${GLSOURCES}/file.check 2>&1
|
echo "running file make check"
|
||||||
|
make check > ${GLSOURCES}/file.check.log 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
make install
|
make install
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
@ -4,7 +4,7 @@ source versions.sh
|
|||||||
|
|
||||||
GLSOURCES="/sources"
|
GLSOURCES="/sources"
|
||||||
|
|
||||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||||
|
|
||||||
[ -d readline-${readline_version} ] && rm -rf readline-${readline_version}
|
[ -d readline-${readline_version} ] && rm -rf readline-${readline_version}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ source versions.sh
|
|||||||
|
|
||||||
GLSOURCES="/sources"
|
GLSOURCES="/sources"
|
||||||
|
|
||||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||||
|
|
||||||
[ -d m4-${m4_version} ] && rm -rf m4-${m4_version}
|
[ -d m4-${m4_version} ] && rm -rf m4-${m4_version}
|
||||||
|
|
||||||
@ -19,8 +19,10 @@ if [ $? -ne 0 ]; then
|
|||||||
myfail "Failed building m4"
|
myfail "Failed building m4"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "running m4 make check"
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||||
make check > ${GLSOURCES}/m4.check 2>&1
|
echo "running m4 make check"
|
||||||
|
make check > ${GLSOURCES}/m4.check.log 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
make install
|
make install
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
@ -4,7 +4,7 @@ source versions.sh
|
|||||||
|
|
||||||
GLSOURCES="/sources"
|
GLSOURCES="/sources"
|
||||||
|
|
||||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||||
|
|
||||||
[ -d bc-${bc_version} ] && rm -rf bc-${bc_version}
|
[ -d bc-${bc_version} ] && rm -rf bc-${bc_version}
|
||||||
|
|
||||||
@ -19,8 +19,10 @@ if [ $? -ne 0 ]; then
|
|||||||
myfail "Failed building bc"
|
myfail "Failed building bc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "running bc make test"
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||||
make test > ${GLSOURCES}/bc.check 2>&1
|
echo "running bc make test"
|
||||||
|
make test > ${GLSOURCES}/bc.check.log 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
make install
|
make install
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
@ -4,7 +4,7 @@ source versions.sh
|
|||||||
|
|
||||||
GLSOURCES="/sources"
|
GLSOURCES="/sources"
|
||||||
|
|
||||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||||
|
|
||||||
[ -d flex-${flex_version} ] && rm -rf flex-${flex_version}
|
[ -d flex-${flex_version} ] && rm -rf flex-${flex_version}
|
||||||
|
|
||||||
@ -21,8 +21,10 @@ if [ $? -ne 0 ]; then
|
|||||||
myfail "Failed building flex"
|
myfail "Failed building flex"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "running flex make check"
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||||
make check > ${GLSOURCES}/flex.check 2>&1
|
echo "running flex make check"
|
||||||
|
make check > ${GLSOURCES}/flex.check.log 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
make install
|
make install
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
@ -4,7 +4,7 @@ source versions.sh
|
|||||||
|
|
||||||
GLSOURCES="/sources"
|
GLSOURCES="/sources"
|
||||||
|
|
||||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||||
|
|
||||||
[ -d tcl${tcl_version} ] && rm -rf tcl${tcl_version}
|
[ -d tcl${tcl_version} ] && rm -rf tcl${tcl_version}
|
||||||
|
|
||||||
@ -41,8 +41,10 @@ sed -e "s|$SRCDIR/unix/pkgs/itcl4.2.4|/usr/lib/itcl4.2.4|" \
|
|||||||
|
|
||||||
unset SRCDIR
|
unset SRCDIR
|
||||||
|
|
||||||
echo "running tcl make test"
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||||
make test > ${GLSOURCES}/tcl.check 2>&1
|
echo "running tcl make test"
|
||||||
|
make test > ${GLSOURCES}/tcl.check.log 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
make install
|
make install
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user