2
0

win95test.bat 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. @echo off
  2. set CONT=
  3. set FPC=
  4. rem if arg1 or arg2 is cont then
  5. rem do not erase old files
  6. rem Create DATE env
  7. rem to be able to save a version with the current date
  8. make setdate
  9. call setdate.bat
  10. if "%1"=="cont" goto setcont
  11. if "%2"=="cont" goto setcont
  12. if "%1"=="diffs" goto setdiffs
  13. if "%2"=="diffs" goto setdiffs
  14. set CONT=
  15. goto nocont
  16. :setcont
  17. set CONT=1
  18. if "%1"=="cont" goto doshift
  19. goto nocont
  20. :doshift
  21. shift
  22. :nocont
  23. if "%1"=="" goto go32v2test
  24. if "%1"=="go32v2" goto go32v2test
  25. if "%1"=="win32" goto win32test
  26. echo This batch file allows to test all test sources of the entire directory
  27. echo Use "win95test go32v2" to run the test with ppc386
  28. echo Use "win95test win32" to run the test with ppwin32 (native win32 version)
  29. echo or use "win95test" to run the test first with ppc386 and again with ppwin32
  30. echo "cont" arg can be used to continue a test suite
  31. echo "diffs" can be used to generate diffs to last report
  32. goto end
  33. :go32v2test
  34. set FPC=ppc386
  35. set LONGLOG=go32v2.longlog
  36. if "%CONT%"=="1" goto go32v2cont
  37. echo Test of FPC for > %LONGLOG%
  38. %FPC% -l -iSO >> %LONGLOG%
  39. echo Test of FPC for > log
  40. %FPC% -l -iSO >> log
  41. Echo Stderr output of Make > Make.err
  42. make clean
  43. if not exist units\makefile goto go32v2cont
  44. make -C units OS_TARGET=go32v2
  45. :go32v2cont
  46. set CONT=
  47. set FPC=ppc386
  48. set OPT=-n -Fuunits -gl -Croi
  49. make alltbf
  50. make alltbf
  51. make tbs0to99
  52. make tbs0to99
  53. make tbs100to199
  54. make tbs100to199
  55. make tbs200to299
  56. make tbs200to299
  57. make tbs300to399
  58. make tbs300to399
  59. make allts alltf allto
  60. make allts alltf allto
  61. make alltest
  62. make alltest
  63. make allwebtbf allwebtbs
  64. make allwebtbf allwebtbs
  65. make tbsexec0to99
  66. make tbsexec0to99
  67. make tbsexec100to199
  68. make tbsexec100to199
  69. make tbsexec200to299
  70. make tbsexec200to299
  71. make tbsexec300to399
  72. make tbsexec300to399
  73. make allwebtbsexec
  74. make allwebtbsexec
  75. make alltsexec
  76. make alltsexec
  77. make alltestexec
  78. make alltestexec
  79. cp log go32v2.log
  80. cp go32v2.log go32v2.%DATE%.log
  81. cp go32v2.longlog go32v2.%DATE%.longlog
  82. cp make.err go32v2.%DATE%.make.err
  83. echo Go32v2 fail list of %DATE% > go32v2.%DATE%.fail
  84. cat faillist >> go32v2.%DATE%.fail
  85. :setdiffs
  86. if "%1=="win32" goto setwin32diffs
  87. if exist go32v2.lastfail goto go32diff
  88. goto go32end
  89. :go32diff
  90. if not "%LASTDATE%"=="" goto go32lastset
  91. call getlastgo32v2date.bat
  92. :go32lastset
  93. echo Go32v2 diffs from %LASTDATE% to %DATE% > go32v2.diff_to_last
  94. diff -u faillist go32v2.lastfail >> go32v2.diff_to_last
  95. cp go32v2.diff_to_last go32v2.%DATE%.diff
  96. :go32end
  97. echo set LASTDATE=%DATE% > getlastgo32v2date.bat
  98. cp faillist go32v2.lastfail
  99. rem should we pass the win32 test ?
  100. if "%1"=="go32v2" goto end
  101. rem Start of win32 part of test
  102. :win32test
  103. set FPC=ppwin32
  104. set LONGLOG=win32.longlog
  105. if "%CONT%"=="1" goto win32cont
  106. Echo Stderr output of Make > Make.err
  107. make clean
  108. if not exist units\makefile goto win32nounits
  109. make -C units OS_TARGET=win32
  110. :win32nounits
  111. echo Test of FPC for > %LONGLOG%
  112. %FPC% -l -iSO >> %LONGLOG%
  113. echo Test of FPC for > log
  114. %FPC% -l -iSO >> log
  115. :win32cont
  116. set CONT=
  117. set FPC=ppwin32
  118. set OPT=-n -Fuunits -gl -Croi
  119. make alltbf
  120. make alltbf
  121. make tbs0to99
  122. make tbs0to99
  123. make tbs100to199
  124. make tbs100to199
  125. make tbs200to299
  126. make tbs200to299
  127. make tbs300to399
  128. make tbs300to399
  129. make allts alltf allto
  130. make allts alltf allto
  131. make alltest
  132. make alltest
  133. make allwebtbf allwebtbs
  134. make allwebtbf allwebtbs
  135. make tbsexec0to99
  136. make tbsexec0to99
  137. make tbsexec100to199
  138. make tbsexec100to199
  139. make tbsexec200to299
  140. make tbsexec200to299
  141. make tbsexec300to399
  142. make tbsexec300to399
  143. make allwebtbsexec
  144. make allwebtbsexec
  145. make alltsexec
  146. make alltsexec
  147. make alltestexec
  148. make alltestexec
  149. cp log win32.log
  150. cp win32.log win32.%DATE%.log
  151. cp win32.longlog win32.%DATE%.longlog
  152. cp faillist win32.%DATE%.fail
  153. cp make.err win32.%DATE%.make.err
  154. :setwin32diffs
  155. if exist win32.lastfail goto win32diff
  156. goto win32end
  157. :win32diff
  158. if not "%LASTDATE%"=="" goto win32lastset
  159. call getlastwin32date.bat
  160. :win32lastset
  161. echo Win32 diffs from %LASTDATE% to %DATE% > win32.diff_to_last
  162. diff -u faillist win32.lastfail >> win32.diff_to_last
  163. cp win32.diff_to_last win2.%DATE%.diff
  164. :win32end
  165. echo set LASTDATE=%DATE% > getlastwin32date.bat
  166. cp faillist win32.lastfail
  167. :end