blob: 4a3c4eb9db128833b7e013cedff925e117f74a25 (
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
|
# Makefile for Ivy test class suite
# it's a bit messy to automate because of specific network settings
# you'll have to play with the network settings to make it run
include ../java.mk # in this file you can change your java compiler and VM
IVYPATH=../lib/ivy-java.jar
CLASSPATH=-classpath classes:$(IVYPATH)
SRC = *.java
# Warning TestNetSwing.java cant build with jdk1.1
# as Color(r,g,b,a) doesn't exist in jdk1.1
#LOCALNET=10.192.36.255:3456
#LOCALNET=10.0.0.255:3456
#LOCALNET=192.168.19:3456
LOCALNET=
MULTICAST=228.1.2.3:4567
DOMAIN=
#DOMAIN=-b $(MULTICAST)
all:
$(JAVAC) -d classes $(JAVACOPTS) $(CLASSPATH) $(SRC)
@echo "all modules built. run make run"
run: nl api unitaires test1 test2 probe async stop request
request:
$(JAVA) $(JAVAOPTS) $(CLASSPATH) Request $(DOMAIN)
nl:
$(JAVA) $(JAVAOPTS) $(CLASSPATH) NewLine -n 100000 $(DOMAIN)
probe:
$(JAVA) $(JAVAOPTS) $(CLASSPATH) fr.dgac.ivy.tools.Probe $(DOMAIN) < /dev/null
api:
$(JAVA) $(JAVAOPTS) $(CLASSPATH) TestApi $(DOMAIN)
async:
$(JAVA) $(JAVAOPTS) $(CLASSPATH) AsyncAPI -r -l 5 -d 1 -s 10 $(DOMAIN)
stop:
$(JAVA) $(JAVAOPTS) $(CLASSPATH) StopStart $(DOMAIN)
unitaires:
$(JAVA) $(JAVAOPTS) $(CLASSPATH) fr.dgac.ivy.Ivy $(DOMAIN)
test1: $(OBJ)
$(JAVA) $(JAVAOPTS) $(CLASSPATH) BenchLocal $(DOMAIN)
$(JAVA) $(JAVAOPTS) $(CLASSPATH) BenchLocal -d 100 $(DOMAIN)
$(JAVA) $(JAVAOPTS) $(CLASSPATH) BenchLocal -d 0 $(DOMAIN)
test2: $(OBJ)
$(JAVA) $(JAVAOPTS) $(CLASSPATH) BenchLocal -t 2 -d 100 $(DOMAIN)
$(JAVA) $(JAVAOPTS) $(CLASSPATH) BenchLocal -t 2 -d 0 $(DOMAIN)
clean:
/bin/rm -fR $(OBJ) *.class classes
@mkdir classes
|