summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-22 23:05:49 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-22 23:05:49 +0000
commit06b99ea3039df0c1b27bdf2fa10bbdcd4d9e03be (patch)
tree04cbc56f00bf835ed7089d2c09692fe572d89399 /scripts
parent7b2ec6107421bf7de6ae80c787d8492ea8beed41 (diff)
Add help script for testing
Diffstat (limited to 'scripts')
-rw-r--r--scripts/testheader.inc111
1 files changed, 111 insertions, 0 deletions
diff --git a/scripts/testheader.inc b/scripts/testheader.inc
new file mode 100644
index 000000000..808ccfd9c
--- /dev/null
+++ b/scripts/testheader.inc
@@ -0,0 +1,111 @@
+alias mk="scripts/mkpkg"
+
+function header()
+{
+ echo "#!/bin/sh"
+ echo "source \"scripts/testheader.inc\""
+
+}
+
+active=1
+busybox=0
+
+function SKIP()
+{
+ echo SKIP
+ active=0
+}
+
+function RESTART()
+{
+ echo RESTART
+ active=1
+}
+
+function EXE()
+{
+ printf "EXE "
+ if [ ${active} == 1 ] ; then
+ printf "$1 "
+ $1 $2 $3 $4 $5 $6
+ return 0;
+ else
+ echo "$1 $2 $3 $4 $5 $6"
+ return 1;
+ fi
+}
+
+function AVR()
+{
+ printf "AVR "
+ if [ "${ARCH}X" == "avr32X" ] ; then
+ echo "mk $2 UNSUPPORTED \"$4\" $5 $6"
+ return 1;
+ elif [ ${active} == 1 ] ; then
+ printf "$1 "
+ $1 $2 $3 $4 $5 $6
+ return 0;
+ else
+ echo "$1 $2 $3 $4 $5 $6"
+ return 1;
+ fi
+}
+
+
+function skip()
+{
+ printf "skip %-31s" "$1"
+ if [ "$2X" == "OKX" ] ; then
+ echo "DISABLED $3 $4"
+ elif [ "$2X" == "FAILX" ] ; then
+ echo "DISABLED $3 $4"
+ elif [ "$2X" == "BROKENX" ] ; then
+ echo "DISABLED $3 $4"
+ elif [ "$2X" == "DISABLEDX" ] ; then
+ echo "DISABLED \"$3 $4\""
+ else
+ echo "DISABLED \"$2 $3 $4\""
+ fi
+}
+
+function bb()
+{
+ printf "bb "
+ if [ ${busybox} == 1 ] ; then
+ printf "$1 "
+ $1 $2 $3 $4 $5 $6
+ return 0;
+ else
+ echo "$1 $2 $3 $4 $5 $6"
+ return 1;
+ fi
+}
+
+function comment()
+{
+ echo "comment $1"
+}
+
+# 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
+