mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-02-02 23:07:18 +08:00
conditional tests
This commit is contained in:
parent
3d3ae35b34
commit
8eb7eed94a
@ -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 expect${expect_version} ] && rm -rf expect${expect_version}
|
[ -d expect${expect_version} ] && rm -rf expect${expect_version}
|
||||||
|
|
||||||
@ -26,8 +26,10 @@ if [ $? -ne 0 ]; then
|
|||||||
myfail "Failed building expect"
|
myfail "Failed building expect"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "running expect make test"
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||||
make test > ${GLSOURCES}/expect.check 2>&1
|
echo "running expect make test"
|
||||||
|
make test > ${GLSOURCES}/expect.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 dejagnu-${dejagnu_version} ] && rm -rf dejagnu-${dejagnu_version}
|
[ -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 --html --no-split -o doc/dejagnu.html ../doc/dejagnu.texi
|
||||||
makeinfo --plaintext -o doc/dejagnu.txt ../doc/dejagnu.texi
|
makeinfo --plaintext -o doc/dejagnu.txt ../doc/dejagnu.texi
|
||||||
|
|
||||||
echo "running dejagnu make check"
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||||
make check > ${GLSOURCES}/dejagnu.check 2>&1
|
echo "running dejagnu make check"
|
||||||
|
make check > ${GLSOURCES}/dejagnu.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 pkgconf-${pkgconf_version} ] && rm -rf pkgconf-${pkgconf_version}
|
[ -d pkgconf-${pkgconf_version} ] && rm -rf pkgconf-${pkgconf_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 binutils-${binutils_version} ] && rm -rf binutils-${binutils_version}
|
[ -d binutils-${binutils_version} ] && rm -rf binutils-${binutils_version}
|
||||||
|
|
||||||
@ -31,9 +31,15 @@ if [ $? -ne 0 ]; then
|
|||||||
myfail "Failed building binutils"
|
myfail "Failed building binutils"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "running binutils make check"
|
# LFS book says not to skip under any circumstances and I agree but tests really
|
||||||
make -k check > ${GLSOURCES}/binutils.check 2>&1
|
# slow down development so I say when building final system, do not skip ANY
|
||||||
grep '^FAIL:' ${GLSOURCES}/binutils.check > ${GLSOURCES}/binutils.check.fail
|
# 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
|
make tooldir=/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 gmp-${gmp_version} ] && rm -rf gmp-${gmp_version}
|
[ -d gmp-${gmp_version} ] && rm -rf gmp-${gmp_version}
|
||||||
|
|
||||||
@ -27,9 +27,11 @@ if [ $? -ne 0 ]; then
|
|||||||
myfail "Failed building gmp html"
|
myfail "Failed building gmp html"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||||
echo "running gmp make check"
|
echo "running gmp make check"
|
||||||
make check > ${GLSOURCES}/gmp.check 2>&1
|
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
|
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 mpfr-${mpfr_version} ] && rm -rf mpfr-${mpfr_version}
|
[ -d mpfr-${mpfr_version} ] && rm -rf mpfr-${mpfr_version}
|
||||||
|
|
||||||
@ -26,8 +26,10 @@ if [ $? -ne 0 ]; then
|
|||||||
myfail "Failed building mpfr html"
|
myfail "Failed building mpfr html"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "running mpfr make check"
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||||
make check > ${GLSOURCES}/mpfr.check 2>&1
|
echo "running mpfr make check"
|
||||||
|
make check > ${GLSOURCES}/mpfr.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