mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-09 23:54:32 +00:00
cooja runtime arguments updated
This commit is contained in:
parent
24897fb71f
commit
8b01f0e3aa
@ -13,10 +13,19 @@ fi
|
|||||||
|
|
||||||
echo ">>>>>>> Starting test: $TEST <<<<<<<<"
|
echo ">>>>>>> Starting test: $TEST <<<<<<<<"
|
||||||
if [ $LOGFILE -eq 1 ]; then echo -n "[`date '+%F %T'`] $TEST: " >> $LOG; fi
|
if [ $LOGFILE -eq 1 ]; then echo -n "[`date '+%F %T'`] $TEST: " >> $LOG; fi
|
||||||
java -mx512m -jar ../dist/cooja.jar -nogui -test=$TEST
|
if [ -f "COOJA.log" ]; then
|
||||||
|
rm COOJA.log
|
||||||
|
fi
|
||||||
|
if [ -f "COOJA.testlog" ]; then
|
||||||
|
rm COOJA.testlog
|
||||||
|
fi
|
||||||
|
java -mx512m -jar ../dist/cooja.jar -nogui=$TEST.csc
|
||||||
if [ -f "COOJA.log" ]; then
|
if [ -f "COOJA.log" ]; then
|
||||||
mv COOJA.log $TEST.cooja_log
|
mv COOJA.log $TEST.cooja_log
|
||||||
fi
|
fi
|
||||||
|
if [ -f "COOJA.testlog" ]; then
|
||||||
|
mv COOJA.testlog $TEST.log
|
||||||
|
fi
|
||||||
|
|
||||||
OK=0
|
OK=0
|
||||||
if [ -f "$TEST.log" ]; then
|
if [ -f "$TEST.log" ]; then
|
||||||
@ -39,7 +48,7 @@ if [ $LOGFILE -eq 1 ]; then
|
|||||||
echo "-- NO TEST OUTPUT AVAILABLE ($TEST.log) --" >> $LOG
|
echo "-- NO TEST OUTPUT AVAILABLE ($TEST.log) --" >> $LOG
|
||||||
fi
|
fi
|
||||||
echo "-- COOJA OUTPUT (tail $TEST.cooja_log) --" >> $LOG
|
echo "-- COOJA OUTPUT (tail $TEST.cooja_log) --" >> $LOG
|
||||||
tail -5 $TEST.cooja_log >> $LOG
|
tail -10 $TEST.cooja_log >> $LOG
|
||||||
else
|
else
|
||||||
echo "OK" >> $LOG
|
echo "OK" >> $LOG
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user