s4-test: fixed make test without having done make install
[ira/wip.git] / selftest / selftest.pl
index ef54320571c9e525aed4935846603544c30d5860..e7191efbf2cc7fbe4aac1ada9995483d66ccea61 100755 (executable)
@@ -348,6 +348,9 @@ exit(1) if (not $result);
 
 ShowHelp() if ($opt_help);
 
+# we want unbuffered output
+$| = 1;
+
 my @tests = @ARGV;
 
 # quick hack to disable rpc validation when using valgrind - its way too slow
@@ -356,6 +359,9 @@ unless (defined($ENV{VALGRIND})) {
        $ENV{MALLOC_CHECK_} = 2;
 }
 
+# make all our python scripts unbuffered
+$ENV{PYTHONUNBUFFERED} = 1;
+
 my $bindir = ($opt_bindir or "$builddir/bin");
 my $bindir_abs = abs_path($bindir);
 
@@ -581,6 +587,7 @@ sub write_clientconf($$)
 #We don't want to pass our self-tests if the PAC code is wrong
        gensec:require_pac = true
        modules dir = $ENV{LD_SAMBA_MODULE_PATH}
+       setup directory = ./setup
 ";
        close(CF);
 }
@@ -885,11 +892,8 @@ my $failed = 0;
 # if there were any valgrind failures, show them
 foreach (<$prefix/valgrind.log*>) {
        next unless (-s $_);
-       system("grep DWARF2.CFI.reader $_ > /dev/null");
-       if ($? >> 8 == 0) {
-           print "VALGRIND FAILURE\n";
-           $failed++;
-           system("cat $_");
-       }
+       print "VALGRIND FAILURE\n";
+       $failed++;
+       system("cat $_");
 }
 exit 0;