ran every test twice

This commit is contained in:
fros4943 2008-09-18 10:22:25 +00:00
parent 46a83a2909
commit 0651d0200f

View File

@ -9,8 +9,6 @@ TEST=$1
LOG=$2 LOG=$2
echo ">>>>>>> Starting test: $TEST <<<<<<<<" echo ">>>>>>> Starting test: $TEST <<<<<<<<"
java -jar ../dist/cooja.jar -nogui -test=$TEST
java -jar ../dist/cooja.jar -nogui -test=$TEST java -jar ../dist/cooja.jar -nogui -test=$TEST
if [ -f "COOJA.log" ]; then if [ -f "COOJA.log" ]; then
mv COOJA.log $TEST.cooja_log mv COOJA.log $TEST.cooja_log
@ -24,8 +22,8 @@ if [ -f "$TEST.log" ]; then
if [ -f "$TEST.info" ]; then if [ -f "$TEST.info" ]; then
echo "--LOG INFO START ($TEST.info) --" >> $LOG echo "--LOG INFO START ($TEST.info) --" >> $LOG
cat $TEST.info >> $LOG cat $TEST.info >> $LOG
echo "--LOG INFO END --" >> $LOG
echo "" >> $LOG echo "" >> $LOG
echo "--LOG INFO END --" >> $LOG
else else
echo "-- NO TEST INFO AVAILABLE ($TEST.info) --" >> $LOG echo "-- NO TEST INFO AVAILABLE ($TEST.info) --" >> $LOG
fi fi
@ -39,9 +37,11 @@ else
if [ -f "$TEST.info" ]; then if [ -f "$TEST.info" ]; then
echo "--LOG INFO START ($TEST.info) --" >> $LOG echo "--LOG INFO START ($TEST.info) --" >> $LOG
cat $TEST.info >> $LOG cat $TEST.info >> $LOG
echo "-- TEST INFO END --" >> $LOG
echo "" >> $LOG echo "" >> $LOG
echo "-- TEST INFO END --" >> $LOG
else else
echo "-- NO TEST INFO AVAILABLE ($TEST.info) --" >> $LOG echo "-- NO TEST INFO AVAILABLE ($TEST.info) --" >> $LOG
fi fi
fi fi
echo "" >> $LOG