conditional tests

This commit is contained in:
YellowJacketLinux 2024-10-08 11:37:48 -07:00
parent f090de0c74
commit 3d3ae35b34
11 changed files with 51 additions and 32 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 glibc-${glibc_version} ] && rm -rf glibc-${glibc_version}
@ -30,9 +30,10 @@ if [ $? -ne 0 ]; then
myfail "Failed building glibc"
fi
# temporarily disable
#echo "running glibc make check, could take awhile..."
#make check > ${GLSOURCES}/glibc.check.log 2>&1
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running glibc make check, could take awhile..."
make check > ${GLSOURCES}/glibc.check.log 2>&1
fi
touch /etc/ld.so.conf

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 zlib-${zlib_version} ] && rm -rf zlib-${zlib_version}
@ -20,8 +20,10 @@ if [ $? -ne 0 ]; then
myfail "Failed building zlib"
fi
echo "Running zlib make check."
make check > ${GLSOURCES}/zlib.check 2>&1
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "Running zlib make check."
make check > ${GLSOURCES}/zlib.check.log 2>&1
fi
make install

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 xz-${xz_version} ] && rm -rf xz-${xz_version}
@ -21,8 +21,10 @@ if [ $? -ne 0 ]; then
myfail "Failed building xz"
fi
echo "running xz make check"
make check > ${GLSOURCES}/xz.check 2>&1
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running xz make check"
make check > ${GLSOURCES}/xz.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 lz4-${lz4_version} ] && rm -rf lz4-${lz4_version}
@ -17,8 +17,10 @@ if [ $? -ne 0 ]; then
myfail "Failed building lz4"
fi
echo "running lz4 make check"
make -j1 check > ${GLSOURCES}/lz4.check 2>&1
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running lz4 make check"
make -j1 check > ${GLSOURCES}/lz4.check.log 2>&1
fi
make BUILD_STATIC=no PREFIX=/usr 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 zstd-${zstd_version} ] && rm -rf zstd-${zstd_version}
@ -17,8 +17,10 @@ if [ $? -ne 0 ]; then
myfail "Failed building zstd"
fi
echo "running zstd make check"
make check > ${GLSOURCES}/zstd.check 2>&1
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running zstd make check"
make check > ${GLSOURCES}/zstd.check.log 2>&1
fi
make prefix=/usr 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 file-${file_version} ] && rm -rf file-${file_version}
@ -19,8 +19,10 @@ if [ $? -ne 0 ]; then
myfail "Failed building file"
fi
echo "running file make check"
make check > ${GLSOURCES}/file.check 2>&1
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running file make check"
make check > ${GLSOURCES}/file.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 readline-${readline_version} ] && rm -rf readline-${readline_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 m4-${m4_version} ] && rm -rf m4-${m4_version}
@ -19,8 +19,10 @@ if [ $? -ne 0 ]; then
myfail "Failed building m4"
fi
echo "running m4 make check"
make check > ${GLSOURCES}/m4.check 2>&1
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running m4 make check"
make check > ${GLSOURCES}/m4.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 bc-${bc_version} ] && rm -rf bc-${bc_version}
@ -19,8 +19,10 @@ if [ $? -ne 0 ]; then
myfail "Failed building bc"
fi
echo "running bc make test"
make test > ${GLSOURCES}/bc.check 2>&1
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running bc make test"
make test > ${GLSOURCES}/bc.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 flex-${flex_version} ] && rm -rf flex-${flex_version}
@ -21,8 +21,10 @@ if [ $? -ne 0 ]; then
myfail "Failed building flex"
fi
echo "running flex make check"
make check > ${GLSOURCES}/flex.check 2>&1
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running flex make check"
make check > ${GLSOURCES}/flex.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 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
echo "running tcl make test"
make test > ${GLSOURCES}/tcl.check 2>&1
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running tcl make test"
make test > ${GLSOURCES}/tcl.check.log 2>&1
fi
make install
if [ $? -ne 0 ]; then