Author

Topic: Unit tests return "Test suite is skipped because disabled" | Please Help (Read 159 times)

hero member
Activity: 2674
Merit: 713
Nothing lasts forever
I got the following output for git rev-parse HEAD.

Code:
0b2abaa666d6f3331e3246ffd64dd47946e9dcdf
Possibly a SHA1 hash  Huh
It is, and that's what I was looking for.

The exact version is "Bitcoin Core version v0.20.99.0-0b2abaa66" and I have not changed anything in the code so hopefully there shouldn't be any uncomitted changes.
Code:
Bitcoin Core version v0.20.99.0-0b2abaa66
Copyright (C) 2009-2020 The Bitcoin Core developers

Please contribute if you find Bitcoin Core useful. Visit
for further information about the software.
The source code is available from .

This is experimental software.
Distributed under the MIT software license, see the accompanying file COPYING
or
Doesn't look like there are any uncommitted changes.



I built this commit and it tested without any errors. As a basic troubleshooting step, I suggest that you first do make clean and then rebuild and test with make check. If it still fails, then I'll take a look at the config.log you linked earlier.

Thank you so much. This worked and all the unit test were executed successfully passing the 3 cases.
Also, I tried executing the functional test example_test.py and that was executed successfully too.

Thank you again  Smiley

Well, what was the issue at the first place ? I wonder why it didn't run earlier  Huh
staff
Activity: 3374
Merit: 6530
Just writing some code
I got the following output for git rev-parse HEAD.

Code:
0b2abaa666d6f3331e3246ffd64dd47946e9dcdf
Possibly a SHA1 hash  Huh
It is, and that's what I was looking for.

The exact version is "Bitcoin Core version v0.20.99.0-0b2abaa66" and I have not changed anything in the code so hopefully there shouldn't be any uncomitted changes.
Code:
Bitcoin Core version v0.20.99.0-0b2abaa66
Copyright (C) 2009-2020 The Bitcoin Core developers

Please contribute if you find Bitcoin Core useful. Visit
for further information about the software.
The source code is available from .

This is experimental software.
Distributed under the MIT software license, see the accompanying file COPYING
or
Doesn't look like there are any uncommitted changes.



I built this commit and it tested without any errors. As a basic troubleshooting step, I suggest that you first do make clean and then rebuild and test with make check. If it still fails, then I'll take a look at the config.log you linked earlier.
hero member
Activity: 2674
Merit: 713
Nothing lasts forever
What commit are you currently building? You can get this information by doing git rev-parse HEAD.

What is the exact version you are using (this will include the shortened git commit id and whether the build contains uncommitted changes)? You can get this by doing src/bitcoind -version, the full version number is in the first line.
I got the following output for git rev-parse HEAD.

Code:
0b2abaa666d6f3331e3246ffd64dd47946e9dcdf
Possibly a SHA1 hash  Huh

The exact version is "Bitcoin Core version v0.20.99.0-0b2abaa66" and I have not changed anything in the code so hopefully there shouldn't be any uncomitted changes.
Code:
Bitcoin Core version v0.20.99.0-0b2abaa66
Copyright (C) 2009-2020 The Bitcoin Core developers

Please contribute if you find Bitcoin Core useful. Visit
for further information about the software.
The source code is available from .

This is experimental software.
Distributed under the MIT software license, see the accompanying file COPYING
or

staff
Activity: 3374
Merit: 6530
Just writing some code
What commit are you currently building? You can get this information by doing git rev-parse HEAD.

What is the exact version you are using (this will include the shortened git commit id and whether the build contains uncommitted changes)? You can get this by doing src/bitcoind -version, the full version number is in the first line.
hero member
Activity: 2674
Merit: 713
Nothing lasts forever
It means that make check skipped those tests because an earlier unit test failed. You can run the unit tests again with by executing src/test/test_bitcoin to get a bit more information on what failed.

Did you make any code changes?
No, I didn't do any code changes yet. I want to get started with it though but I am still struck at running the tests the first time.

I did execute what you said and below is the output.

Code:
(blockchain_fundamentals) [buzz@Ryno bitcoin]$ src/test/test_bitcoin
Running 439 test cases...
unknown location(0): fatal error: in "psbt_wallet_tests/psbt_updater_test": memory access violation at address: 0x00000001: no mapping at fault address
wallet/test/psbt_wallet_tests.cpp(16): last checkpoint: "psbt_updater_test" fixture ctor

