3 # Copyright (c) 2012-2014. The SimGrid Team.
6 # This program is free software; you can redistribute it and/or modify it
7 # under the terms of the license (GNU LGPL) which comes with this package.
12 my @argv = ("valgrind");
15 while (defined(my $arg = shift)) {
16 #print "arg($count)$arg\n";
17 if ($arg =~ m!/smpirun$!) {
18 @argv = ( $arg, "-wrapper", "@argv" );
19 } elsif ($arg eq "--cd") {
30 #print "COMMAND : $bin $option $cd $path\n";
32 #print "valgrind --trace-children=yes --leak-check=full --show-reachable=yes --track-origins=yes --read-var-info=no $bin $option\n";