test.bat
来自「开放源码的编译器open watcom 1.6.0版的源代码」· Batch 代码 · 共 132 行
BAT
132 行
@echo %regress% off
SET TRMEM_CODE=1
set from=%cd%
cd %devdir%\wmake\regress
if exist error.out del error.out
if .%1 == . goto usage
REM ===========================
REM Build utilities first
REM ===========================
cd cmds
wmake -h
cd ..
REM ===========================
REM -- test1 - Multiple Dependents Test
REM ===========================
echo *****************************************************************
cd TEST1
:: %comspec% /c call ... rather than call ... to isolate echo off changes
%comspec% /c call test.bat %1 ..\error.out
cd ..
:tst2
REM ===========================
REM -- TEST2 - Implicit Rules Test
REM ===========================
echo *****************************************************************
cd IMPLICIT
%comspec% /c call test.bat %1 ..\error.out
cd ..
:tst3
REM ===========================
REM -- FORTEST - FOR LOOP TEST
REM ===========================
echo *****************************************************************
cd FORTEST
%comspec% /c call test.bat %1 ..\error.out
cd ..
:tst4
REM ===========================
REM -- PRETEST - PRE COMPILER TEST
REM ===========================
echo *****************************************************************
cd PRETEST
%comspec% /c call dopre.bat %1 ..\error.out
cd ..
:tst5
REM ===========================
REM -- UPDTEST - UPDATE TEST
REM ===========================
echo *****************************************************************
cd UPDTEST
%comspec% /c call doupd.bat %1 ..\error.out
cd ..
:tst6
set TRMEM_CODE=3
REM ===========================
REM -- ERRTEST - ERROR TEST
REM ===========================
echo *****************************************************************
cd ERRTEST
%comspec% /c call error.bat %1 ..\error.out
cd ..
:tst7
set TRMEM_CODE=1
REM ===========================
REM -- INLINE TEST -
REM ===========================
echo *****************************************************************
cd INLINE
%comspec% /c call test.bat %1 ..\error.out
cd ..
:tst8
REM ===========================
REM -- PREPROCESS TEST -
REM ===========================
echo *****************************************************************
cd PREPROC
%comspec% /c call test.bat %1 ..\error.out
cd ..
:tst9
REM ===========================
REM -- MACROS TEST -
REM ===========================
echo *****************************************************************
cd MACROS
%comspec% /c call test.bat %1 ..\error.out
cd ..
:tst10
REM ===========================
REM -- MISC TEST -
REM ===========================
echo *****************************************************************
cd MISC
%comspec% /c call TEST.BAT %1 ..\error.out
cd ..
:tst11
REM ===========================
REM -- LONG FILENAME TEST -
REM ===========================
echo *****************************************************************
cd LONGFILE
%comspec% /c call test.bat %1 ..\error.out
cd ..
REM ===========================
REM -- End of Test
REM ===========================
echo ************* DONE DONE DONE ********************
if exist error.out echo !!!!!!!! ERRORS FOUND !!!!!!!!!!
if exist error.out echo look at error.out for listing
goto done
:usage
echo %0 progname (e.g. %0 wmake)
:done
cd %from%
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?