aboutsummaryrefslogtreecommitdiff
path: root/tests/TESTBENCH
diff options
context:
space:
mode:
authorjestin2003-01-07 17:13:27 +0000
committerjestin2003-01-07 17:13:27 +0000
commit5690d15d5fc2484c787a9a05ebc3f1a45d8e6eca (patch)
tree62e1bfbd270ab4b734f31bfaf104813bbb459202 /tests/TESTBENCH
parent95d8c5dcb9b85b57cd9516c52690db5679d6fc78 (diff)
downloadivy-java-5690d15d5fc2484c787a9a05ebc3f1a45d8e6eca.zip
ivy-java-5690d15d5fc2484c787a9a05ebc3f1a45d8e6eca.tar.gz
ivy-java-5690d15d5fc2484c787a9a05ebc3f1a45d8e6eca.tar.bz2
ivy-java-5690d15d5fc2484c787a9a05ebc3f1a45d8e6eca.tar.xz
Ancienne API
Diffstat (limited to 'tests/TESTBENCH')
-rw-r--r--tests/TESTBENCH68
1 files changed, 55 insertions, 13 deletions
diff --git a/tests/TESTBENCH b/tests/TESTBENCH
index 81fc593..9e6383e 100644
--- a/tests/TESTBENCH
+++ b/tests/TESTBENCH
@@ -1,18 +1,60 @@
-How to check if it doesn't work ?
+-------------------------------------------------------------------------------
-- java -DIVY_DEBUG fr.dgac.ivy.Probe ...
+How to check if it doesn't work ? -> There is now a simple testbench.
+It can fail if the architecture doesn't support broadcast on loopback address
+( change the IVY_BUS variable, e.g.: on MacOSX.2, or Solaris ).
-- check the rendez-vous, either in UDP broadcast or TCP multicast
- * network available
- * it works without ivy
- * it works in ivy-c
- * it should work in ivy-java
+to test every feature $ make
+For the old API and regexp Check$ make test1
+For the new API Check $ make api
+For the end of input check $ make probe
+To be more robust $ repeat 100 make
-- it should be symetric, whatever the order of the connections ( client A,
- client B, client C vs A, C, B ... )
+Things that are yet to be written, but not easy:
+- automate tests with other implementations
+- check the network connectivity (UDP broadcast, multicast)
+- check the symmetry, whatever the order of the connections ( client A,
+ client B, client C vs A, C, B ... )
-- the regexps should function properly, let's build a little testbench
+-------------------------------------------------------------------------------
+How to launch the testbenchs.
+
+ First, recompile the class with the right library.
+ in src, make JAVAC=/path/to/javac JAVA=/path/to/java
+ in tests, make JAVAC=/path/to/javac JAVA=/path/to/java
+ in examples, make JAVAC=/path/to/javac JAVA=/path/to/java
+ It is possible to add an additionnal CLASSPATH make variable.
+
+ For simplicity's sake, I personnaly use links from src/fr to tests/fr and
+ to examples/fr
+
+ For older JDK (1.1) , you must add swingall.jar (available from sun's web
+ site) and classes.zip in your classpath. An example is provided in the
+ makefile.
+
+ Here is the list of commands I use and platforms I have tested successfully:
+
+ linux:
+
+ java version "1.4.1"
+ Java(TM) 2 Runtime Environment, Standard Edition (build
+ Blackdown-1.4.1-beta)
+ Java HotSpot(TM) Client VM (build Blackdown-1.4.1-beta, mixed mode)
+ all tests ok.
+
+ jdk1.1.8
+ java version "1.1.8"
+ be sure to recompile all the classes !!!
+ linux blackdown 1.1.8_v3
+ there is the JVM bug (see BUGS for details)
+
+ java version "1.2.2"
+ Classic VM (build Linux_JDK_1.2.2_FCS, native threads, sunwjit)
+ there is a possible JVM bug ( see BUGS for details ) leading to a
+ segmentation violation
+
+ java version "1.3.1"
+ Java(TM) 2 Runtime Environment, Standard Edition (build
+ Blackdown-1.3.1-FCS)
+ Java HotSpot(TM) Client VM (build Blackdown-1.3.1-FCS, mixed mode)
-- Probe:
- should exit on ^D
- should end when receiving a die message