Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Tesh sort removes empty lines, do it also with tesh.pl.
[simgrid.git] / buildtools / Cmake / Scripts / generate_memcheck_tests.pl
index 33fd3bb..df08806 100755 (executable)
@@ -38,7 +38,6 @@ my ($indent);
 while ( defined( $line = <MAKETEST> ) ) {
     chomp $line;
     if ( $line =~ /BEGIN TESH TESTS/ ) {
-        print "SET( MEMCHECK 1) \n";
         $dump = 1;
         next;
     }
@@ -48,7 +47,7 @@ while ( defined( $line = <MAKETEST> ) ) {
     }
     if ($dump) {
         $line =~ s/^  //;
-        if ( $line =~ /^\s*ADD_TEST\(\S+\s+\S*\/tesh\s/ ) {
+        if ( $line =~ /^\s*ADD_TEST\(\S+\s+\S*TESH\_COMMAND\}\s/ ) {
             undef %environ;
             $config_var = "";
             $path       = "";