aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile
blob: c34121b18ecc15eed0cea995afa05280a6ea3701 (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
#RTPATH=/usr/lib/j2re1.3/lib/rt.jar
RTPATH=/usr/lib/j2sdk1.4-bd/jre/lib/rt.jar
JIKESPATH=:$(RTPATH):../lib/ivy-java.jar:/usr/share/java/repository
CLASSPATH=-classpath ../lib/ivy-java.jar:. 
JAVAC= jikes -classpath $(JIKESPATH)
.SUFFIXES: .java .class
SRC = TestNetSwing.java TestNet.java Bug.java BugTok.java BenchLocal.java ProbeBench.java DieSender.java TestApi.java
OBJ = $(SRC:.java=.class)
#JAVAOPTS = -DIVY_PING
JAVAOPTS =
JAVA = java

#LOCALNET=10.0.0.255:3456
LOCALNET=10.192.36.255:3456
MULTICAST=228.1.2.3:4567

.java.class:
	$(JAVAC) $<

all: $(OBJ) api unitaires test1 test2 probe
	
probe:
	$(JAVA) $(JAVAOPTS) $(CLASSPATH) fr.dgac.ivy.Probe < /dev/null
api:
	$(JAVA) $(JAVAOPTS) $(CLASSPATH) TestApi

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