Merge branch 'qtopia-fixes' of git://git.busybox.net/~tpetazzoni/git/buildroot
[avatt.git] / scripts / testheader.inc
blob232e1e0a1e568741fe7300eb633eef4776229bdc
1 ARCH=`make -f scripts/test/Makefile ARCH`
2 DATE=`date +%Y%m%d`
3 LOGFILE=build-results-${DATE}-${ARCH}.log
4 function mk()
6         scripts/mkpkg $1 $2 "$3"                        | tee -a ${LOGFILE}
9 function        header()
11         echo "#!/bin/sh"                                | tee -a ${LOGFILE}
12         echo "source \"scripts/testheader.inc\""
13         
16 active=1
17 busybox=0
19 function        SKIP()
21         echo SKIP                                       | tee -a ${LOGFILE}
22         active=0
25 function        RESTART()
27         echo RESTART                                    | tee -a ${LOGFILE}
28         active=1
31 function        EXE()
33         printf  "EXE    "                               | tee -a ${LOGFILE}
34         if [ ${active} == 1 ] ; then
35                 $1 $2 $3 "$4"
36                 return 0;
37         else
38                 printf  "%-8s"  "$1"                    | tee -a ${LOGFILE}
39                 printf  "%-32s" "$2"                    | tee -a ${LOGFILE}
40                 printf  "%-16s" "$3"                    | tee -a ${LOGFILE}
41                 if [ "${4}X" != "X" ] ; then
42                         printf  "%-64s" "\"$4\""        | tee -a ${LOGFILE}
43                 fi
44                 echo                                    | tee -a ${LOGFILE}
45                 return 1;
46         fi
49 function        AVR()
51         printf  "AVR    "                               | tee -a ${LOGFILE}
52         if [ "${ARCH}X" == "avr32X" ] ; then
53                 echo "mk $2 UNSUPPORTED \"$4\" $5 $6"   | tee -a ${LOGFILE}
54                 return 1;
55         elif [ ${active} == 1 ] ; then
56                 $1 $2 "$3" "$4"
57                 return 0;
58         else
59                 printf  "%-8s"  "$1"                    | tee -a ${LOGFILE}
60                 printf  "%-32s" "$2"                    | tee -a ${LOGFILE}
61                 printf  "%-16s" "$3"                    | tee -a ${LOGFILE}
62                 if [ "${4}X" != "X" ] ; then
63                         printf  "%-64s" "\"$4\""        | tee -a ${LOGFILE}
64                 fi
65                 echo                                    | tee -a ${LOGFILE}
66                 return 1;
67         fi
71 function skip()
73         printf "skip    %-8s" "$1"                      | tee -a ${LOGFILE}
74         printf "%-32s" "$2"                             | tee -a ${LOGFILE}
75         if [   "$3X" == "OKX" ] ; then
76                 printf "%-16s"  "DISABLED"              | tee -a ${LOGFILE}
77                 if [ "${4}X" != "X" ] ; then
78                         printf  "%-64s" "\"$4\""        | tee -a ${LOGFILE}
79                 fi
80         elif [ "$3X" == "FAILX" ] ; then
81                 printf "%-16s"  "DISABLED"              | tee -a ${LOGFILE}
82                 if [ "${4}X" != "X" ] ; then
83                         printf  "%-64s" "\"$4\""        | tee -a ${LOGFILE}
84                 fi
85         elif [ "$3X" == "BROKENX" ] ; then
86                 printf "%-16s"  "DISABLED"              | tee -a ${LOGFILE}
87                 if [ "${4}X" != "X" ] ; then
88                         printf  "%-64s" "\"$4\""        | tee -a ${LOGFILE}
89                 fi
90         elif [ "$3X" == "DISABLEDX" ] ; then
91                 printf "%-16s"  "DISABLED"              | tee -a ${LOGFILE}
92                 if [ "${4}X" != "X" ] ; then
93                         printf  "%-64s" "\"$4\""        | tee -a ${LOGFILE}
94                 fi
95         else
96                 printf "%-16s"  "DISABLED"              | tee -a ${LOGFILE}
97                 if [ "${4}X" != "X" ] ; then
98                         printf  "%-64s" "\"$4\""        | tee -a ${LOGFILE}
99                 fi
100         fi
101         echo                                            | tee -a ${LOGFILE}
104 function bb()
106         printf  "%-8s"  "bb"                            | tee -a ${LOGFILE}
107         if [ ${busybox} == 1 ] ; then
108                 printf "%-8s"   "$1"                    | tee -a ${LOGFILE}
109                 $1 $2 $3 $4 $5 $6
110                 return 0;
111         else
112                 echo "$1        $2 $3 $4 $5 $6"         | tee -a ${LOGFILE}
113                 return 1;
114         fi
117 function        comment()
119         echo    "comment        $1"                     | tee -a ${LOGFILE}
122 # Enable HASERL
123 sed -i s/.*BR2_PACKAGE_HASERL.*// .config
124 echo "# BR2_PACKAGE_HASERL_VERSION_0_8_X is not set" >> .config
125 echo "BR2_PACKAGE_HASERL_VERSION_0_9_X=y" >> .config
126 echo "BR2_PACKAGE_HASERL_VERSION=\"0.9.25\"" >> .config
127 echo "BR2_PACKAGE_HASERL=y" >> .config
128 # Enable SSL
129 sed -i s/.*BR2_PACKAGE_OPENSSL.*// .config
130 echo "BR2_PACKAGE_OPENSSL=y" >> .config
131 # Enable socat
132 sed -i s/.*BR2_PACKAGE_SOCAT.*// .config
133 echo "BR2_PACKAGE_SOCAT=y" >> .config
134 echo "BR2_PACKAGE_SOCAT_PREDEF_CRDLY_SHIFT=\"9\"" >> .config
135 echo "BR2_PACKAGE_SOCAT_PREDEF_TABDLY_SHIFT=\"11\"" >> .config
136 echo "BR2_PACKAGE_SOCAT_PREDEF_CSIZE_SHIFT=\"4\"" >> .config
137 # Enable Freetype
138 sed -i s/.*BR2_PACKAGE_FREETYPE.*// .config
139 echo "BR2_PACKAGE_FREETYPE=y" >> .config
140 sed -i s/.*BR2_FREETYPE_VERSION.*// .config
141 echo "# BR2_FREETYPE_VERSION_2_2_1 is not set" >> .config
142 echo "BR2_FREETYPE_VERSION_2_3_7=y" >> .config
143 echo "BR2_FREETYPE_VERSION=\"2.3.7\"" >> .config