kumquat-buildroot/scripts/testheader.inc

145 lines
3.4 KiB
PHP
Raw Normal View History

2009-01-29 10:36:35 +01:00
ARCH=`make -f scripts/test/Makefile ARCH`
DATE=`date +%Y%m%d`
LOGFILE=build-results-${DATE}-${ARCH}.log
function mk()
{
scripts/mkpkg $1 $2 "$3" | tee -a ${LOGFILE}
}
2009-01-23 00:05:49 +01:00
function header()
{
echo "#!/bin/sh" | tee -a ${LOGFILE}
2009-01-23 00:05:49 +01:00
echo "source \"scripts/testheader.inc\""
}
active=1
busybox=0
function SKIP()
{
echo SKIP | tee -a ${LOGFILE}
2009-01-23 00:05:49 +01:00
active=0
}
function RESTART()
{
echo RESTART | tee -a ${LOGFILE}
2009-01-23 00:05:49 +01:00
active=1
}
function EXE()
{
printf "EXE " | tee -a ${LOGFILE}
2009-01-23 00:05:49 +01:00
if [ ${active} == 1 ] ; then
$1 $2 $3 "$4"
2009-01-23 00:05:49 +01:00
return 0;
else
printf "%-8s" "$1" | tee -a ${LOGFILE}
printf "%-32s" "$2" | tee -a ${LOGFILE}
printf "%-16s" "$3" | tee -a ${LOGFILE}
if [ "${4}X" != "X" ] ; then
printf "%-64s" "\"$4\"" | tee -a ${LOGFILE}
fi
echo | tee -a ${LOGFILE}
2009-01-23 00:05:49 +01:00
return 1;
fi
}
function AVR()
{
printf "AVR " | tee -a ${LOGFILE}
2009-01-23 00:05:49 +01:00
if [ "${ARCH}X" == "avr32X" ] ; then
echo "mk $2 UNSUPPORTED \"$4\" $5 $6" | tee -a ${LOGFILE}
2009-01-23 00:05:49 +01:00
return 1;
elif [ ${active} == 1 ] ; then
$1 $2 "$3" "$4"
2009-01-23 00:05:49 +01:00
return 0;
else
printf "%-8s" "$1" | tee -a ${LOGFILE}
printf "%-32s" "$2" | tee -a ${LOGFILE}
printf "%-16s" "$3" | tee -a ${LOGFILE}
if [ "${4}X" != "X" ] ; then
printf "%-64s" "\"$4\"" | tee -a ${LOGFILE}
fi
echo | tee -a ${LOGFILE}
2009-01-23 00:05:49 +01:00
return 1;
fi
}
function skip()
{
printf "skip %-8s" "$1" | tee -a ${LOGFILE}
printf "%-32s" "$2" | tee -a ${LOGFILE}
if [ "$3X" == "OKX" ] ; then
printf "%-16s" "DISABLED" | tee -a ${LOGFILE}
if [ "${4}X" != "X" ] ; then
printf "%-64s" "\"$4\"" | tee -a ${LOGFILE}
fi
elif [ "$3X" == "FAILX" ] ; then
printf "%-16s" "DISABLED" | tee -a ${LOGFILE}
if [ "${4}X" != "X" ] ; then
printf "%-64s" "\"$4\"" | tee -a ${LOGFILE}
fi
elif [ "$3X" == "BROKENX" ] ; then
printf "%-16s" "DISABLED" | tee -a ${LOGFILE}
if [ "${4}X" != "X" ] ; then
printf "%-64s" "\"$4\"" | tee -a ${LOGFILE}
fi
elif [ "$3X" == "DISABLEDX" ] ; then
printf "%-16s" "DISABLED" | tee -a ${LOGFILE}
if [ "${4}X" != "X" ] ; then
printf "%-64s" "\"$4\"" | tee -a ${LOGFILE}
fi
2009-01-23 00:05:49 +01:00
else
printf "%-16s" "DISABLED" | tee -a ${LOGFILE}
if [ "${4}X" != "X" ] ; then
printf "%-64s" "\"$4\"" | tee -a ${LOGFILE}
fi
2009-01-23 00:05:49 +01:00
fi
echo | tee -a ${LOGFILE}
2009-01-23 00:05:49 +01:00
}
function bb()
{
printf "%-8s" "bb" | tee -a ${LOGFILE}
2009-01-23 00:05:49 +01:00
if [ ${busybox} == 1 ] ; then
printf "%-8s" "$1" | tee -a ${LOGFILE}
2009-01-23 00:05:49 +01:00
$1 $2 $3 $4 $5 $6
return 0;
else
echo "$1 $2 $3 $4 $5 $6" | tee -a ${LOGFILE}
2009-01-23 00:05:49 +01:00
return 1;
fi
}
function comment()
{
echo "comment $1" | tee -a ${LOGFILE}
2009-01-23 00:05:49 +01:00
}
# Enable HASERL
sed -i s/.*BR2_PACKAGE_HASERL.*// .config
echo "# BR2_PACKAGE_HASERL_VERSION_0_8_X is not set" >> .config
echo "BR2_PACKAGE_HASERL_VERSION_0_9_X=y" >> .config
echo "BR2_PACKAGE_HASERL_VERSION=\"0.9.25\"" >> .config
echo "BR2_PACKAGE_HASERL=y" >> .config
# Enable SSL
sed -i s/.*BR2_PACKAGE_OPENSSL.*// .config
echo "BR2_PACKAGE_OPENSSL=y" >> .config
# Enable socat
sed -i s/.*BR2_PACKAGE_SOCAT.*// .config
echo "BR2_PACKAGE_SOCAT=y" >> .config
echo "BR2_PACKAGE_SOCAT_PREDEF_CRDLY_SHIFT=\"9\"" >> .config
echo "BR2_PACKAGE_SOCAT_PREDEF_TABDLY_SHIFT=\"11\"" >> .config
echo "BR2_PACKAGE_SOCAT_PREDEF_CSIZE_SHIFT=\"4\"" >> .config
# Enable Freetype
sed -i s/.*BR2_PACKAGE_FREETYPE.*// .config
echo "BR2_PACKAGE_FREETYPE=y" >> .config
sed -i s/.*BR2_FREETYPE_VERSION.*// .config
echo "# BR2_FREETYPE_VERSION_2_2_1 is not set" >> .config
echo "BR2_FREETYPE_VERSION_2_3_7=y" >> .config
echo "BR2_FREETYPE_VERSION=\"2.3.7\"" >> .config