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
3d3ae35b34
commit
8eb7eed94a
@ -4,7 +4,7 @@ source versions.sh
|
||||
|
||||
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 expect${expect_version} ] && rm -rf expect${expect_version}
|
||||
|
||||
@ -26,8 +26,10 @@ if [ $? -ne 0 ]; then
|
||||
myfail "Failed building expect"
|
||||
fi
|
||||
|
||||
echo "running expect make test"
|
||||
make test > ${GLSOURCES}/expect.check 2>&1
|
||||
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||
echo "running expect make test"
|
||||
make test > ${GLSOURCES}/expect.check.log 2>&1
|
||||
fi
|
||||
|
||||
make install
|
||||
if [ $? -ne 0 ]; then
|
||||
|
@ -4,7 +4,7 @@ source versions.sh
|
||||
|
||||
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 dejagnu-${dejagnu_version} ] && rm -rf dejagnu-${dejagnu_version}
|
||||
|
||||
@ -19,8 +19,10 @@ mkdir build && cd build
|
||||
makeinfo --html --no-split -o doc/dejagnu.html ../doc/dejagnu.texi
|
||||
makeinfo --plaintext -o doc/dejagnu.txt ../doc/dejagnu.texi
|
||||
|
||||
echo "running dejagnu make check"
|
||||
make check > ${GLSOURCES}/dejagnu.check 2>&1
|
||||
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||
echo "running dejagnu make check"
|
||||
make check > ${GLSOURCES}/dejagnu.check.log 2>&1
|
||||
fi
|
||||
|
||||
make install
|
||||
if [ $? -ne 0 ]; then
|
||||
|
@ -4,7 +4,7 @@ source versions.sh
|
||||
|
||||
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 pkgconf-${pkgconf_version} ] && rm -rf pkgconf-${pkgconf_version}
|
||||
|
||||
|
@ -4,7 +4,7 @@ source versions.sh
|
||||
|
||||
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 binutils-${binutils_version} ] && rm -rf binutils-${binutils_version}
|
||||
|
||||
@ -31,9 +31,15 @@ if [ $? -ne 0 ]; then
|
||||
myfail "Failed building binutils"
|
||||
fi
|
||||
|
||||
echo "running binutils make check"
|
||||
make -k check > ${GLSOURCES}/binutils.check 2>&1
|
||||
grep '^FAIL:' ${GLSOURCES}/binutils.check > ${GLSOURCES}/binutils.check.fail
|
||||
# LFS book says not to skip under any circumstances and I agree but tests really
|
||||
# slow down development so I say when building final system, do not skip ANY
|
||||
# of the tests but okay to skip when making USB boot thumb drive to do the
|
||||
# final install from
|
||||
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||
echo "running binutils make check"
|
||||
make -k check > ${GLSOURCES}/binutils.check.log 2>&1
|
||||
grep '^FAIL:' ${GLSOURCES}/binutils.check.log > ${GLSOURCES}/binutils.check.fail.log
|
||||
fi
|
||||
|
||||
make tooldir=/usr install
|
||||
if [ $? -ne 0 ]; then
|
||||
|
@ -4,7 +4,7 @@ source versions.sh
|
||||
|
||||
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 gmp-${gmp_version} ] && rm -rf gmp-${gmp_version}
|
||||
|
||||
@ -27,9 +27,11 @@ if [ $? -ne 0 ]; then
|
||||
myfail "Failed building gmp html"
|
||||
fi
|
||||
|
||||
|
||||
echo "running gmp make check"
|
||||
make check > ${GLSOURCES}/gmp.check 2>&1
|
||||
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||
echo "running gmp make check"
|
||||
make check > ${GLSOURCES}/gmp.check.log 2>&1
|
||||
awk '/# PASS:/{total+=$3} ; END{print total}' ${GLSOURCES}/gmp.check.log > ${GLSOURCES}/gmp.check.pass.log
|
||||
fi
|
||||
|
||||
make install
|
||||
if [ $? -ne 0 ]; then
|
||||
|
@ -4,7 +4,7 @@ source versions.sh
|
||||
|
||||
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 mpfr-${mpfr_version} ] && rm -rf mpfr-${mpfr_version}
|
||||
|
||||
@ -26,8 +26,10 @@ if [ $? -ne 0 ]; then
|
||||
myfail "Failed building mpfr html"
|
||||
fi
|
||||
|
||||
echo "running mpfr make check"
|
||||
make check > ${GLSOURCES}/mpfr.check 2>&1
|
||||
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||
echo "running mpfr make check"
|
||||
make check > ${GLSOURCES}/mpfr.check.log 2>&1
|
||||
fi
|
||||
|
||||
make install
|
||||
if [ $? -ne 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user