home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_300
/
355_03
/
slk3.exe
/
TEST
/
R.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-06-09
|
2KB
|
59 lines
rem Minimal release testing: to be done before each release.
rem ALSO: \sherlock\backup.bat should be run after all tests complete.
rem
rem source: r.bat
rem version: July 28, 1989
rem
rem ---> This batch file must be run in the same directory as spp.exe.
rem ---> There must be a subdirectory called out in the current directory.
path c:\sherlock\bin;c:\bin\turboc;c:\bin\msc;c:\dos
rem
rem See also
rem 1. \sherlock\sltest.exe
rem 2. version.bat
rem 3. spptest.bat (Applies spp, sdel, sdif to all files in \spp)
rem 4. tst\pptest.bat (Applies spp to all .tst files in \test\tst)
rem 5. tst\htest.bat (Applies spp to all .h files in c:\include\turboc)
rem 6. tst\htest2.bat (Applies spp to all .h files in c:\include\msc)
rem 7. tt\tttest.bat (Applies spp to all .c files in \test\tt)
rem
set INCLUDE=c:\sherlock
rem
rem Part 1: declarations
rem
spp \test\dcltest2.c out\out2.c
rem The -C option must be off (Nested comments not valid)
spp \test\dcltest.c out\out.c
tcc -c -DTURBOC -oout\out out\out.c
rem
spp -o \test\dcltest.c out\outo.c
tcc -c -DTURBOC -oout\outo out\outo.c
rem
spp -t \test\dcltest.c out\outt.c
tcc -c -DTURBOC -oout\outt out\outt.c
rem
rem Part 2: macro substitution
rem
REM cpp \cpp\test\cpp.tst out\cpp.out
rem
rem Part 3: test spp, sdel and sdif in action
rem
del out\t1.c
del out\t2.c
del out\t3
del out\t1
sdel \sherlock\spp\sys.c out\t1
spp out\t1 out\t1.c -d TURBOC -n -s c:\include\turboc -s c:\sherlock\spp
spp out\t1 out\t2.c -d MICRO_SOFT -n -s c:\include\msc -s c:\sherlock\spp
tcc -mh -c -C -DTURBOC -Ic:\include\turboc -Ic:\sherlock -Ic:\sherlock\spp -oout\t1 out\t1.c
cl /c /AL /DMICRO_SOFT /Ic:\include\msc /I\sherlock\spp /I\sherlock /Foout\t2.obj out\t2.c
sdel out\t2.c out\t3 -n
sdif out\t2.c out\t3
sdif -b out\t1 out\t3
rem
rem Erase temp files created by Microsoft C compiler
del this
del there
path c:\bat
dopath