Hi list.

I have implemented "test report" feature for DOS/Windows.
"test report" is implemented for UNIX, so I made DOS/Windows equivalent.

Please check an attached patch.


Best.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


# HG changeset patch
# Parent 454a6ebf1c194cb4c967229d6e4e20396db996c2

diff -r 454a6ebf1c19 .hgignore
--- a/.hgignore	Sat Jun 15 23:00:30 2013 +0200
+++ b/.hgignore	Sun Jun 16 18:04:09 2013 +0900
@@ -55,3 +55,4 @@
 src/testdir/small.vim 
 src/testdir/tiny.vim 
 src/testdir/test*.out
+src/testdir/test.log
diff -r 454a6ebf1c19 src/testdir/Make_dos.mak
--- a/src/testdir/Make_dos.mak	Sat Jun 15 23:00:30 2013 +0200
+++ b/src/testdir/Make_dos.mak	Sun Jun 16 18:04:09 2013 +0900
@@ -40,23 +40,25 @@
 
 .SUFFIXES: .in .out
 
-nongui:	fixff $(SCRIPTS16) $(SCRIPTS)
-	echo ALL DONE
+nongui:	fixff $(SCRIPTS16) $(SCRIPTS) report
 
-small:
-	echo ALL DONE
+small:	report
 
-gui:	fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS_GUI)
-	echo ALL DONE
+gui:	fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS_GUI) report
 
-win32:	fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS32)
-	echo ALL DONE
+win32:	fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS32) report
 
 fixff:
 	-$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=dos|upd" +q *.in *.ok
 	-$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=unix|upd" +q \
 		dotest.in test60.ok test71.ok test74.ok
 
+report:
+	@echo ""
+	@echo Test results:
+	@IF EXIST test.log ( type test.log & echo TEST FAILURE & exit /b 1 ) \
+		ELSE ( ECHO ALL DONE )
+
 clean:
 	-del *.out
 	-if exist test.ok del test.ok
@@ -67,15 +69,18 @@
 	-if exist lua.vim del lua.vim
 	-del X*
 	-if exist viminfo del viminfo
+	-del test.log
 
 .in.out:
 	copy $*.ok test.ok
 	$(VIMPROG) -u dos.vim -U NONE --noplugin -s dotest.in $*.in
-	diff test.out $*.ok
-	-if exist $*.out del $*.out
-	rename test.out $*.out
+	@diff test.out $*.ok & if errorlevel 1 (echo $* FAILED >> test.log ) \
+		else ( del /F $*.out & rename test.out $*.out )
 	-del X*
 	-del X*.*
 	-del test.ok
 	-rd /s /q Xfind
 	-if exist viminfo del viminfo
+
+nolog:
+	-del test.log

Raspunde prin e-mail lui