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
8eb7eed94a
commit
a300a6545e
@ -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 cracklib-${cracklib_version} ] && rm -rf cracklib-${cracklib_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 bzip2-${bzip2_version} ] && rm -rf bzip2-${bzip2_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 mpc-${mpc_version} ] && rm -rf mpc-${mpc_version}
|
||||
|
||||
@ -25,8 +25,10 @@ if [ $? -ne 0 ]; then
|
||||
myfail "Failed building mpc html"
|
||||
fi
|
||||
|
||||
echo "running mpc make check"
|
||||
make check > ${GLSOURCES}/mpc.check 2>&1
|
||||
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||
echo "running mpc make check"
|
||||
make check > ${GLSOURCES}/mpc.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 attr-${attr_version} ] && rm -rf attr-${attr_version}
|
||||
|
||||
@ -22,8 +22,10 @@ if [ $? -ne 0 ]; then
|
||||
myfail "Failed building attr"
|
||||
fi
|
||||
|
||||
echo "running attr make check"
|
||||
make check > ${GLSOURCES}/attr.check 2>&1
|
||||
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||
echo "running attr make check"
|
||||
make check > ${GLSOURCES}/attr.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 acl-${acl_version} ] && rm -rf acl-${acl_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 libcap-${libcap_version} ] && rm -rf libcap-${libcap_version}
|
||||
|
||||
@ -19,8 +19,10 @@ if [ $? -ne 0 ]; then
|
||||
myfail "Failed building libcap"
|
||||
fi
|
||||
|
||||
echo "running libcap make test"
|
||||
make test > ${GLSOURCES}/libcap.check 2>&1
|
||||
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||
echo "running libcap make test"
|
||||
make test > ${GLSOURCES}/libcap.check.log 2>&1
|
||||
fi
|
||||
|
||||
make prefix=/usr lib=lib 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 libxcrypt-${libxcrypt_version} ] && rm -rf libxcrypt-${libxcrypt_version}
|
||||
|
||||
@ -23,8 +23,10 @@ if [ $? -ne 0 ]; then
|
||||
myfail "Failed building libxcrypt"
|
||||
fi
|
||||
|
||||
echo "running libxcrypt make check"
|
||||
make check > ${GLSOURCES}/libxcrypt.check 2>&1
|
||||
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||
echo "running libxcrypt make check"
|
||||
make check > ${GLSOURCES}/libxcrypt.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 shadow-${shadow_version} ] && rm -rf shadow-${shadow_version}
|
||||
|
||||
|
@ -45,11 +45,14 @@ sed -e 's/300000/(1|300000)/' -i ../libgomp/testsuite/libgomp.c-c++-common/p
|
||||
sed -e 's/{ target nonpic } //' \
|
||||
-e '/GOTPCREL/d' -i ../gcc/testsuite/gcc.target/i386/fentryname3.c
|
||||
|
||||
# takes really REALLY long time...
|
||||
# Uncomment when patient
|
||||
#echo "runninh gcc make check"
|
||||
#chown -R tester .
|
||||
#su tester -c "PATH=$PATH make -k check"
|
||||
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||
echo "running gcc make check. This takes a VERY long time."
|
||||
echo "You can watch progress in another console via:"
|
||||
echo " tail -f ${GLSOURCES}/gcc-${gcc_version}/build/gcc.check.log"
|
||||
chown -R tester .
|
||||
su tester -c "PATH=$PATH make -k check > gcc.check.log"
|
||||
mv gcc.check.log ${GLSOURCES}/
|
||||
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 ncurses-${ncurses_version} ] && rm -rf ncurses-${ncurses_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 sed-${sed_version} ] && rm -rf sed-${sed_version}
|
||||
|
||||
@ -23,6 +23,12 @@ if [ $? -ne 0 ]; then
|
||||
myfail "Failed building sed html"
|
||||
fi
|
||||
|
||||
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||
chown -R tester .
|
||||
su tester -c "PATH=$PATH make check > sed.check.log"
|
||||
mv sed.check.log ${GLSOURCES}/
|
||||
fi
|
||||
|
||||
make install
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing sed"
|
||||
|
@ -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 psmisc-${psmisc_version} ] && rm -rf psmisc-${psmisc_version}
|
||||
|
||||
@ -19,8 +19,10 @@ if [ $? -ne 0 ]; then
|
||||
myfail "Failed building psmisc"
|
||||
fi
|
||||
|
||||
echo "running psmisc make check"
|
||||
make check > ${GLSOURCES}/psmisc.check 2>&1
|
||||
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||
echo "running psmisc make check"
|
||||
make check > ${GLSOURCES}/psmisc.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 gettext-${gettext_version} ] && rm -rf gettext-${gettext_version}
|
||||
|
||||
@ -21,8 +21,10 @@ if [ $? -ne 0 ]; then
|
||||
myfail "Failed building gettext"
|
||||
fi
|
||||
|
||||
echo "running gettext make check"
|
||||
make check > ${GLSOURCES}/gettext.check 2>&1
|
||||
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||
echo "running gettext make check"
|
||||
make check > ${GLSOURCES}/gettext.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 bison-${bison_version} ] && rm -rf bison-${bison_version}
|
||||
|
||||
@ -20,8 +20,10 @@ if [ $? -ne 0 ]; then
|
||||
myfail "Failed building bison"
|
||||
fi
|
||||
|
||||
echo "running bison make check"
|
||||
make check > ${GLSOURCES}/bison.check 2>&1
|
||||
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||
echo "running bison make check"
|
||||
make check > ${GLSOURCES}/bison.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 grep-${grep_version} ] && rm -rf grep-${grep_version}
|
||||
|
||||
@ -21,8 +21,10 @@ if [ $? -ne 0 ]; then
|
||||
myfail "Failed building grep"
|
||||
fi
|
||||
|
||||
echo "running grep make check"
|
||||
make check > ${GLSOURCES}/grep.check 2>&1
|
||||
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
||||
echo "running grep make check"
|
||||
make check > ${GLSOURCES}/grep.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 bash-${bash_version} ] && rm -rf bash-${bash_version}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user