Commit e3f2144dc203fa77433ff2c6df20e3c4fe57235d
test
cel committed on 8/31/2018, 2:22:21 AMParent: 0a1f41b812c27e9ddccaae10f72b6312f3dda913
Files changed
Makefile | changed |
test.sh | added |
Makefile | |||
---|---|---|---|
@@ -11,8 +11,11 @@ | |||
11 | 11 … | LDLIBS = -lssl | |
12 | 12 … | ||
13 | 13 … | all: $(BIN) | |
14 | 14 … | ||
15 … | +test: all | ||
16 … | + ./test.sh | ||
17 … | + | ||
15 | 18 … | $(BIN): $(BIN).c | |
16 | 19 … | ||
17 | 20 … | install: all | |
18 | 21 … | @mkdir -vp $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 |
test.sh | ||
---|---|---|
@@ -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