Skip to content

Commit 733035b

Browse files
committed
Merge #8504: test: Remove java comparison tool
eb0c52e travis: Remove hostname hack (Wladimir J. van der Laan) 3c5251d test: Remove java comparison tool (Wladimir J. van der Laan)
2 parents e753eae + eb0c52e commit 733035b

File tree

6 files changed

+5
-82
lines changed

6 files changed

+5
-82
lines changed

.travis.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
sudo: required
22
dist: trusty
3-
4-
#workaround for https://github.com/travis-ci/travis-ci/issues/5227
5-
addons:
6-
hostname: bitcoin-tester
7-
83
os: linux
94
language: generic
105
cache:

Makefile.am

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ OSX_PACKAGING = $(OSX_DEPLOY_SCRIPT) $(OSX_FANCY_PLIST) $(OSX_INSTALLER_ICONS) \
4747
$(top_srcdir)/contrib/macdeploy/detached-sig-apply.sh \
4848
$(top_srcdir)/contrib/macdeploy/detached-sig-create.sh
4949

50-
COVERAGE_INFO = baseline_filtered_combined.info baseline.info block_test.info \
50+
COVERAGE_INFO = baseline_filtered_combined.info baseline.info \
5151
leveldb_baseline.info test_bitcoin_filtered.info total_coverage.info \
52-
baseline_filtered.info block_test_filtered.info rpc_test.info rpc_test_filtered.info \
52+
baseline_filtered.info rpc_test.info rpc_test_filtered.info \
5353
leveldb_baseline_filtered.info test_bitcoin_coverage.info test_bitcoin.info
5454

5555
dist-hook:
@@ -175,16 +175,6 @@ test_bitcoin.info: baseline_filtered_combined.info
175175
test_bitcoin_filtered.info: test_bitcoin.info
176176
$(LCOV) -r $< "/usr/include/*" -o $@
177177

