git ssb

0+

cel / electrumc



Commit e3f2144dc203fa77433ff2c6df20e3c4fe57235d

test

cel committed on 8/31/2018, 2:22:21 AM
Parent: 0a1f41b812c27e9ddccaae10f72b6312f3dda913

Files changed

Makefilechanged
test.shadded
MakefileView
@@ -11,8 +11,11 @@
1111 LDLIBS = -lssl
1212
1313 all: $(BIN)
1414
15 +test: all
16 + ./test.sh
17 +
1518 $(BIN): $(BIN).c
1619
1720 install: all
1821 @mkdir -vp $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
test.shView
@@ -1,0 +1,11 @@
1 +#!/bin/sh
2 +
3 +nc -l -p 9898 <<EOF | diff -u - /dev/fd/3 3<<EOF3 &
4 +{"jsonrpc": "2.0", "result": {"confirmed": 0, "unconfirmed": 0}, "id": 0}
5 +EOF
6 +{"id":0,"method":"foo","params":"bar"}
7 +EOF3
8 +sleep 0.1
9 +./electrumc localhost:9898:t foo \"bar\" | diff -u - /dev/fd/3 3<<EOF3
10 +{"jsonrpc": "2.0", "result": {"confirmed": 0, "unconfirmed": 0}, "id": 0}
11 +EOF3

Built with git-ssb-web