X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/edde8f7fbc1b74a81551bf9eb7bac1935b999296..8111cf69c27e24f09f018ab1f1a3fbdbf5b4a14e:/buildtools/Cmake/generate_memcheck_tests.pl diff --git a/buildtools/Cmake/generate_memcheck_tests.pl b/buildtools/Cmake/generate_memcheck_tests.pl index 6ee5e4c0bc..23699bbf04 100755 --- a/buildtools/Cmake/generate_memcheck_tests.pl +++ b/buildtools/Cmake/generate_memcheck_tests.pl @@ -46,7 +46,7 @@ while ( defined( $line = ) ) { last; } if ($dump) { - if ( $line =~ /ADD_TEST\(\S+\s+\S*\/tesh\s/ ) { + if ( $line =~ /^\s*ADD_TEST\(\S+\s+\S*\/tesh\s/ ) { $srcdir = ""; $bindir = ""; $config_var = ""; @@ -79,8 +79,9 @@ while ( defined( $line = ) ) { $tesh_file =~ s/^[^\/\$]/$path\/$&/; $tesh_file =~ s/\${CMAKE_HOME_DIRECTORY}/$proj_dir/g; if ( ! -e "$tesh_file" ) { - print "tesh_file : $tesh_file not exists!\n"; - die; + print "# tesh_file: $tesh_file does not exist!\n"; + print "# $line\n"; + next; } } @@ -109,7 +110,6 @@ while ( defined( $line = ) ) { $command = var_subst($command, "SG_TEST_EXENV", ""); $command = var_subst($command, "SG_TEST_ENV", ""); $command = var_subst($command, "SG_EXENV_TEST", ""); - $command = var_subst($command, "ARGS", ""); $command =~ s/\$@//g; # $command =~ s/..\/..\/bin\/smpirun/\${CMAKE_BINARY_DIR\}\/bin\/smpirun/g; $command =~ s/^\s+//; @@ -130,7 +130,7 @@ while ( defined( $line = ) ) { } close(TESH_FILE); } - elsif ( $line =~ /set_tests_properties/ ) { + elsif ( $line =~ /^\s*set_tests_properties/ ) { if ( $line =~ /set_tests_properties\(([\S]+)/ ) { my ($name_temp) = ($1); $line =~ s/$name_temp/memcheck-$name_temp-0/g;