blob: f7fcf007c562bedc0df98338e585ae7ba5e6a68a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
fail=0
$BINREF/progctl.sh progdefs.sh start server 1
$BINREF/runjava PollRPCServer tcp/localhost:$PORT_0 || fail=1
$BINREF/runjava MockupInvoke tcp/localhost:$PORT_0 aaa bbb > out.txt || fail=1
$BINREF/runjava MockupInvoke tcp/localhost:$PORT_0 bbb ccc >> out.txt || fail=1
$BINREF/runjava MockupInvoke tcp/localhost:$PORT_0 ccc ddd >> out.txt || fail=1
$BINREF/runjava MockupInvoke tcp/localhost:$PORT_0 ddd eee >> out.txt || fail=1
$BINREF/runjava MockupInvoke tcp/localhost:$PORT_0 eee fff >> out.txt || fail=1
$BINREF/progctl.sh progdefs.sh stop server 1
diff -u out.txt ref.txt || fail=1
exit $fail
|