blob: 3dfca9eab2e5411243ae58e4c36011a17150cebe (
plain)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# @(#)Makefile 1.12 95/09/30
# Makefile for sanity checks
ROOT = ..
include $(ROOT)/Makefile.conf
CPPFLAGS += -I$(ROOT)/proto/include
LDLIBS = -Qoption ld -R$(ROOT)/proto/lib -L$(ROOT)/proto/lib -lcorba
PROG_SRCS = svr.cpp clnt.cpp cubit.cpp \
test1.cpp test1_clnt.cpp test1_svr.cpp \
echo_clnt.cpp echo_svr.cpp
TESTS = svr clnt test1_svr test1_clnt
# TESTS = svr clnt test1_svr test1_clnt echo_svr echo_clnt
########
default: $(TESTS)
all: default
########
# Sanity check builds by running basic functionality tests.
#
# "sleep 5" in the server startup is usually enough to get the
# objref into the file so the client can read it.
#
check: $(TESTS)
@echo "testing with 'cube' calls, stub + DII, IOR strings"
@./svr -i30 -o non-internet > obj.1 & sleep 5
@./clnt -n250 -O `cat obj.1` -x
@echo ''
@echo "testing request forwarding with 'cube' calls, stub + DII"
@./svr -f -i30 > obj.2 & sleep 5
@./clnt -n250 -O `cat obj.2` -x
@echo ''
@echo "testing transmission of primitive data types"
@./test1_svr -i30 > obj.3 & sleep 5
@./test1_clnt -n50 -O `cat obj.3` -x
@echo ''
# @echo "testing echo of primitive data values"
# @./echo_svr -i30 > obj.4 & sleep 5
# @./echo_clnt -O `cat obj.4` -x
# @echo ''
@echo "testing with 'cube' calls, MT-ized (no forwarding)"
@./svr -t -i30 -o non-internet > obj.5 & sleep 5
@./clnt -n250 -O `cat obj.5` -x
@echo ''
########
# CUBIT test
svr: svr.o cubit.o
$(LINK.cc) -o svr svr.o cubit.o $(LDLIBS)
clnt: cubit.o clnt.o
$(LINK.cc) -o clnt clnt.o cubit.o $(LDLIBS)
########
# BASIC DATATYPES test
test1_clnt: test1.o test1_clnt.o
$(LINK.cc) -o test1_clnt test1_clnt.o test1.o $(LDLIBS)
test1_svr: test1.o test1_svr.o
$(LINK.cc) -o test1_svr test1_svr.o test1.o $(LDLIBS)
########
# ECHO test ... "test1" where the operation semantics are violated;
# this aids some porting work, but is a less rigorous test
echo_clnt: test1.o echo_clnt.o
$(LINK.cc) -o echo_clnt echo_clnt.o test1.o $(LDLIBS)
echo_svr: test1.o echo_svr.o
$(LINK.cc) -o echo_svr echo_svr.o test1.o $(LDLIBS)
clean:
-rm -rf *.o Log $(TESTS) obj.* core Templates.DB .make.state
install:
-@echo "Nothing to install, these are tests!"
|