Changeset 8745 for trunk/testsuite


Ignore:
Timestamp:
Jun 25, 2002, 2:48:00 AM (23 years ago)
Author:
bird
Message:

More or less done for now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/testsuite/cui/watcomc.mak

    r8728 r8745  
    1 # $Id: watcomc.mak,v 1.2 2002-06-20 02:28:07 bird Exp $
     1# $Id: watcomc.mak,v 1.3 2002-06-25 00:48:00 bird Exp $
    22
    33#
     
    3636WCL386 = $(WATCOM)\binnt\wcl386.exe
    3737WCC386 = $(WATCOM)\binnt\wcc386.exe
    38 WLINK = $(WATCOM)\binnt\wlink.exe
     38WLINK  = $(WATCOM)\binnt\wlink.exe
    3939WMAKE  = $(WATCOM)\binnt\wmake.exe
    4040
     
    4747testcase:   $(BIN_FILES)
    4848    @$(ECHO) + Running testcases for WatCom C/C++ v11.0c(beta) $(CLRRST)
    49     $(TS_EXEC_1) "wcl386 help" $(TS_EXEC_2) testcase-wcl386-help - doesn work.
    50     $(TS_EXEC_1) "wcc386+wlink 'hello world'" $(TS_EXEC_2) testcase-helloworld
     49    $(TS_EXEC_1) "wcl386 help" $(TS_EXEC_2) testcase-wcl386-help
     50    $(TS_EXEC_1) "wcc386 compile 'hello world'" $(TS_EXEC_2) testcase-compile
     51    $(TS_EXEC_1) "wcc386+wlink compile, link and run 'hello world'" $(TS_EXEC_2) testcase-helloworld
     52    $(TS_EXEC_1) "wcl386 compile and link 'hello world'" $(TS_EXEC_2) testcase-compile-and-link
    5153    @$(ECHO) + Completed WatCom C/C++ v11.0c(beta)! $(CLRRST)
    5254
     
    5759#
    5860testcase-wcl386-help: $(PATH_TARGET)\wcl386.help.stdout
    59     false - testcase is broken. Doesn't detect pipe.
    60     SET PATH=$(WATCOM)\winnt;$(PATH)
    61     $(TS_PEC) $(WCL386) > $(PATH_TARGET)\stdout 2> $(PATH_TARGET)\stderr
     61    SET PATH=$(WATCOM)\winnt;$(PATH)
     62    -1 $(TS_PEC) $(WCL386) > $(PATH_TARGET)\stdout 2> $(PATH_TARGET)\stderr
    6263    $(TS_TEST_FILE_Z)   $(PATH_TARGET)\stderr
    6364    $(TS_TEST_FILE_NZ)  $(PATH_TARGET)\stdout
     
    161162
    162163
     164#
     165# Testcase where we try to run compile some simple source.
     166#
     167testcase-compile: $(PATH_TARGET)\helloworld.c
     168    SET PATH=$(WATCOM)\winnt;$(PATH)
     169    $(TS_PEC) $(WCC386) -I$(WATCOM)\h\nt -I$(WATCOM)\h -Fo=$(PATH_TARGET)\compile.obj \
     170        $(PATH_TARGET)\helloworld.c
     171    $(TS_TEST_FILE_NZ) $(PATH_TARGET)\compile.obj
     172
     173
     174#
     175# Testcase where we try to run compile some simple source.
     176#
     177testcase-compile-and-link: $(PATH_TARGET)\helloworld.c
     178    SET PATH=$(WATCOM)\winnt;$(PATH)
     179    $(TS_PEC) $(WCL386) -bt=tnt -l=tnt -I$(WATCOM)\h\nt -I$(WATCOM)\h \
     180        -Fo=$(PATH_TARGET)\compileandlink.obj -Fe=$(PATH_TARGET)\compileandlink.exe \
     181        $(PATH_TARGET)\helloworld.c
     182    $(TS_TEST_FILE_NZ) $(PATH_TARGET)\compileandlink.obj
     183    $(TS_TEST_FILE_NZ) $(PATH_TARGET)\compileandlink.exe
     184
    163185
    164186#
     
    172194        $(PATH_TARGET)\helloworld.c
    173195    $(TS_TEST_FILE_NZ) $(PATH_TARGET)\helloworld.obj
    174     echo . & SET LIB=$(WATCOM)\lib386\nt;$(WATCOM)\lib386; && \
    175         $(TS_PEC) $(WLINK) FORMAT Window NT \
    176             FILE $(PATH_TARGET)\helloworld.obj \
    177             NAME $(PATH_TARGET)\helloworld.exe \
    178             LIBPATH $(WATCOM)\lib386\nt;$(WATCOM)\lib386
     196    SET LIB=$(WATCOM)\lib386\nt;$(WATCOM)\lib386;
     197    $(TS_PEC) $(WLINK) \
     198        FORMAT Window NT \
     199        FILE $(PATH_TARGET)\helloworld.obj \
     200        NAME $(PATH_TARGET)\helloworld.exe \
     201        LIBPATH $(WATCOM)\lib386\nt;$(WATCOM)\lib386
    179202    $(TS_TEST_FILE_NZ) $(PATH_TARGET)\helloworld.exe
    180203    $(TOOL_COPY) $(PATH_TARGET)\helloworld.exe .\helloworld.exe
     
    185208Hello stderr
    186209<<
    187     $(TS_SED) "s/=$(MAKEDIR:\=\\)\\HELLOWORD.EXE/HelloWorld.ExE/I" $(PATH_TARGET)\stdout | $(TS_CMP) $(PATH_TARGET)\helloworld.stdout -
     210    $(TS_SED) "s/=$(MAKEDIR:\=\\)\\HELLOWORLD\.EXE/=HelloWorld\.ExE/I" $(PATH_TARGET)\stdout | $(TS_CMP) $(PATH_TARGET)\helloworld.stdout -
    188211
    189212
Note: See TracChangeset for help on using the changeset viewer.