Debian Codegraph @

otherlibs/dune-rpc-lwt/examples/rpc_client/test/rpc-client-example.t/run.t

raw
1 Start Dune in watch mode, sending errors to `/dev/null` to suppress the alerts
2 about using the unstable module Dune_rpc.
3
4 $ export XDG_STATE_HOME="$PWD/.dune.state"
5 $ mkdir $XDG_STATE_HOME
6
7 $ dune build -w 2> /dev/null &
8
9 Wait for the program produced by the above step to exist.
10 $ while ! test -f _build/default/hello.exe; do sleep 1; done
11
12 Run the program. The program takes care of shutting down the build server.
13 $ ../../rpc_client.exe
14 Sending ping to server...
15 Got response from server...
16 Creating progress stream...
17 Waiting for next progress event...
18 Got progress_event: Success
19 Shutting down RPC server...
20
21 $ wait