projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add timer support for ATmega1281 (only for ther out on copare 0/2).
[bertos.git]
/
test
/
nightly_test.sh
diff --git
a/test/nightly_test.sh
b/test/nightly_test.sh
index fcdb23efb0bdfa5bbd57c8d63346b810920f5439..1017089ec79e3c91cd6fd6f7fb2502ced74b2d6d 100755
(executable)
--- a/
test/nightly_test.sh
+++ b/
test/nightly_test.sh
@@
-33,12
+33,15
@@
#Makefile test directory
MAKEFILE_TEST_DIR="."
TEST_DIR="test"
#Makefile test directory
MAKEFILE_TEST_DIR="."
TEST_DIR="test"
+BERTOS_DIR="bertos/"
+BERTOS_DIR_BAK="bertos.saved"
#Copy BeRTOS sources
#Copy BeRTOS sources
-cp -a bertos/ bertos.saved/
+printf "Starting nightlytest..\n"
+cp -R $BERTOS_DIR $BERTOS_DIR_BAK || exit 1
#Strip away TODOs and FIXME
#Strip away TODOs and FIXME
-find
bertos/ -name "*.[ch]"|xargs perl -p -i -e "s/^\s*#warning\s*(TODO|FIXME).*//g;"
+find
$BERTOS_DIR -name "*.[ch]" | xargs perl -p -i -e 's/^\s*#warning\s*(TODO|FIXME).*//g;'
#Cpu target that we want to test
#Cpu target that we want to test
@@
-46,7
+49,7
@@
TRG="avr arm"
for i in $TRG ;
do
for i in $TRG ;
do
-
${TEST_DIR}/gen_mk_src.sh $i
+ ${TEST_DIR}/gen_mk_src.sh $i
done
#Clean and launch make on all
done
#Clean and launch make on all
@@
-54,5
+57,14
@@
make -f ${MAKEFILE_TEST_DIR}/Makefile.test clean
make -f ${MAKEFILE_TEST_DIR}/Makefile.test
#Restore original sources
make -f ${MAKEFILE_TEST_DIR}/Makefile.test
#Restore original sources
-rm -rf bertos/
-mv bertos.saved/ bertos/
+if [ -d $BERTOS_DIR_BAK ] ; then
+ printf "Exiting from nightly..\n"
+ rm -rf $BERTOS_DIR
+ mv $BERTOS_DIR_BAK $BERTOS_DIR
+else
+ printf "Unable to restore backup copy\n"
+ exit 1
+fi
+
+
+