6 while($count!=$#ARGV+1)
8 print "arg($count)$ARGV[$count]\n";
9 if($ARGV[$count] eq "--cd"){
10 print "cd $ARGV[$count+1]\n";
11 chdir ($ARGV[$count+1]);
14 elsif($ARGV[$count] eq "--valgrind") {
15 print "valgrind_path $ARGV[$count+1]\n";
16 $val_path = $ARGV[$count+1];
20 $arg="$arg $ARGV[$count]";
25 #print "COMMAND : $bin $option $cd $path\n";
27 #print "valgrind --trace-children=yes --leak-check=full --show-reachable=yes --track-origins=yes --read-var-info=no $bin $option\n";
28 print "valgrind $arg\n\n";
29 system "valgrind $arg";