Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
allow to define a default value to registered functions. This allows to use generic...
[simgrid.git] / checkall
index 80415ca..7f48c2f 100755 (executable)
--- a/checkall
+++ b/checkall
@@ -11,11 +11,15 @@ my @skip;
 
 my $dir;
 
+if (-e "CMakeLists.txt") { # launched from dart
+    chdir "..";
+}
+
 open LOG,(">checkall.log") || die "Cannot open log file: $!";
 
 my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
 print LOG "Build started on $hour:$min:$sec $mon/$mday/$year\n\n";
-open MAKE,("make |") || die "Cannot fork a make: $!";
+open MAKE,("make 2>&1 |") || die "Cannot fork a make: $!";
 while (<MAKE>) {
     print     $_;
     print LOG $_;
@@ -30,7 +34,7 @@ if (!close MAKE) {
     exit 1;
 }
     
-open CHECK,("make -k check|") || die "Cannot fork a make check: $!";
+open CHECK,("make -k check 2>&1 |") || die "Cannot fork a make check: $!";
 while (<CHECK>) {
     print     $_;
     print LOG $_;