### 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)
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)
#--------------------------------------------------------------------------------------------------
--- /dev/null
+#!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);