diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-07-30 09:05:58 +0800 |
---|---|---|
committer | Wei-Ning Huang <aitjcize@gmail.com> | 2018-07-30 09:05:58 +0800 |
commit | 279daea6e004ab6ad9d079ccc35b7c52d79630ad (patch) | |
tree | 6e07c9ddf5608339c216c4657250f7df238bd75e /GNUmakefile | |
parent | 568ce1f526d10184af2ccfe342394f57ae689a14 (diff) | |
download | dexon-consensus-279daea6e004ab6ad9d079ccc35b7c52d79630ad.tar dexon-consensus-279daea6e004ab6ad9d079ccc35b7c52d79630ad.tar.gz dexon-consensus-279daea6e004ab6ad9d079ccc35b7c52d79630ad.tar.bz2 dexon-consensus-279daea6e004ab6ad9d079ccc35b7c52d79630ad.tar.lz dexon-consensus-279daea6e004ab6ad9d079ccc35b7c52d79630ad.tar.xz dexon-consensus-279daea6e004ab6ad9d079ccc35b7c52d79630ad.tar.zst dexon-consensus-279daea6e004ab6ad9d079ccc35b7c52d79630ad.zip |
Add a config that PeerServer can shutdown after receiving enough of block. (#19)
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile index 85307e6..1680919 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -77,3 +77,13 @@ check-format: exit 1; \ fi +.ONESHELL: +test-sim: all + @rm -rf build/test-sim + @mkdir build/test-sim + @cp test_config/test.toml build/test-sim/ + @cd build/test-sim ; ../dexcon-simulation-peer-server -config test.toml >& server.log & + @cd build/test-sim ; ../dexcon-simulation -config test.toml >& /dev/null + @if grep "error" build/test-sim/server.log -q -i; then \ + exit 1; \ + fi |