*** 1 failure is detected in the test module "Bitcoin Core Test Suite"
test_bitcoin: /usr/include/boost/thread/pthread/condition_variable_fwd.hpp:81: boost::condition_variable::~condition_variable(): Assertion `!posix::pthread_mutex_destroy(&internal_mutex)' failed.
Aborted (core dumped)
staff
Activity: 3374
Merit: 6530
Just writing some code
It means that make check skipped those tests because an earlier unit test failed. You can run the unit tests again with by executing src/test/test_bitcoin to get a bit more information on what failed.

Did you make any code changes?
hero member
Activity: 2674
Merit: 713
Nothing lasts forever
Can someone please help me. I am getting this weird error while running unit tests. Although I haven't disabled anything the output throws multiple lines saying Testsuite is skipped because disabled.
I am not sure but may be it's because I didn't setup the bitcoin core right or something. If so could someone please help me in setting it up the right way.

Note: I have already read the guides and followed all the necessary steps and did the research on forum and google. Didn't help!

Bitcoin Client Software and Version Number: Bitcoin Core 0.20.99
Operating System: 5.8.11-1-MANJARO XFCE
System Hardware Specs: 8 GB Ram with AMD Ryzen 5 3500U and 240 GB SSD
Description of Problem: I have been trying to setup the bitcoin core environment to start contributing towards bitcoin but I am struck in the initial phase.
First I was having problems with installing Berkeley DB4 and spent a week over it and now since that is done and when I run 'make check' to run the unit tests I get below error.

Code:
test/arith_uint256_tests.cpp(18): Test suite "arith_uint256_tests" is skipped because disabled
test/addrman_tests.cpp(123): Test suite "addrman_tests" is skipped because disabled
test/amount_tests.cpp(11): Test suite "amount_tests" is skipped because disabled
test/allocator_tests.cpp(14): Test suite "allocator_tests" is skipped because disabled
test/base32_tests.cpp(10): Test suite "base32_tests" is skipped because disabled
test/base58_tests.cpp(19): Test suite "base58_tests" is skipped because disabled
test/base64_tests.cpp(10): Test suite "base64_tests" is skipped because disabled
test/bech32_tests.cpp(11): Test suite "bech32_tests" is skipped because disabled
test/bip32_tests.cpp(124): Test suite "bip32_tests" is skipped because disabled
test/blockchain_tests.cpp(50): Test suite "blockchain_tests" is skipped because disabled
test/blockencodings_tests.cpp(17): Test suite "blockencodings_tests" is skipped because disabled
test/blockfilter_tests.cpp(17): Test suite "blockfilter_tests" is skipped because disabled
test/blockfilter_index_tests.cpp(19): Test suite "blockfilter_index_tests" is skipped because disabled
test/bloom_tests.cpp(24): Test suite "bloom_tests" is skipped because disabled
test/bswap_tests.cpp(10): Test suite "bswap_tests" is skipped because disabled
test/checkqueue_tests.cpp(23): Test suite "checkqueue_tests" is skipped because disabled
test/coins_tests.cpp(100): Test suite "coins_tests" is skipped because disabled
test/compilerbug_tests.cpp(8): Test suite "compilerbug_tests" is skipped because disabled
test/compress_tests.cpp(25): Test suite "compress_tests" is skipped because disabled
test/crypto_tests.cpp(25): Test suite "crypto_tests" is skipped because disabled
test/cuckoocache_tests.cpp(25): Test suite "cuckoocache_tests" is skipped because disabled
test/denialofservice_tests.cpp(69): Test suite "denialofservice_tests" is skipped because disabled
test/descriptor_tests.cpp(282): Test suite "descriptor_tests" is skipped because disabled
test/flatfile_tests.cpp(13): Test suite "flatfile_tests" is skipped because disabled
test/fs_tests.cpp(11): Test suite "fs_tests" is skipped because disabled
test/getarg_tests.cpp(25): Test suite "getarg_tests" is skipped because disabled
test/hash_tests.cpp(13): Test suite "hash_tests" is skipped because disabled
test/interfaces_tests.cpp(16): Test suite "interfaces_tests" is skipped because disabled
test/key_io_tests.cpp(20): Test suite "key_io_tests" is skipped because disabled
test/key_tests.cpp(32): Test suite "key_tests" is skipped because disabled
test/limitedmap_tests.cpp(11): Test suite "limitedmap_tests" is skipped because disabled
test/logging_tests.cpp(13): Test suite "logging_tests" is skipped because disabled
test/dbwrapper_tests.cpp(24): Test suite "dbwrapper_tests" is skipped because disabled
test/validation_tests.cpp(14): Test suite "validation_tests" is skipped because disabled
test/mempool_tests.cpp(15): Test suite "mempool_tests" is skipped because disabled
test/merkle_tests.cpp(10): Test suite "merkle_tests" is skipped because disabled
test/merkleblock_tests.cpp(12): Test suite "merkleblock_tests" is skipped because disabled
test/miner_tests.cpp(37): Test suite "miner_tests" is skipped because disabled
test/multisig_tests.cpp(19): Test suite "multisig_tests" is skipped because disabled
test/net_tests.cpp(86): Test suite "net_tests" is skipped because disabled
test/netbase_tests.cpp(19): Test suite "netbase_tests" is skipped because disabled
test/pmt_tests.cpp(29): Test suite "pmt_tests" is skipped because disabled
test/policy_fee_tests.cpp(12): Test suite "policy_fee_tests" is skipped because disabled
test/policyestimator_tests.cpp(15): Test suite "policyestimator_tests" is skipped because disabled
test/pow_tests.cpp(12): Test suite "pow_tests" is skipped because disabled
test/prevector_tests.cpp(16): Test suite "prevector_tests" is skipped because disabled
test/raii_event_tests.cpp(16): Test suite "raii_event_tests" is skipped because disabled
test/random_tests.cpp(14): Test suite "random_tests" is skipped because disabled
test/ref_tests.cpp(9): Test suite "ref_tests" is skipped because disabled
test/reverselock_tests.cpp(10): Test suite "reverselock_tests" is skipped because disabled
test/rpc_tests.cpp(51): Test suite "rpc_tests" is skipped because disabled
test/sanity_tests.cpp(11): Test suite "sanity_tests" is skipped because disabled
test/scheduler_tests.cpp(14): Test suite "scheduler_tests" is skipped because disabled
test/script_p2sh_tests.cpp(48): Test suite "script_p2sh_tests" is skipped because disabled
test/script_tests.cpp(123): Test suite "script_tests" is skipped because disabled
test/script_standard_tests.cpp(14): Test suite "script_standard_tests" is skipped because disabled
test/scriptnum_tests.cpp(13): Test suite "scriptnum_tests" is skipped because disabled
test/serialize_tests.cpp(15): Test suite "serialize_tests" is skipped because disabled
test/settings_tests.cpp(44): Test suite "settings_tests" is skipped because disabled
test/sighash_tests.cpp(117): Test suite "sighash_tests" is skipped because disabled
test/sigopcount_tests.cpp(26): Test suite "sigopcount_tests" is skipped because disabled
test/skiplist_tests.cpp(14): Test suite "skiplist_tests" is skipped because disabled
test/streams_tests.cpp(10): Test suite "streams_tests" is skipped because disabled
test/sync_tests.cpp(34): Test suite "sync_tests" is skipped because disabled
test/system_tests.cpp(15): Test suite "system_tests" is skipped because disabled
test/util_threadnames_tests.cpp(20): Test suite "util_threadnames_tests" is skipped because disabled
test/timedata_tests.cpp(19): Test suite "timedata_tests" is skipped because disabled
test/torcontrol_tests.cpp(18): Test suite "torcontrol_tests" is skipped because disabled
test/transaction_tests.cpp(97): Test suite "transaction_tests" is skipped because disabled
test/txindex_tests.cpp(13): Test suite "txindex_tests" is skipped because disabled
test/txvalidation_tests.cpp(14): Test suite "txvalidation_tests" is skipped because disabled
test/txvalidationcache_tests.cpp(18): Test suite "txvalidationcache_tests" is skipped because disabled
test/uint256_tests.cpp(17): Test suite "uint256_tests" is skipped because disabled
test/util_tests.cpp(43): Test suite "util_tests" is skipped because disabled
test/validation_block_tests.cpp(33): Test suite "validation_block_tests" is skipped because disabled
test/validation_chainstate_tests.cpp(16): Test suite "validation_chainstate_tests" is skipped because disabled
test/validation_chainstatemanager_tests.cpp(18): Test suite "validation_chainstatemanager_tests" is skipped because disabled
test/validation_flush_tests.cpp(12): Test suite "validation_flush_tests" is skipped because disabled
test/validationinterface_tests.cpp(13): Test suite "validationinterface_tests" is skipped because disabled
test/versionbits_tests.cpp(159): Test suite "versionbits_tests" is skipped because disabled
wallet/test/db_tests.cpp(14): Test suite "db_tests" is skipped because disabled

There are many lines with the same output. Also, I tried to run the functional test but I get the below error.

Code:
stderr:
Traceback (most recent call last):
  File "/home/buzz/Softwares/bccore/bitcoin/blockchain_fundamentals/bitcoin/test/functional/wallet_address_types.py", line 370, in
    AddressTypeTest().main()
  File "/home/buzz/Softwares/bccore/bitcoin/blockchain_fundamentals/bitcoin/test/functional/test_framework/test_framework.py", line 149, in main
    exit_code = self.shutdown()
  File "/home/buzz/Softwares/bccore/bitcoin/blockchain_fundamentals/bitcoin/test/functional/test_framework/test_framework.py", line 273, in shutdown
    self.stop_nodes()
  File "/home/buzz/Softwares/bccore/bitcoin/blockchain_fundamentals/bitcoin/test/functional/test_framework/test_framework.py", line 521, in stop_nodes
    node.wait_until_stopped()
  File "/home/buzz/Softwares/bccore/bitcoin/blockchain_fundamentals/bitcoin/test/functional/test_framework/test_node.py", line 362, in wait_until_stopped
    wait_until_helper(self.is_node_stopped, timeout=timeout, timeout_factor=self.timeout_factor)
  File "/home/buzz/Softwares/bccore/bitcoin/blockchain_fundamentals/bitcoin/test/functional/test_framework/util.py", line 250, in wait_until_helper
    if predicate():
  File "/home/buzz/Softwares/bccore/bitcoin/blockchain_fundamentals/bitcoin/test/functional/test_framework/test_node.py", line 352, in is_node_stopped
    assert return_code == 0, self._node_msg(
AssertionError: [node 0] Node returned non-zero exit code (-11) when stopping

Screenshot of the problem:
Log Files from the Bitcoin Client: https://pastebin.com/A7rLiSGq
Jump to: