summaryrefslogtreecommitdiff
path: root/ecp/README
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2024-04-27 01:23:43 +0200
committerUros Majstorovic <majstor@majstor.org>2024-04-27 01:23:43 +0200
commit38fdc24c2cc0c942337481e825c69004c93fc358 (patch)
tree46835e29b2ae3db88035c26359415c22587b777c /ecp/README
parent45e53e043ea0512215316a5ba21bd4cfd0a300e1 (diff)
updated tests
Diffstat (limited to 'ecp/README')
-rw-r--r--ecp/README22
1 files changed, 11 insertions, 11 deletions
diff --git a/ecp/README b/ecp/README
index ec6ae47..557fc9d 100644
--- a/ecp/README
+++ b/ecp/README
@@ -9,16 +9,16 @@ To (re)build library, utilities and tests simply do:
./build.sh (MAKE=gmake ./build.sh on *BSD systems)
In tests subdirectory you will find simple test examples. To test vc_server and vc_client (vconn feature) do:
- util/mknode n1
- util/mknode n2
- util/mknode n3
- util/mknode server
- cd tests
+ mkdir test/keys
+ util/keygen test/keys/n1.pub test/keys/n1.priv
+ util/keygen test/keys/n2.pub test/keys/n2.priv
+ util/keygen test/keys/n3.pub test/keys/n3.priv
+ util/keygen test/keys/server.pub test/keys/server.priv
+ cd test
Then launch servers (each in its own terminal):
- ./vcs 0.0.0.0:3001 ../n1.priv
- ./vcs 0.0.0.0:3002 ../n2.priv 127.0.0.1:3001 ../n1.pub
- ./vcs 0.0.0.0:3003 ../n3.priv 127.0.0.1:3002 ../n2.pub
- ./vc_server ../server.priv 127.0.0.1:3001 ../n1.pub ../n2.pub ../n3.pub
- ./vc_client ../server.pub 127.0.0.1:3001 ../n1.pub ../n2.pub ../n3.pub
- \ No newline at end of file
+ ./vcs 0.0.0.0:3001 keys/n1.priv
+ ./vcs 0.0.0.0:3002 keys/n2.priv 127.0.0.1:3001 keys/n1.pub
+ ./vcs 0.0.0.0:3003 keys/n3.priv 127.0.0.1:3002 keys/n2.pub
+ ./vc_server keys/server.priv 127.0.0.1:3001 keys/n1.pub keys/n2.pub keys/n3.pub
+ ./vc_client keys/server.pub 127.0.0.1:3001 keys/n1.pub keys/n2.pub keys/n3.pub