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
/
REGRESS.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-06-09
|
7KB
|
189 lines
rem
rem source: regress.bat
rem version: August 4, 1989
rem
rem May be run from \test
rem
rem make SURE to change the version numbers in the following line:
rem
set INCLUDE=
rem
rem Part 1. Apply SPP to all .tst and .pp files
rem
spp \test\dcltest.c \test\tst\dcltest.out
spp \test\tst\bigmac.tst \test\tst\bigmac.out
rem
rem bad_xxx routines generate warnings and errors
rem
spp \test\tst\comment2.tst \test\tst\comment2.out
rem
rem should say: file ends in comment starting in line 2
rem
spp \test\tst\comment2.tst \test\tst\comment2.out -n
spp \test\tst\dclbug.tst \test\tst\dclbug.out
spp \test\tst\comment.tst \test\tst\comment.out
spp \test\tst\bool.tst \test\tst\bool.out
rem
rem This should generate 4 warnings
rem
spp \test\tst\dupl.tst \test\tst\out.out -d A
rem
rem This generates 4 warnings about non-identical definitions
rem
spp \test\tst\macro.tst \test\tst\macro.out
sdif \test\tst\macro.tst \test\tst\macro.out -b
spp \test\tst\syn.tst \test\tst\syn.out -f \sherlock\sherlock.syn
rem
rem This generates 4 errors and 2 warnings
rem
spp \test\tst\error.tst \test\tst\error.out
spp \test\tst\assn.tst \test\tst\assn.out
spp \test\tst\arith.tst \test\tst\arith.out
spp \test\tst\COMMA.tst \test\tst\comma.out
spp \test\tst\TX.tst \test\tst\tx.out
spp \test\tst\CODE.tst \test\tst\code.out
spp \test\tst\POST.tst \test\tst\post.out
rem
rem The generates 2 warnings.
rem
spp \test\tst\TYPE.tst \test\tst\type.out
spp \test\tst\T1.tst \test\tst\t1.out
spp \test\tst\NODPOP.tst \test\tst\nodpop.out
spp \test\tst\FUNC.tst \test\tst\func.out
spp \test\tst\STAR.tst \test\tst\star.out
spp \test\tst\ARRAY.tst \test\tst\array.out
spp \test\tst\FIF.tst \test\tst\fif.out
spp \test\tst\MODE.tst \test\tst\mode.out
spp \test\tst\STR.tst \test\tst\str.out
spp \test\tst\TERN.tst \test\tst\tern.out
spp \test\tst\GOTO.tst \test\tst\goto.out
spp \test\tst\REGTYPE.tst \test\tst\regtype.out
spp \test\tst\SZF.tst \test\tst\szf.out
spp \test\tst\PAREN.tst \test\tst\paren.out
spp \test\tst\SWITCH.tst \test\tst\switch.out
spp \test\tst\UNBAL.tst \test\tst\unbal.out
spp \test\tst\IF.tst \test\tst\if.out
spp \test\tst\CAST.tst \test\tst\cast.out
spp \test\tst\X1GOOD.tst \test\tst\x1good.out
spp \test\tst\RELOP.tst \test\tst\relop.out
spp \test\tst\FNCALL.tst \test\tst\fncall.out
spp \test\tst\SIMPLE.tst \test\tst\simple.out
rem
spp \test\tst\AM.tst \test\tst\am.out
spp \test\tst\AMB.tst \test\tst\amb.out
spp \test\tst\X1BAD.tst \test\tst\x1bad.out
spp \test\tst\X2GOOD.tst \test\tst\x2good.out
spp \test\tst\ZTOK.tst \test\tst\ztok.out
spp \test\tst\XTOK.tst \test\tst\xtok.out
rem
spp \test\tst\INCLUDE.pp \test\tst\include.out
spp \test\tst\IF.pp \test\tst\ppif.out
spp \test\tst\SHORT.pp \test\tst\short.out
spp \test\tst\NUMBER.pp \test\tst\number.out
spp \test\tst\INDENT.pp \test\tst\indent.out
rem
rem Part 2: Apply SPP to all Turbo C header files.
rem
rem
rem NOTE: spp correctly complains about the following:
rem
rem limits.h has non-ANSI code in it.
rem graphics.h has a comma at the end of an enum list, which is non-standard.
rem
set INCLUDE=c:\include\turboc
rem
spp c:\include\turboc\ALLOC.h \test\tst\xxx.out
spp c:\include\turboc\ASSERT.h \test\tst\xxx.out
spp c:\include\turboc\BIOS.h \test\tst\xxx.out
spp c:\include\turboc\CONIO.h \test\tst\xxx.out
spp c:\include\turboc\CTYPE.h \test\tst\xxx.out
spp c:\include\turboc\DIR.h \test\tst\xxx.out
spp c:\include\turboc\DOS.h \test\tst\xxx.out
spp c:\include\turboc\ERRNO.h \test\tst\xxx.out
spp c:\include\turboc\FCNTL.h \test\tst\xxx.out
spp c:\include\turboc\FLOAT.h \test\tst\xxx.out
spp c:\include\turboc\GRAPHICS.h \test\tst\xxx.out
spp c:\include\turboc\IO.h \test\tst\xxx.out
spp c:\include\turboc\LIMITS.h \test\tst\xxx.out
spp c:\include\turboc\MATH.h \test\tst\xxx.out
spp c:\include\turboc\MEM.h \test\tst\xxx.out
spp c:\include\turboc\PROCESS.h \test\tst\xxx.out
spp c:\include\turboc\SETJMP.h \test\tst\xxx.out
spp c:\include\turboc\SHARE.h \test\tst\xxx.out
spp c:\include\turboc\SIGNAL.h \test\tst\xxx.out
spp c:\include\turboc\STDARG.h \test\tst\xxx.out
spp c:\include\turboc\STDDEF.h \test\tst\xxx.out
spp c:\include\turboc\STDIO.h \test\tst\xxx.out -s c:\include\turboc
spp c:\include\turboc\STDLIB.h \test\tst\xxx.out
spp c:\include\turboc\STRING.h \test\tst\xxx.out
spp c:\include\turboc\TIME.h \test\tst\xxx.out
spp c:\include\turboc\VALUES.h \test\tst\xxx.out
rem
set INCLUDE=
rem
rem Part 3: Apply SPP to all MicroSoft C header files
rem
spp c:\include\msc\ASSERT.h \test\tst\xxx.out
spp c:\include\msc\BIOS.h \test\tst\xxx.out
spp c:\include\msc\CONIO.h \test\tst\xxx.out
spp c:\include\msc\CTYPE.h \test\tst\xxx.out
spp c:\include\msc\DIRECT.h \test\tst\xxx.out
spp c:\include\msc\DOS.h \test\tst\xxx.out
spp c:\include\msc\ERRNO.h \test\tst\xxx.out
spp c:\include\msc\FCNTL.h \test\tst\xxx.out
spp c:\include\msc\FLOAT.h \test\tst\xxx.out
spp c:\include\msc\GRAPH.h \test\tst\xxx.out
spp c:\include\msc\IO.h \test\tst\xxx.out
spp c:\include\msc\LIMITS.h \test\tst\xxx.out
spp c:\include\msc\MALLOC.h \test\tst\xxx.out
spp c:\include\msc\MATH.h \test\tst\xxx.out
spp c:\include\msc\MEMORY.h \test\tst\xxx.out
spp c:\include\msc\PROCESS.h \test\tst\xxx.out
spp c:\include\msc\SEARCH.h \test\tst\xxx.out
spp c:\include\msc\SETJMP.h \test\tst\xxx.out
spp c:\include\msc\SHARE.h \test\tst\xxx.out
spp c:\include\msc\SIGNAL.h \test\tst\xxx.out
spp c:\include\msc\STDARG.h \test\tst\xxx.out
spp c:\include\msc\STDDEF.h \test\tst\xxx.out
spp c:\include\msc\STDIO.h \test\tst\xxx.out
spp c:\include\msc\STDLIB.h \test\tst\xxx.out
spp c:\include\msc\STRING.h \test\tst\xxx.out
spp c:\include\msc\TIME.h \test\tst\xxx.out
spp c:\include\msc\VARARGS.h \test\tst\xxx.out
rem
rem PART 4: Apply SPP to all files of the C torture test.
rem
copy \test\tt\defs \test
spp -s \sherlock \test\tt\main.c \test\tt\main.out
spp -s \sherlock \test\tt\main2.c \test\tt\main2.out
spp -s \sherlock \test\tt\S22.c \test\tt\s22.out
spp -s \sherlock \test\tt\S241.c \test\tt\s241.out
spp -s \sherlock \test\tt\S243.c \test\tt\s243.out
spp -s \sherlock \test\tt\S244.c \test\tt\s244.out
spp -s \sherlock \test\tt\S25.c \test\tt\s25.out
spp -s \sherlock \test\tt\S26.c \test\tt\s26.out
spp -s \sherlock \test\tt\S4.c \test\tt\s4.out
spp -s \sherlock \test\tt\S61.c \test\tt\s61.out
spp -s \sherlock \test\tt\S626.c \test\tt\s626.out
spp -s \sherlock \test\tt\S71.c \test\tt\s71.out
spp -s \sherlock \test\tt\S714.c \test\tt\s741.out
spp -s \sherlock \test\tt\S715.c \test\tt\s715.out
spp -s \sherlock \test\tt\S72.c \test\tt\s72.out
spp -s \sherlock \test\tt\S757.c \test\tt\s757.out
spp -s \sherlock \test\tt\S7813.c \test\tt\s7813.out
spp -s \sherlock \test\tt\S81.c \test\tt\s81.out
spp -s \sherlock \test\tt\S84.c \test\tt\s84.out
spp -s \sherlock \test\tt\S85.c \test\tt\s85.out
spp -s \sherlock \test\tt\S86.c \test\tt\s86.out
spp -s \sherlock \test\tt\S88.c \test\tt\s88.out
spp -s \sherlock \test\tt\S9.c \test\tt\s9.out
rem
rem Part 5: Test CPP on selected files
rem
cpp \test\dcltest.c \test\tst\dcltest.out
cpp \test\tst\comment.tst \test\tst\comment.out
cpp \test\tst\comment2.tst \test\tst\comment2.out
cpp \test\tst\macro.tst \test\tst\macro.out
rem
dopath