Home | History | Annotate | Line # | Download | only in execve
Makefile revision 1.2
      1 #	$Id: Makefile,v 1.2 1995/01/07 23:14:00 mycroft Exp $
      2 
      3 PROG=	doexec
      4 NOMAN=	noman, no way, man
      5 
      6 LDSTATIC= -static
      7 
      8 RP=	${.OBJDIR}/${PROG}
      9 TD=	${.CURDIR}/tests
     10 OD=	${.CURDIR}/good
     11 
     12 all:	${PROG} goodaout truncaout
     13 CLEANFILES+= goodaout truncaout
     14 
     15 install:
     16 
     17 regress:	test-empty test-nonexist \
     18 		test-nonexistshell test-devnullscript test-badinterplen \
     19 		test-goodscript test-scriptarg test-scriptarg-nospace \
     20 		test-goodaout test-truncaout
     21 
     22 test-empty:	${PROG} ${TD}/empty
     23 	${RP} ${TD}/empty | diff - ${OD}/empty
     24 
     25 test-nonexist:	${PROG}
     26 	${RP} ${TD}/nonexistent | diff - ${OD}/nonexistent
     27 
     28 test-nonexistshell: ${PROG} ${TD}/nonexistshell
     29 	${RP} ${TD}/nonexistshell | diff - ${OD}/nonexistshell
     30 
     31 test-devnullscript: ${PROG} ${TD}/devnullscript
     32 	${RP} ${TD}/devnullscript | diff - ${OD}/devnullscript
     33 
     34 test-badinterplen: ${PROG} ${TD}/badinterplen
     35 	${RP} ${TD}/badinterplen | diff - ${OD}/badinterplen
     36 
     37 test-goodscript: ${PROG} ${TD}/goodscript
     38 	${RP} ${TD}/goodscript | diff - ${OD}/goodscript
     39 
     40 test-scriptarg: ${PROG} ${TD}/scriptarg
     41 	${RP} ${TD}/scriptarg 2>&1 | diff - ${OD}/scriptarg
     42 
     43 test-scriptarg-nospace: ${PROG} ${TD}/scriptarg-nospace
     44 	${RP} ${TD}/scriptarg-nospace 2>&1 | diff - ${OD}/scriptarg-nospace
     45 
     46 goodaout: ${TD}/goodaout.c
     47 	${LINK.c} ${LDSTATIC} -o ${.TARGET} ${TD}/goodaout.c ${LDLIBS}
     48 
     49 test-goodaout: ${PROG} goodaout
     50 	${RP} ${.OBJDIR}/goodaout | diff - ${OD}/goodaout
     51 
     52 truncaout: goodaout
     53 	/bin/rm -rf truncaout
     54 	dd if=${.OBJDIR}/goodaout of=truncaout bs=16 count=1
     55 	chmod a+x truncaout
     56 	
     57 test-truncaout: ${PROG} truncaout
     58 	${RP} ${.OBJDIR}/truncaout | diff - ${OD}/truncaout
     59 
     60 .include <bsd.prog.mk>
     61