X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/620666cb593cbba6f9de6921982ad017f2cb7939..aff60c1091a2d608dc5232193afc153b0d07143e:/buildtools/Cmake/generate_memcheck_tests.pl diff --git a/buildtools/Cmake/generate_memcheck_tests.pl b/buildtools/Cmake/generate_memcheck_tests.pl index 5a199bf89e..2a1a48a4dd 100755 --- a/buildtools/Cmake/generate_memcheck_tests.pl +++ b/buildtools/Cmake/generate_memcheck_tests.pl @@ -55,7 +55,7 @@ while(defined($line=)) { $path=($1); $path=~ s/\"//g; - $path =~ s/\$\{CMAKE_BINARY_DIR\}/$proj_dir/g; +# $path =~ s/\$\{CMAKE_BINARY_DIR\}/$proj_dir/g; $path =~ s/\$\{CMAKE_HOME_DIRECTORY\}/$proj_dir/g; } if($line =~ /--setenv\s*\t*(\S*)\=(\S*)/) @@ -75,8 +75,7 @@ while(defined($line=)) if($line =~ /([\S]+)[)]$/) { $tesh_file =($1); - $tesh_file =~ s/\$\{CMAKE_BINARY_DIR\}/$proj_dir/g; - $tesh_file =~ s/\$\{CMAKE_HOME_DIRECTORY\}/$proj_dir/g; + $tesh_file =~ s/\${CMAKE_HOME_DIRECTORY}/$proj_dir/g; if ( -e "$tesh_file") { @@ -88,6 +87,8 @@ while(defined($line=)) } else { + print "tesh_file : $tesh_file not exists!\n"; + print "tesh_file : $path\/$tesh_file not exists!\n"; die; } @@ -128,6 +129,7 @@ while(defined($line=)) $command = $path."/".$command; $command =~ s/\/(.?\/)+/\//g; } + $command =~ s/$proj_dir/\$\{CMAKE_BINARY_DIR\}/g; if ($config_var) { $command = "$command $config_var";