Skip to content

Commit 17d0e63

Browse files
committed
Merge pull request #6686
745f909 travis: install a recent libzmq and pyzmq for tests (Cory Fields) a9c27cd [travis] add zmq python module (Jonas Schnelli) 110a1fd enable zmq-test in rpc-tests.sh (Jonas Schnelli)
2 parents 4899a04 + 745f909 commit 17d0e63

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,19 @@ matrix:
3333
- compiler: ": Win32"
3434
env: HOST=i686-w64-mingw32 PPA="ppa:ubuntu-wine/ppa" PACKAGES="nsis gcc-mingw-w64-i686 g++-mingw-w64-i686 binutils-mingw-w64-i686 mingw-w64-dev wine1.7 bc" RUN_TESTS=true GOAL="deploy" BITCOIN_CONFIG="--enable-gui --enable-reduce-exports" MAKEJOBS="-j2"
3535
- compiler: ": 32-bit + dash"
36-
env: HOST=i686-pc-linux-gnu PACKAGES="g++-multilib bc" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++" USE_SHELL="/bin/dash"
36+
env: HOST=i686-pc-linux-gnu PACKAGES="g++-multilib bc python-zmq" PPA="ppa:chris-lea/zeromq" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++" USE_SHELL="/bin/dash"
3737
- compiler: ": Win64"
3838
env: HOST=x86_64-w64-mingw32 PPA="ppa:ubuntu-wine/ppa" PACKAGES="nsis gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 binutils-mingw-w64-x86-64 mingw-w64-dev wine1.7 bc" RUN_TESTS=true GOAL="deploy" BITCOIN_CONFIG="--enable-gui --enable-reduce-exports" MAKEJOBS="-j2"
3939
- compiler: ": bitcoind"
40-
env: HOST=x86_64-unknown-linux-gnu PACKAGES="bc" DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports CPPFLAGS=-DDEBUG_LOCKORDER"
40+
env: HOST=x86_64-unknown-linux-gnu PACKAGES="bc python-zmq" PPA="ppa:chris-lea/zeromq" DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports CPPFLAGS=-DDEBUG_LOCKORDER"
4141
- compiler: ": No wallet"
4242
env: HOST=x86_64-unknown-linux-gnu DEP_OPTS="NO_WALLET=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
4343
- compiler: ": Cross-Mac"
4444
env: HOST=x86_64-apple-darwin11 PACKAGES="cmake libcap-dev libz-dev libbz2-dev" BITCOIN_CONFIG="--enable-reduce-exports" OSX_SDK=10.9 GOAL="deploy"
4545
exclude:
4646
- compiler: gcc
4747
install:
48+
- if [ -n "$PACKAGES" ]; then sudo rm -f /etc/apt/sources.list.d/travis_ci_zeromq3-source.list; fi
4849
- if [ -n "$PPA" ]; then travis_retry sudo add-apt-repository "$PPA" -y; fi
4950
- if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get update; fi
5051
- if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get install --no-install-recommends --no-upgrade -qq $PACKAGES; fi

qa/pull-tester/rpc-tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ testScriptsExt=(
6060
'mempool_packages.py'
6161
);
6262

63-
#if [ "x$ENABLE_ZMQ" = "x1" ]; then
64-
# testScripts+=('zmq_test.py')
65-
#fi
63+
if [ "x$ENABLE_ZMQ" = "x1" ]; then
64+
testScripts+=('zmq_test.py')
65+
fi
6666

6767
extArg="-extended"
6868
passOn=${@#$extArg}

qa/rpc-tests/zmq_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ def setup_nodes(self):
3232
self.zmqSubSocket.setsockopt(zmq.SUBSCRIBE, "hashblock")
3333
self.zmqSubSocket.setsockopt(zmq.SUBSCRIBE, "hashtx")
3434
self.zmqSubSocket.connect("tcp://127.0.0.1:%i" % self.port)
35-
# Note: proxies are not used to connect to local nodes
36-
# this is because the proxy to use is based on CService.GetNetwork(), which return NET_UNROUTABLE for localhost
3735
return start_nodes(4, self.options.tmpdir, extra_args=[
3836
['-zmqpubhashtx=tcp://127.0.0.1:'+str(self.port), '-zmqpubhashblock=tcp://127.0.0.1:'+str(self.port)],
3937
[],

0 commit comments

Comments
 (0)