--- pr/tests/Makefile.in.orig 2016-10-03 02:58:00 UTC +++ pr/tests/Makefile.in @@ -489,17 +489,18 @@ endif ALWAYS: runtests:: $(PROGS) ALWAYS - @$(ECHO) "\nNSPR Test Results - $(OBJDIR)\n" - @$(ECHO) "BEGIN\t\t\t`date`" - @$(ECHO) "NSPR_TEST_LOGFILE\t$(LOGFILE)\n" - @$(ECHO) "Test\t\t\tResult\n" + @$(ECHO) "NSPR Test Results - $(OBJDIR)" + @$(ECHO) "BEGIN `date`" + @$(ECHO) "Test Result" @cd $(OBJDIR); for i in $(PROGRAMS); do \ - $(ECHO) "$$i\c"; \ - ./$$i >> $(LOGFILE) 2>&1 ; \ + printf "$$i"; \ + ./$$i > $$i.output 2>&1; \ if [ 0 = $$? ] ; then \ - $(ECHO) "\t\t\tPassed"; \ - else \ - $(ECHO) "\t\t\tFAILED"; \ - fi; \ + $(ECHO) " Passed"; \ + rm $$i.output; \ + else \ + $(ECHO) " FAILED"; \ + cat $$i.output; \ + fi; \ done - @$(ECHO) "\nEND\t\t`date`\n" + @$(ECHO) "END `date`"