Annotation of 43BSD/ucb/dbx/tests/cc/Makefile, revision 1.1.1.1

1.1       root        1: #
                      2: # Makefile for testing dbx.
                      3: #
                      4: 
                      5: .SUFFIXES:
                      6: 
                      7: .SUFFIXES: .c .h .s .o .x .t .in .tst .out
                      8: 
                      9: #
                     10: # Suffix conventions:
                     11: #
                     12: #      .c      C source module
                     13: #      .h      C definitions file
                     14: #      .s      assembly code file
                     15: #      .o      object file
                     16: #      .x      executable file
                     17: #      .t      dummy file represented last time tested
                     18: #      .in     input for testing
                     19: #      .tst    test output
                     20: #      .out    expected output
                     21: #
                     22: 
                     23: CC = cc
                     24: 
                     25: TESTDBX = ../../tdbx
                     26: TESTS = \
                     27:     aliases.t args.t arrays.t bitfields.t call.t dump.t enum.t float.t \
                     28:     loophole.t nested.t own.t reg.t \
                     29:     same.t signal.t sleep.t stkcmds.t strings.t struct.t user.t ushort.t
                     30: 
                     31: .c.x:
                     32:        ${CC} -g $*.c -o $*.x
                     33: 
                     34: .c.o:
                     35:        ${CC} -c -g $*.c
                     36: 
                     37: .in.tst:
                     38:        @rm -f $*.tst
                     39:        ../runtest ${TESTDBX} $* > $*.tst
                     40: 
                     41: .x.t:
                     42:        @echo "    $*"
                     43:        @rm -f tmp
                     44:        @../runtest ${TESTDBX} $* > tmp
                     45:        @../check tmp $*.out
                     46:        @rm -f tmp
                     47:        @rm -f $*.t
                     48:        @touch $*.t
                     49: 
                     50: passed: beforemsg ${TESTS}
                     51:        @echo "passed C tests"
                     52: 
                     53: beforemsg:
                     54:        @echo ""
                     55:        @echo "C tests:"
                     56: 
                     57: strings.x: strings.c
                     58:        cc -g -R strings.c -o strings.x
                     59: 
                     60: aliases.t: aliases.x ${TESTDBX}
                     61: args.t: args.x ${TESTDBX}
                     62: arrays.t: arrays.x ${TESTDBX}
                     63: bitfields.t: bitfields.x ${TESTDBX}
                     64: call.t: call.x ${TESTDBX}
                     65: dump.t: dump.x ${TESTDBX}
                     66: enum.t: enum.x ${TESTDBX}
                     67: float.t: float.x ${TESTDBX}
                     68: loophole.t: loophole.x ${TESTDBX}
                     69: nested.t: nested.x ${TESTDBX}
                     70: own.t: own.x ${TESTDBX}
                     71: reg.t: reg.x ${TESTDBX}
                     72: same.t: same.x ${TESTDBX}
                     73: signal.t: signal.x ${TESTDBX}
                     74: sleep.t: sleep.x ${TESTDBX}
                     75: stkcmds.t: stkcmds.x ${TESTDBX}
                     76: struct.t: struct.x ${TESTDBX}
                     77: user.t: user.x ${TESTDBX}
                     78: ushort.t: ushort.x ${TESTDBX}
                     79: 
                     80: strings.t: strings.x strings.core ${TESTDBX}
                     81:        @echo "    $*"
                     82:        @rm -f tmp
                     83:        @${TESTDBX} $*.x $*.core < $*.in | tail +3 > tmp
                     84:        @../check tmp $*.out
                     85:        @rm -f tmp
                     86:        @rm -f $*.t
                     87:        @touch $*.t
                     88: 
                     89: strings.core:
                     90:        -csh -f -c "limit coredumpsize 6m >& /dev/null; strings.x"
                     91:        mv core strings.core
                     92: 
                     93: aliases.x: arrays.x
                     94:        ln -s arrays.x aliases.x

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.