File: tests

package info (click to toggle)
lsof 4.95.0-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 2,756 kB
  • sloc: ansic: 30,866; sh: 7,750; perl: 940; makefile: 319; awk: 214
file content (56 lines) | stat: -rw-r--r-- 1,429 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Author: Nicholas Bamber <nicholas@periapt.co.uk>
Subject: test integration
 We always want to run the tests even if our platform is not 
 in the database of validated platforms. And the NFS based
 test has no chance of success in a bare Debian machine.
Forwarded: not-needed
Last-Update: 2012-04-18
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -10,7 +10,7 @@ CFLAGS=	${DEBUG} -I. -I..
 
 HDR=	LsofTest.h
 
-CKTSTDB= CkTestDB
+CKTSTDB= true
 CONFCFL= ./config.cflags
 CONFIG=	./config.cc ${CONFCFL} ./config.xobj
 LTOBJ=	LTlib.o
@@ -19,13 +19,14 @@ LIBOBJ=	${LTOBJ}
 
 BASTST=	LTbasic
 STDTST=	LTnlink LTsock LTszoff LTunix
-OPTTST=	LTbigf LTdnlc LTlock LTnfs
+OPTTST=	LTbigf LTdnlc LTlock
 
-all:	${CKTSTDB} ${BASTST} ${STDTST} FRC
-	@./${CKTSTDB}; xv=$$?; \
+all:	${BASTST} ${STDTST} FRC
+	@${CKTSTDB}; xv=$$?; \
 	if [ $$xv -ne 0 ]; then \
 	  exit 1 ;\
 	fi
+	@pwd
 	@rm -f config.LT*
 	@err=0; \
 	echo ""; \
@@ -62,8 +63,8 @@ all:	${CKTSTDB} ${BASTST} ${STDTST} FRC
 
 auto:	ckDB silent FRC
 
-ckDB:	${CKTSTDB} FRC
-	@echo "" | ./${CKTSTDB}; xv=$$?; \
+ckDB:	FRC
+	@echo "" | ${CKTSTDB}; xv=$$?; \
 	if [ $$xv -ne 0 ]; then \
 	  exit 1 ;\
 	fi
@@ -113,7 +114,7 @@ LTunix: LTunix.c ${CONFIG} ${LIBOBJ} ${H
 	`cat config.cc` ${CFLAGS} `cat config.cflags` LTunix.c \
 	${LIBOBJ} `cat config.xobj` -o LTunix `cat config.ldflags`
 
-opt:	${CKTSTDB} ${OPTTST} FRC
+opt:	${OPTTST} FRC
 	@rm -f config.LT*
 	@err=0; \
 	echo ""; \