conditional tests

This commit is contained in:
YellowJacketLinux 2024-10-08 12:43:22 -07:00
parent 8eb7eed94a
commit a300a6545e
16 changed files with 61 additions and 36 deletions

View File

@ -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}

View File

@ -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}

View File

@ -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
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running mpc make check"
make check > ${GLSOURCES}/mpc.check 2>&1
make check > ${GLSOURCES}/mpc.check.log 2>&1
fi
make install
if [ $? -ne 0 ]; then

View File

@ -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
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running attr make check"
make check > ${GLSOURCES}/attr.check 2>&1
make check > ${GLSOURCES}/attr.check.log 2>&1
fi
make install
if [ $? -ne 0 ]; then

View File

@ -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}

View File

@ -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
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running libcap make test"
make test > ${GLSOURCES}/libcap.check 2>&1
make test > ${GLSOURCES}/libcap.check.log 2>&1
fi
make prefix=/usr lib=lib install
if [ $? -ne 0 ]; then

View File

@ -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
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running libxcrypt make check"
make check > ${GLSOURCES}/libxcrypt.check 2>&1
make check > ${GLSOURCES}/libxcrypt.check.log 2>&1
fi
make install
if [ $? -ne 0 ]; then

View File

@ -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}

View File

@ -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

View File

@ -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}

View File

@ -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"

View File

@ -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
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running psmisc make check"
make check > ${GLSOURCES}/psmisc.check 2>&1
make check > ${GLSOURCES}/psmisc.check.log 2>&1
fi
make install
if [ $? -ne 0 ]; then

View File

@ -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
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running gettext make check"
make check > ${GLSOURCES}/gettext.check 2>&1
make check > ${GLSOURCES}/gettext.check.log 2>&1
fi
make install
if [ $? -ne 0 ]; then

View File

@ -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
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running bison make check"
make check > ${GLSOURCES}/bison.check 2>&1
make check > ${GLSOURCES}/bison.check.log 2>&1
fi
make install
if [ $? -ne 0 ]; then

View File

@ -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
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running grep make check"
make check > ${GLSOURCES}/grep.check 2>&1
make check > ${GLSOURCES}/grep.check.log 2>&1
fi
make install
if [ $? -ne 0 ]; then

View File

@ -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}