Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add full path when generating memcheck tests.
[simgrid.git] / buildtools / Cmake / generate_memcheck_tests.pl
index c4b6db6..0e066e4 100755 (executable)
@@ -57,6 +57,10 @@ while(defined($line=<MAKETEST>)) {
                        $command =~ s/ \$ARGS//g;
                        $command =~ s/ \$@ //g; 
                        $command =~ s/..\/..\/bin\/smpirun/\${CMAKE_BINARY_DIR\}\/bin\/smpirun/g;
+                        if($command =~ /^[^\/\$\s]+\//) {
+                            $command = $path."/".$command;
+                            $command =~ s/\/(.?\/)+/\//g;
+                        }
                        print "ADD_TEST(memcheck-$name_test-$count $command --cd $path\/)\n";
                        #push @test_list, "memcheck-$name_test-$count";
                        $count++;