aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile35
1 files changed, 33 insertions, 2 deletions
diff --git a/tests/Makefile b/tests/Makefile
index bb72f81..2dfa6c9 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,13 +1,44 @@
JIKESPATH=/usr/lib/j2re1.3/lib/rt.jar:../lib/ivy-java.jar
JAVAC= jikes -classpath $(JIKESPATH)
.SUFFIXES: .java .class
-SRC = TestNet.java Bug.java BugTok.java
+SRC = TestNet.java Bug.java BugTok.java BenchLocal.java
OBJ = $(SRC:.java=.class)
+JAVAOPTS = -DIVY_PING
+JAVA = java $(JAVAOPTS)
+JDK118=/usr/local/jdk118_v3/bin/java
+JDK13=java
+JDK12= /usr/local/jdk1.2.2/bin/java
+JDK14= /usr/local/j2sdk1.4.0/bin/java
+
+#LOCALNET=10.0.0.255:3456
+LOCALNET=10.192.36.255:3456
+MULTICAST=228.1.2.3:4567
.java.class:
$(JAVAC) $<
all: $(OBJ)
+ @echo 'run make alltests'
+
+alltests: $(OBJ) unitaires test1 test2 jvm
+
+unitaires:
+ $(JAVA) $(JAVAOPTS) -classpath ../lib/ivy-java.jar:. fr.dgac.ivy.Ivy
+
+test1: $(OBJ)
+ $(JAVA) $(JAVAOPTS) -classpath ../lib/ivy-java.jar:. BenchLocal
+ $(JAVA) $(JAVAOPTS) -classpath ../lib/ivy-java.jar:. BenchLocal -b $(LOCALNET)
+ $(JAVA) $(JAVAOPTS) -classpath ../lib/ivy-java.jar:. BenchLocal -b $(MULTICAST)
+ $(JAVA) $(JAVAOPTS) -classpath ../lib/ivy-java.jar:. BenchLocal -d 100
+ $(JAVA) $(JAVAOPTS) -classpath ../lib/ivy-java.jar:. BenchLocal -d 0
+
+test2: $(OBJ)
+ $(JAVA) $(JAVAOPTS) -classpath ../lib/ivy-java.jar:. BenchLocal -t 2 -d 100
+ $(JAVA) $(JAVAOPTS) -classpath ../lib/ivy-java.jar:. BenchLocal -t 2 -d 0
+
+jvm:
+ make JAVA=$(JDK14) test1
+ make JAVA=$(JDK14) test2
clean:
- /bin/rm -f $(OBJ)
+ /bin/rm -f $(OBJ) *.class