Skip to content

Commit

Permalink
more requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
palmskog committed May 6, 2017
1 parent 55c7ce3 commit cf0e249
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@ Definitions and proofs:
- [`Verdi`](https://github.com/uwplse/verdi)
- [`StructTact`](https://github.com/uwplse/StructTact)

Executable code:
Executable program:

- [`OCaml 4.02.3`](https://ocaml.org) (or later)
- [`OCamlbuild`](https://github.com/ocaml/ocamlbuild)
- [`ocamlfind`](http://projects.camlcity.org/projects/findlib.html)
- [`verdi-runtime`](https://github.com/DistributedComponents/verdi-runtime)

Client to interface with program:

- [`Python 2.7`](https://www.python.org/download/releases/2.7/)

Testing of unverified code:

- [`OUnit 2.0.0`](http://ounit.forge.ocamlcore.org)

Building
--------

Expand Down Expand Up @@ -68,6 +76,9 @@ and port 9000 for inter-node communication, use the following:
$ ./LockServMain.native -port 8000 -me Client-1 -node Server,192.168.0.1:9000 \
-node Client-0,192.168.0.2:9000 -node Client-1,192.168.0.3:9000

Client Program for LockServ
---------------------------

There is a simple client written in Python in the directory `extraction/lockserv/script` that can be used as follows:

$ python -i client.py
Expand All @@ -76,6 +87,17 @@ There is a simple client written in Python in the directory `extraction/lockserv
'Locked'
>>> c.send_unlock()

Tests for Unverified Code
-------------------------

Some example unit tests for unverified OCaml code are included in `extraction/lockserv/test`. To execute these tests, first install the OUnit library via OPAM:

```
opam install ounit
```

Then, go to `extraction/lockserv` and run `make test`.

LockServ with Sequence Numbering
--------------------------------

Expand Down

0 comments on commit cf0e249

Please sign in to comment.