*
* \author Daniele Basile <asterix@develer.com>
*
+ * This module is automatically included so no need to include
+ * in test list.
+ * notest: arm
+ *
*/
#include <cpu/detect.h>
*
* \author Daniele Basile <asterix@develer.com>
*
+ * This module is automatically included so no need to include
+ * in test list.
+ * notest: arm
+ *
*/
#include <cpu/detect.h>
*
* \author Daniele Basile <asterix@develer.com>
*
+ * This module is automatically included so no need to include
+ * in test list.
+ * notest: arm
*/
#include <cpu/detect.h>
*
* \author Daniele Basile <asterix@develer.com>
*
+ * This module is automatically included so no need to include
+ * in test list.
+ * notest: arm
+ *
*/
#include <cpu/detect.h>
*
* \version $Id: proc.h 1646 2008-08-17 13:49:48Z bernie $
* \author Bernie Innocenti <bernie@codewiz.org>
+ *
+ * Still in development, disable nightly test for now
+ * notest: avr
+ * notest: arm
*/
#include "irq.h"
#Test directory, where are the test makefile
TEST_APP_DIR="app/test/"
-#Dir list for ARM, write with escape char for sed regrepx
-ARM_DRV="${BERTOS_DIR_RE}\\/cpu\\/arm\\/drv"
-ARM_DRV_C_EXCLUDE_LIST="ser_arm pwm_arm twi_arm stepper_arm"
-
if [ $# \< 1 ] ; then
printf "You must specify a cpu target!\n\n"
printf "EXAMPLE:\n $0 <cpu target>\n\n"
#kdebug must added to skip list because it is compiled two times and the linker fail.
CSRC=`echo $CSRC | sed -e "s/${BERTOS_DIR_RE}\\/drv\\/kdebug\\.c//g"`
-#Source to skip:
-
-if [ $1 = 'arm' ] ; then
- for i in $ARM_DRV_C_EXCLUDE_LIST ;
- do
- CSRC=`echo $CSRC | sed -e "s/${ARM_DRV}\\/$i\\.c//g"`
- done
-fi
-
-
-
printf "#This makefile was generate automatically.\n\n" > ${TEST_APP_DIR}/$1_src.mk
printf "${1}_CSRC = $CSRC\n\n" >> ${TEST_APP_DIR}/$1_src.mk
printf "${1}_ASRC = $ASRC\n\n" >> ${TEST_APP_DIR}/$1_src.mk
exit 1
fi
-
+CPU_TARGET=$1
#Create a list of source file whitout a cpu specific source
GEN_SRC=`find . \( -name \.svn -prune -o -path $CPU_DIR -prune -o -path $APP_DIR -prune -o -path $OS_DIR -prune -o -path $EMUL_DIR -prune \) -o -name *.${2} -print | xargs`
#Select c and asm sources for selected cpu target
-TRG_SRC=`find ${CPU_DIR}/${1} -name \.svn -prune -o -name *.${2} -print | xargs`
+TRG_SRC=`find ${CPU_DIR}/$CPU_TARGET -name \.svn -prune -o -name *.${2} -print | xargs`
#Generate a list of all source for each cpu
SRC_ALL=${GEN_SRC}" "${TRG_SRC}
+# Find the files that contain the string
+# NOTEST <cpu target> and put it in a list
+
+NOTEST="notest:"
+for src in $SRC_ALL ;
+do
+ grep "$NOTEST\s*$CPU_TARGET" $src 2>&1 > /dev/null
+ if [ $? = 0 ] ; then
+ EXCLUDE_LIST+=$src
+ fi
+done
+
+# Remove the exclude list files from the sources to be
+# compiled
+for src in $EXCLUDE_LIST ;
+do
+ SRC_ALL=`echo $SRC_ALL | sed -e "s;$src;;g"`
+done
printf "${SRC_ALL}"