svn commit: trunk/uClibc/extra/scripts

aldot at uclibc.org aldot at uclibc.org
Tue Sep 16 16:07:35 UTC 2008


Author: aldot
Date: 2008-09-16 09:07:35 -0700 (Tue, 16 Sep 2008)
New Revision: 23408

Log:
- add script to generate lots of failing (random)configs
  rm -f STOP ; ARCH=i386 nohup extra/scripts/randconfig.sh &
  if you want to stop it, touch STOP


Added:
   trunk/uClibc/extra/scripts/randconfig.sh


Changeset:
Added: trunk/uClibc/extra/scripts/randconfig.sh
===================================================================
--- trunk/uClibc/extra/scripts/randconfig.sh	                        (rev 0)
+++ trunk/uClibc/extra/scripts/randconfig.sh	2008-09-16 16:07:35 UTC (rev 23408)
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+test "x$ARCH" = "x" && ARCH=`uname -m`
+KCONFIG_ALLCONFIG=.config.allconfig
+(echo TARGET_$ARCH=y
+ echo '# UCLIBC_PREGENERATED_LOCALE_DATA is not set'
+ echo '# UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA is not set'
+) > $KCONFIG_ALLCONFIG
+export KCONFIG_ALLCONFIG
+
+i=0
+while test ! -f STOP
+do
+  make $* randconfig > /dev/null
+  make $* silentoldconfig > /dev/null
+  if (make $*) 2>&1 >& mk.log
+  then
+    :
+  else
+    i=`expr $i + 1`
+    num=`printf "%.5d" $i`
+    mv .config FAILED.$num.config
+    mv mk.log FAILED.$num.log
+  fi
+  make distclean > /dev/null || true
+done


Property changes on: trunk/uClibc/extra/scripts/randconfig.sh
___________________________________________________________________
Name: svn:executable
   + *




More information about the uClibc-cvs mailing list