Revision f7074f9e

View differences:

src/Tests/test.sh
41 41
      VIDEO=$OPTARG
42 42
      ;;
43 43
    V)	#TODO
44
      VALGRIND=1
44
      VALGRIND="valgrind --error-exitcode=1 --track-origins=yes  --leak-check=full "
45
      VALGRIND="valgrind --error-exitcode=1 --leak-check=full "
45 46
      ;;
46 47
    X)
47 48
      NUM_PEERS_X=$OPTARG
......
57 58
  esac
58 59
done
59 60

  
60
valgrind --error-exitcode=1 --track-origins=yes  --leak-check=full $CLIENT $SOURCE_OPTIONS 2> /dev/null &
61
$VALGRIND $CLIENT $SOURCE_OPTIONS 2> /dev/null &
61 62

  
62 63
sleep 2
63 64
((PEER_PORT_MAX=PEER_PORT_BASE + NUM_PEERS - 1))
64 65
for PORT in `seq $PEER_PORT_BASE 1 $PEER_PORT_MAX`; do
65
    valgrind --error-exitcode=1 $CLIENT $PEER_OPTIONS -P $PORT -i 127.0.0.1 -p $SOURCE_PORT 2>stderr.$PORT > stdout.$PORT &
66
    $VALGRIND $CLIENT $PEER_OPTIONS -P $PORT -i 127.0.0.1 -p $SOURCE_PORT 2>stderr.$PORT > stdout.$PORT &
66 67
done
67 68

  
68 69
((PEER_PORT_BASE = PEER_PORT_MAX + 1))

Also available in: Unified diff