Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Enable testing for windows.
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 8 Oct 2010 15:41:42 +0000 (15:41 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 8 Oct 2010 15:41:42 +0000 (15:41 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8383 48e7efb5-ca39-0410-a469-dd3cf9ba447f

CMakeLists.txt
buildtools/Cmake/CompleteInFiles.cmake
buildtools/Cmake/tesh.pl [new file with mode: 0644]

index 135d01d..776d29c 100644 (file)
@@ -158,6 +158,8 @@ endif(HAVE_JAVA)
 ### Make tests
 if(NOT WIN32)
 include(${PROJECT_DIRECTORY}/buildtools/Cmake/AddTests.cmake)
+else(NOT WIN32)
+include(${PROJECT_DIRECTORY}/buildtools/Cmake/AddTestsWin.cmake)
 endif(NOT WIN32)
 
 include(${PROJECT_DIRECTORY}/buildtools/Cmake/CTestConfig.cmake)
index 98dd83f..828615a 100644 (file)
@@ -211,7 +211,7 @@ if(PATH_PCRE_LIB)
                endif(NOT operation)
        set(HAVE_PCRE_LIB 1)
 else(PATH_PCRE_LIB)
-               message(WARNING "You should install libpcre (please install the libpcre3-dev package or equivalent)")
+               message("You should install libpcre (please install the libpcre3-dev package or equivalent)")
 endif(PATH_PCRE_LIB)
 
 #--------------------------------------------------------------------------------------------------
diff --git a/buildtools/Cmake/tesh.pl b/buildtools/Cmake/tesh.pl
new file mode 100644 (file)
index 0000000..cae0a63
--- /dev/null
@@ -0,0 +1,38 @@
+#!perl -w
+use strict;
+
+if($#ARGV!=1) {
+    die "Usage: perl tesh.pl <directory> <teshfile.tesh>\n";
+}
+
+my($directory)=$ARGV[0];
+my($file)=$ARGV[1];
+
+chdir("$directory");
+
+open SH_LIGNE, $file or die "Unable to open $file. $!\n";
+
+my($line);
+my($line_exec);
+my($l);
+my($tmp);
+
+while(defined($line=<SH_LIGNE>))
+{
+
+               if($line =~ /^\$(.*)$/) 
+               {
+                       $line_exec = $line;
+                       $line =~ s/\$\{srcdir\:\=\.\}/./g;
+                       $line =~ s/\$SG_TEST_EXENV//g;
+                       $line =~ s/\$EXEEXT//g;
+                       $line =~ s/^\$\ */.\//g;
+                       $line =~ s/^.\/lua/lua/g;
+                       $line =~ s/^.\/ruby/ruby/g;
+                       print "$line_exec\n";
+                       chomp $line;
+                       system "$line";
+                       }
+}
+
+close(SH_LIGNE);