aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
authorjestin2011-07-22 16:53:52 +0000
committerjestin2011-07-22 16:53:52 +0000
commita2d52b943e3064b8ca86a8a59b8970898b373a34 (patch)
tree8a52265d63c6873ff95fb12d7482284591bbb7fb /tests/Makefile
parentfc9a1e00e64dfbfc4b9d7abf9b1660f2abbdc3ba (diff)
downloadivy-java-a2d52b943e3064b8ca86a8a59b8970898b373a34.zip
ivy-java-a2d52b943e3064b8ca86a8a59b8970898b373a34.tar.gz
ivy-java-a2d52b943e3064b8ca86a8a59b8970898b373a34.tar.bz2
ivy-java-a2d52b943e3064b8ca86a8a59b8970898b373a34.tar.xz
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile136
1 files changed, 118 insertions, 18 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 9801c09..d8a6e8e 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -3,7 +3,7 @@
# 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=../ivy-1.2.12.jar
+IVYPATH=../build/jar/ivy-java.jar
CLASSPATH=-classpath classes:$(IVYPATH):$(GNUPATH)
SRC = *.java
@@ -14,46 +14,146 @@ SRC = *.java
#LOCALNET=10.0.0.255:3456
#LOCALNET=192.168.19:3456
LOCALNET=
-MULTICAST=228.1.2.3:4567
-DOMAIN=
-#DOMAIN=-b $(MULTICAST)
-
+MULTICAST=224.5.6.7:8910
+#DOMAIN=
+DOMAIN=-b $(MULTICAST)
+DEBUG=
+#DEBUG= -DIVY_DEBUG
all:
+ /bin/rm -fR -- classes
+ mkdir classes
$(JAVAC) -d classes $(JAVACOPTS) $(CLASSPATH) $(SRC)
@echo "all modules built. run make run"
-run: nl api unitaires test1 test2 probe async stop request
+run: sendnow sendnowself nl api unitaires probe stop request test1 async test2
request:
- $(JAVA) $(JAVAOPTS) $(CLASSPATH) Request $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST REQUEST"
+ @echo "*****************************"
+ $(JAVA) $(DEBUG) $(DEBUG) $(JAVAOPTS) $(CLASSPATH) Request $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST REQUEST successful"
+ @echo "*****************************"
+ @echo "\n\n\n"
+
+sendnowself:
+ @echo "*****************************"
+ @echo "TEST SENDNOW SELF"
+ @echo "*****************************"
+ $(JAVA) $(DEBUG) $(DEBUG) $(JAVAOPTS) $(CLASSPATH) SendNowSelf $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST SENDNOW SELF successful"
+ @echo "*****************************"
+ @echo "\n\n\n"
+
+sendnow:
+ @echo "*****************************"
+ @echo "TEST SENDNOW"
+ @echo "*****************************"
+ $(JAVA) $(DEBUG) $(DEBUG) $(JAVAOPTS) $(CLASSPATH) SendNow $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST SENDNOW successful"
+ @echo "*****************************"
+ @echo "\n\n\n"
nl:
- $(JAVA) $(JAVAOPTS) $(CLASSPATH) NewLine -n 100000 $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST NEWLINE"
+ @echo "*****************************"
+ $(JAVA) $(DEBUG) $(JAVAOPTS) $(CLASSPATH) NewLine -n 100000 $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST NEWLINE successful"
+ @echo "*****************************"
+ @echo "\n\n\n"
probe:
- $(JAVA) $(JAVAOPTS) $(CLASSPATH) fr.dgac.ivy.tools.Probe $(DOMAIN) < /dev/null
+ @echo "*****************************"
+ @echo "TEST PROBE < /dev/null"
+ @echo "*****************************"
+ $(JAVA) $(DEBUG) $(JAVAOPTS) $(CLASSPATH) fr.dgac.ivy.tools.Probe $(DOMAIN) < /dev/null
+ @echo "*****************************"
+ @echo "TEST PROBE SUCCESSFUL"
+ @echo "*****************************"
+ @echo "\n\n\n"
+
api:
- $(JAVA) $(JAVAOPTS) $(CLASSPATH) TestApi $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST API"
+ @echo "*****************************"
+ $(JAVA) $(DEBUG) $(JAVAOPTS) $(CLASSPATH) TestApi $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST API SUCCESSFUL"
+ @echo "*****************************"
+ @echo "\n\n\n"
+
async:
- $(JAVA) $(JAVAOPTS) $(CLASSPATH) AsyncAPI -r -l 5 -d 1 -s 10 $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST ASYNC"
+ @echo "*****************************"
+ $(JAVA) $(DEBUG) $(JAVAOPTS) $(CLASSPATH) AsyncAPI -r -l 5 -d 1 -s 10 $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST ASYNC SUCCESSFUL"
+ @echo "*****************************"
+ @echo "\n\n\n"
stop:
- $(JAVA) $(JAVAOPTS) $(CLASSPATH) StopStart $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST STOP"
+ @echo "*****************************"
+ $(JAVA) $(DEBUG) $(JAVAOPTS) $(CLASSPATH) StopStart $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST STOP SUCCESSFUL"
+ @echo "*****************************"
+ @echo "\n\n\n"
unitaires:
- $(JAVA) $(JAVAOPTS) $(CLASSPATH) fr.dgac.ivy.Ivy $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST UNITAIRE"
+ @echo "*****************************"
+ $(JAVA) $(DEBUG) $(JAVAOPTS) $(CLASSPATH) Unitaire $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST UNITAIRE SUCCESSFUL"
+ @echo "*****************************"
+ @echo "\n\n\n"
test1: $(OBJ)
- $(JAVA) $(JAVAOPTS) $(CLASSPATH) BenchLocal $(DOMAIN)
- $(JAVA) $(JAVAOPTS) $(CLASSPATH) BenchLocal -d 100 $(DOMAIN)
- $(JAVA) $(JAVAOPTS) $(CLASSPATH) BenchLocal -d 0 $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST Bench"
+ @echo "*****************************"
+ $(JAVA) $(DEBUG) $(JAVAOPTS) $(CLASSPATH) BenchLocal $(DOMAIN)
+ $(JAVA) $(DEBUG) $(JAVAOPTS) $(CLASSPATH) BenchLocal -d 100 $(DOMAIN)
+ $(JAVA) $(DEBUG) $(JAVAOPTS) $(CLASSPATH) BenchLocal -d 0 $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST Bench SUCCESSFUL"
+ @echo "*****************************"
+ @echo "\n\n\n"
test2: $(OBJ)
- $(JAVA) $(JAVAOPTS) $(CLASSPATH) BenchLocal -t 2 -d 100 $(DOMAIN)
- $(JAVA) $(JAVAOPTS) $(CLASSPATH) BenchLocal -t 2 -d 0 $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST Bench 2"
+ @echo "*****************************"
+ $(JAVA) $(DEBUG) $(JAVAOPTS) $(CLASSPATH) BenchLocal -t 2 -d 100 $(DOMAIN)
+ $(JAVA) $(DEBUG) $(JAVAOPTS) $(CLASSPATH) BenchLocal -t 2 -d 0 $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST Bench 2 SUCCESSFUL"
+ @echo "*****************************"
+ @echo "\n\n\n"
+
+swing: $(OBJ)
+ @echo "*****************************"
+ @echo "TEST Swing "
+ @echo "WARNING, this is manual, you have to use the GUI to test ..."
+ @echo "TODO, add java.awt.Robot support"
+ @echo "*****************************"
+ $(JAVA) $(DEBUG) $(JAVAOPTS) $(CLASSPATH) SwingIvy $(DOMAIN)
+ @echo "*****************************"
+ @echo "TEST Swing Successful"
+ @echo "*****************************"
+ @echo "\n\n\n"
clean:
/bin/rm -fR $(OBJ) *.class classes