A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test if valgrind is found for enable memcheck.
[simgrid.git]
/
buildtools
/
Cmake
/
generate_memcheck_tests.pl
diff --git
a/buildtools/Cmake/generate_memcheck_tests.pl
b/buildtools/Cmake/generate_memcheck_tests.pl
index
c21936a
..
312d8e4
100755
(executable)
--- a/
buildtools/Cmake/generate_memcheck_tests.pl
+++ b/
buildtools/Cmake/generate_memcheck_tests.pl
@@
-1,10
+1,10
@@
#!/usr/bin/perl -w
use strict;
#!/usr/bin/perl -w
use strict;
-# input file =
CMake
Test.txt
+# input file =
Add
Test.txt
if($#ARGV!=1) {
if($#ARGV!=1) {
- die "Usage: generate_memcheck_tests.pl <project_directory>
<CMakeTests.txt>
\n";
+ die "Usage: generate_memcheck_tests.pl <project_directory>
AddTests.cmake
\n";
}
my($proj_dir)=$ARGV[0];
}
my($proj_dir)=$ARGV[0];
@@
-14,6
+14,7
@@
my(@test_list)=();
my($line);
my($dump)=0;
my($line);
my($dump)=0;
+print "if(enable_memcheck)\n";
while(defined($line=<MAKETEST>)) {
chomp $line;
if($line =~ /BEGIN TESH TESTS/) {
while(defined($line=<MAKETEST>)) {
chomp $line;
if($line =~ /BEGIN TESH TESTS/) {
@@
-67,7
+68,7
@@
while(defined($line=<MAKETEST>)) {
}
}
close(MAKETEST);
}
}
close(MAKETEST);
-
+print "endif(enable_memcheck)\n";
#print "set(MEMCHECK_LIST\n";
#print (join("\n", @test_list));
#print ")\n";
#print "set(MEMCHECK_LIST\n";
#print (join("\n", @test_list));
#print ")\n";