aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile
blob: 02b153461b5a8f1d095800689fc67b6401e0b791 (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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
.SUFFIXES: .java .class
SRC =	TestNet.java Bug.java BugTok.java BenchLocal.java ProbeBench.java \
	DieSender.java TestApi.java NewLine.java AsyncAPI.java
OBJ = $(SRC:.java=.class)
#BUS=
#BUS=-DIVYBUS=224.5.6.7:8910

#GNUPATH=$(HOME)/JavaFactory
#GNUPATH=/usr/share/java/gnu.getopt.0.9.jar:/usr/share/java/gnu-regexp-1.1.3.jar
#GNUPATH=/usr/share/java/regexp.jar:/usr/share/java/gnu-getopt.jar
#GNUPATH=/usr/share/java/repository:/usr/share/java/gnu.getopt.0.9.jar:/usr/share/java/gnu-regexp-1.1.3.jar
#GNUPATH=
BUILDPATH=../lib/ivy-java.jar
#BUILDPATH=../src:../bundle
#ADD=$(BUILDPATH):$(GNUPATH)
ADD=$(BUILDPATH)

#JAVAOPTS = -DIVY_PING
# DONOTBUILD = TestNetSwing.java  # Color(r,g,b,a) doesn't exist in jdk1.1

######################################
# generic setup
######################################
#RTPATH = /usr/lib/j2se/1.4/jre/lib/rt.jar
#CLASSPATH=-classpath .:$(ADD):$(RTPATH)
#CLASSPATH=-classpath .:$(ADD)
#JAVACOPTS= -deprecation 
#JAVAOPTS = $(BUS)
#JAVAOPTS = $(BUS) -DIVY_DEBUG
#JAVAC= jikes
#JAVAC= javac
#JAVA = java

######################################
# generic setup
######################################
CLASSPATH=-classpath .:$(ADD)
#JAVACOPTS= -deprecation
JAVAOPTS = $(BUS)
JAVAC= javac
JAVA = java

######################################
# Kaffe  (debian woody)
######################################
#CLASSPATH=-classpath .:$(ADD):/usr/share/kaffe/Klasses.jar
#JAVACOPTS= -deprecation
#JAVAOPTS = $(BUS)
#JAVAC= javac
#JAVA = kaffe

######################################
# SUN 1.4.0
######################################
#CLASSPATH=-classpath .:$(ADD)
#JAVACOPTS= -deprecation
#JAVAOPTS = $(BUS)
#JAVAC= /opt/Java/j2sdk1.4.0_01/bin/javac
#JAVA = /opt/Java/j2sdk1.4.0_01/bin/java

######################################
# local Blackdown linux 118_v3 system
######################################
#CLASSPATH = -classpath .:/usr/local/jdk118_v3/lib/classes.zip:/home/jestin/java/Jars/swingall.jar:$(ADD)
#JAVACOPTS =
#JAVAOPTS = $(BUS)
#JAVA = /usr/local/jdk118_v3/bin/java 
#JAVAC = /usr/local/jdk118_v3/bin/javac

######################################
# local Blackdown linux 1.2.2
######################################
#CLASSPATH = -classpath .:$(ADD)
#JAVACOPTS = -deprecation
#JAVAOPTS = $(BUS)
#JAVA = /usr/local/jdk1.2.2/bin/java 
#JAVAC = /usr/local/jdk1.2.2/bin/javac

######################################
# local Blackdown linux 1.3.1
######################################
#CLASSPATH = -classpath .:$(ADD)
#JAVACOPTS = -deprecation
#JAVAOPTS = $(BUS)
#JAVA = /usr/local/j2sdk1.3.1/bin/java 
#JAVAC = /usr/local/j2sdk1.3.1/bin/javac
#LOCALNET=10.0.0.255:3456
LOCALNET=$(MULTICAST)
#LOCALNET=10.192.36.255:3456
MULTICAST=228.1.2.3:4567

.java.class:
	$(JAVAC) $(JAVACOPTS) $(CLASSPATH) $<

all: $(OBJ)
	@echo "all modules built. run make run"

run: $(OBJ) nl api unitaires test1 test2 probe async
	
nl:
	$(JAVA) $(JAVAOPTS) $(CLASSPATH) NewLine -n 100000

probe:
	$(JAVA) $(JAVAOPTS) $(CLASSPATH) fr.dgac.ivy.Probe < /dev/null

api:
	$(JAVA) $(JAVAOPTS) $(CLASSPATH) TestApi

async: AsyncAPI.class
	$(JAVA) $(JAVAOPTS) $(CLASSPATH) AsyncAPI -r -l 5 -d 1 -s 10

unitaires:
	$(JAVA) $(JAVAOPTS) $(CLASSPATH) fr.dgac.ivy.Ivy

test1: $(OBJ)
	$(JAVA) $(JAVAOPTS) $(CLASSPATH) BenchLocal
	$(JAVA) $(JAVAOPTS) $(CLASSPATH) BenchLocal -b $(LOCALNET)
	$(JAVA) $(JAVAOPTS) $(CLASSPATH) BenchLocal -b $(MULTICAST)
	$(JAVA) $(JAVAOPTS) $(CLASSPATH) BenchLocal -d 100
	$(JAVA) $(JAVAOPTS) $(CLASSPATH) BenchLocal -d 0

test2: $(OBJ)
	$(JAVA) $(JAVAOPTS) $(CLASSPATH) BenchLocal -t 2 -d 100
	$(JAVA) $(JAVAOPTS) $(CLASSPATH) BenchLocal -t 2 -d 0

clean:
	/bin/rm -f $(OBJ) *.class