178-
block_test.info: test_bitcoin_filtered.info
179-
$(MKDIR_P) qa/tmp
180-
-@TIMEOUT=15 qa/pull-tester/run-bitcoind-for-test.sh $(JAVA) -jar $(JAVA_COMPARISON_TOOL) qa/tmp/compTool $(COMPARISON_TOOL_REORG_TESTS)
181-
$(LCOV) -c -d $(abs_builddir)/src --t BitcoinJBlockTest -o $@
182-
$(LCOV) -z -d $(abs_builddir)/src
183-
$(LCOV) -z -d $(abs_builddir)/src/leveldb
184-
185-
block_test_filtered.info: block_test.info
186-
$(LCOV) -r $< "/usr/include/*" -o $@
187-
188178
rpc_test.info: test_bitcoin_filtered.info
189179
-@TIMEOUT=15 python qa/pull-tester/rpc-tests.py $(EXTENDED_RPC_TESTS)
190180
$(LCOV) -c -d $(abs_builddir)/src --t rpc-tests -o $@
@@ -197,8 +187,8 @@ rpc_test_filtered.info: rpc_test.info
197187
test_bitcoin_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info
198188
$(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a test_bitcoin_filtered.info -o $@
199189

200-
total_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info block_test_filtered.info rpc_test_filtered.info
201-
$(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a test_bitcoin_filtered.info -a block_test_filtered.info -a rpc_test_filtered.info -o $@ | $(GREP) "\%" | $(AWK) '{ print substr($$3,2,50) "/" $$5 }' > coverage_percent.txt
190+
total_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info rpc_test_filtered.info
191+
$(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a test_bitcoin_filtered.info -a rpc_test_filtered.info -o $@ | $(GREP) "\%" | $(AWK) '{ print substr($$3,2,50) "/" $$5 }' > coverage_percent.txt
202192

203193
test_bitcoin.coverage/.dirstamp: test_bitcoin_coverage.info
204194
$(GENHTML) -s $< -o $(@D)
@@ -212,12 +202,6 @@ cov: test_bitcoin.coverage/.dirstamp total.coverage/.dirstamp
212202

213203
endif
214204

215-
if USE_COMPARISON_TOOL
216-
check-local:
217-
$(MKDIR_P) qa/tmp
218-
@qa/pull-tester/run-bitcoind-for-test.sh $(JAVA) -jar $(JAVA_COMPARISON_TOOL) qa/tmp/compTool $(COMPARISON_TOOL_REORG_TESTS) 2>&1
219-
endif
220-
221205
dist_noinst_SCRIPTS = autogen.sh
222206

223207
EXTRA_DIST = $(top_srcdir)/share/genbuild.sh qa/pull-tester/rpc-tests.py qa/rpc-tests $(DIST_DOCS) $(WINDOWS_PACKAGING) $(OSX_PACKAGING) $(BIN_CHECKS)

configure.ac

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ AC_PATH_TOOL(RANLIB, ranlib)
6666
AC_PATH_TOOL(STRIP, strip)
6767
AC_PATH_TOOL(GCOV, gcov)
6868
AC_PATH_PROG(LCOV, lcov)
69-
AC_PATH_PROG(JAVA, java)
7069
AC_PATH_PROGS([PYTHON], [python3 python2.7 python2 python])
7170
AC_PATH_PROG(GENHTML, genhtml)
7271
AC_PATH_PROG([GIT], [git])
@@ -113,16 +112,6 @@ AC_ARG_ENABLE(bench,
113112
[use_bench=$enableval],
114113
[use_bench=yes])
115114

116-
AC_ARG_WITH([comparison-tool],
117-
AS_HELP_STRING([--with-comparison-tool],[path to java comparison tool (requires --enable-tests)]),
118-
[use_comparison_tool=$withval],
119-
[use_comparison_tool=no])
120-
121-
AC_ARG_ENABLE([comparison-tool-reorg-tests],
122-
AS_HELP_STRING([--enable-comparison-tool-reorg-tests],[enable expensive reorg tests in the comparison tool (default no)]),
123-
[use_comparison_tool_reorg_tests=$enableval],
124-
[use_comparison_tool_reorg_tests=no])
125-
126115
AC_ARG_ENABLE([extended-rpc-tests],
127116
AS_HELP_STRING([--enable-extended-rpc-tests],[enable expensive RPC tests when using lcov (default no)]),
128117
[use_extended_rpc_tests=$enableval],
@@ -382,19 +371,6 @@ if test x$use_pkgconfig = xyes; then
382371
])
383372
fi
384373

385-
if test x$use_comparison_tool != xno; then
386-
AC_SUBST(JAVA_COMPARISON_TOOL, $use_comparison_tool)
387-
fi
388-
389-
if test x$use_comparison_tool_reorg_tests != xno; then
390-
if test x$use_comparison_tool = x; then
391-
AC_MSG_ERROR("comparison tool reorg tests but comparison tool was not specified")
392-
fi
393-
AC_SUBST(COMPARISON_TOOL_REORG_TESTS, 1)
394-
else
395-
AC_SUBST(COMPARISON_TOOL_REORG_TESTS, 0)
396-
fi
397-
398374
if test x$use_extended_rpc_tests != xno; then
399375
AC_SUBST(EXTENDED_RPC_TESTS, -extended)
400376
fi
@@ -406,18 +382,12 @@ if test x$use_lcov = xyes; then
406382
if test x$GCOV = x; then
407383
AC_MSG_ERROR("lcov testing requested but gcov not found")
408384
fi
409-
if test x$JAVA = x; then
410-
AC_MSG_ERROR("lcov testing requested but java not found")
411-
fi
412385
if test x$PYTHON = x; then
413386
AC_MSG_ERROR("lcov testing requested but python not found")
414387
fi
415388
if test x$GENHTML = x; then
416389
AC_MSG_ERROR("lcov testing requested but genhtml not found")
417390
fi
418-
if test x$use_comparison_tool = x; then
419-
AC_MSG_ERROR("lcov testing requested but comparison tool was not specified")
420-
fi
421391
LCOV="$LCOV --gcov-tool=$GCOV"
422392
AX_CHECK_COMPILE_FLAG([--coverage],[CXXFLAGS="$CXXFLAGS --coverage"],
423393
[AC_MSG_ERROR("lcov testing requested but --coverage flag does not work")])
@@ -1028,8 +998,6 @@ AM_CONDITIONAL([ENABLE_QT_TESTS],[test x$BUILD_TEST_QT = xyes])
1028998
AM_CONDITIONAL([ENABLE_BENCH],[test x$use_bench = xyes])
1029999
AM_CONDITIONAL([USE_QRCODE], [test x$use_qr = xyes])
10301000
AM_CONDITIONAL([USE_LCOV],[test x$use_lcov = xyes])
1031-
AM_CONDITIONAL([USE_COMPARISON_TOOL],[test x$use_comparison_tool != xno])
1032-
AM_CONDITIONAL([USE_COMPARISON_TOOL_REORG_TESTS],[test x$use_comparison_tool_reorg_test != xno])
10331001
AM_CONDITIONAL([GLIBC_BACK_COMPAT],[test x$use_glibc_compat = xyes])
10341002
AM_CONDITIONAL([HARDEN],[test x$use_hardening = xyes])
10351003

depends/config.site.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ fi
1919
if test -z $with_protoc_bindir; then
2020
with_protoc_bindir=$depends_prefix/native/bin
2121
fi
22-
if test -z $with_comparison_tool; then
23-
with_comparison_tool=$depends_prefix/native/share/BitcoindComparisonTool_jar/BitcoindComparisonTool.jar
24-
fi
2522

2623

2724
if test -z $enable_wallet && test -n "@no_wallet@"; then

depends/packages/native_comparisontool.mk

Lines changed: 0 additions & 21 deletions
This file was deleted.

depends/packages/packages.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
packages:=boost openssl libevent zeromq
2-
native_packages := native_ccache native_comparisontool
2+
native_packages := native_ccache
33

44
qt_native_packages = native_protobuf
55
qt_packages = qrencode protobuf

0 commit comments

Comments
 (0)