Skip to content

Commit 33c1dae

Browse files
committed
DTNN-132 Add bpcat test to README
1 parent 1fb1a2d commit 33c1dae

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ Run CMake and make all to build bplib and the bplib tests.
164164
make all
165165
```
166166

167+
#### Test bplib with bpcat
167168
3. Test bplib stand alone
168169

169170
The example program `bpcat` referenced below is available in the bplib stand alone build.
@@ -188,6 +189,19 @@ Example:
188189
./bplib-build-matrix-Debug-POSIX/app/bpcat -l ipn://101.1 -r ipn://201.1
189190
```
190191

192+
To test with bpcat:
193+
194+
1. Open two terminal windows and have them both visible. The test runs `bpcat` as a receiver in one window and a sender in the other.
195+
2. In both terminals run: `cd "${BPLIB_HOME}/bplib-build-matrix-Debug/POSIX/app"`
196+
3. The files `bpcat` and `Makefile` should be in the current directory.
197+
4. In one terminal, create the `storage` folder required for the test.
198+
`mkdir storage`
199+
5. In the same terminal, run the receiver with:
200+
`./bpcat -l ipn://101.1 -r ipn://201.1 |& tee recv.log`
201+
6. In the other terminal, run the sender with: `./bpcat -l ipn://201.1 -r ipn://101.1 -i Makefile |& tee send.log`
202+
7. For a successful test the contents of the Makefile appear in the receiver terminal.
203+
8. Terminate `bpcat` in both terminal windows by pressing `CTRL-C` in each window.
204+
191205
----------------------------------------------------------------------
192206
## 3. Application Design
193207
----------------------------------------------------------------------

0 commit comments

Comments
 (0)