Open shohu opened 5 years ago
# python3 test/functional/test_runner.py --quiet
:
:
TEST | STATUS | DURATION
abandonconflict.py | P Passed | 14 s
bip65-cltv-p2p.py | P Passed | 6 s
bipdersig-p2p.py | P Passed | 5 s
bitcoin_cli.py | P Passed | 2 s
blockchain.py | P Passed | 9 s
bumpfee.py | P Passed | 16 s
decodescript.py | P Passed | 2 s
disablewallet.py | P Passed | 3 s
disconnect_ban.py | P Passed | 6 s
getchaintips.py | P Passed | 7 s
httpbasics.py | P Passed | 3 s
import-rescan.py | P Passed | 6 s
importmulti.py | P Passed | 6 s
importprunedfunds.py | P Passed | 4 s
invalidblockrequest.py | P Passed | 4 s
invalidtxrequest.py | P Passed | 4 s
keypool-topup.py | P Passed | 9 s
keypool.py | P Passed | 7 s
listsinceblock.py | P Passed | 4 s
listtransactions.py | P Passed | 13 s
mempool_limit.py | P Passed | 5 s
mempool_persist.py | P Passed | 18 s
mempool_reorg.py | P Passed | 5 s
mempool_resurrect_test.py | P Passed | 3 s
mempool_spendcoinbase.py | P Passed | 3 s
merkle_blocks.py | P Passed | 4 s
minchainwork.py | P Passed | 6 s
mining.py | x Failed | 3 s
multi_rpc.py | P Passed | 4 s
multiwallet.py | P Passed | 6 s
net.py | P Passed | 3 s
nulldummy.py | P Passed | 4 s
p2p-acceptblock.py | P Passed | 5 s
p2p-leaktests.py | P Passed | 8 s
p2p-mempool.py | P Passed | 3 s
p2p-segwit.py | x Failed | 127 s
p2p-versionbits-warning.py | P Passed | 9 s
preciousblock.py | P Passed | 3 s
prioritise_transaction.py | P Passed | 14 s
proxy_test.py | P Passed | 4 s
rawtransactions.py | P Passed | 19 s
receivedby.py | P Passed | 10 s
reindex.py | P Passed | 12 s
resendwallettransactions.py | P Passed | 5 s
rest.py | P Passed | 6 s
rpcnamedargs.py | P Passed | 2 s
sendheaders.py | P Passed | 25 s
signmessages.py | P Passed | 3 s
signrawtransactions.py | P Passed | 3 s
txn_clone.py | P Passed | 6 s
txn_doublespend.py --mineblock | P Passed | 6 s
uptime.py | P Passed | 3 s
wallet-accounts.py | P Passed | 5 s
wallet-dump.py | P Passed | 7 s
wallet-encryption.py | P Passed | 8 s
zapwallettxes.py | P Passed | 10 s
follwoing tests were error.
mining.py p2p-segwit.py
p2p-segwit.py is OK š
# python3 test/functional/p2p-segwit.py
2018-09-20 04:47:31.175000 TestFramework (INFO): Initializing test directory /tmp/testcsv1jzxr
2018-09-20 04:47:31.675000 TestFramework.mininode (INFO): Connecting to Bitcoin Node: 127.0.0.1:12998
2018-09-20 04:47:31.676000 TestFramework.mininode (INFO): Connecting to Bitcoin Node: 127.0.0.1:12998
2018-09-20 04:47:31.677000 TestFramework.mininode (INFO): Connecting to Bitcoin Node: 127.0.0.1:12999
2018-09-20 04:47:31.728000 TestFramework (INFO): Starting tests before segwit lock in:
2018-09-20 04:47:31.729000 TestFramework (INFO): Verifying NODE_WITNESS service bit
2018-09-20 04:47:31.729000 TestFramework (INFO): Testing non-witness transaction
2018-09-20 04:47:32.018000 TestFramework (INFO): Testing behavior of unnecessary witnesses
2018-09-20 04:47:32.747000 TestFramework (INFO): Testing block relay
2018-09-20 04:47:35.590000 TestFramework (INFO): Testing getblocktemplate setting of segwit versionbit (before lockin)
2018-09-20 04:47:45.691000 TestFramework (INFO): Testing behavior post lockin, pre-activation
2018-09-20 04:47:45.945000 TestFramework (INFO): Testing behavior of unnecessary witnesses
2018-09-20 04:47:46.723000 TestFramework (INFO): Testing relay of witness transactions
2018-09-20 04:47:49.178000 TestFramework (INFO): Testing block relay
2018-09-20 04:47:51.984000 TestFramework (INFO): Testing P2SH witness transactions
2018-09-20 04:47:52.566000 TestFramework (INFO): Testing standardness of v0 outputs (before activation)
2018-09-20 04:47:53.020000 TestFramework (INFO): Testing behavior after segwit activation
2018-09-20 04:47:53.427000 TestFramework (INFO): Testing P2SH witness transactions
2018-09-20 04:47:54.026000 TestFramework (INFO): Testing witness commitments
2018-09-20 04:47:54.562000 TestFramework (INFO): Testing witness block malleability
2018-09-20 04:47:55.024000 TestFramework (INFO): Testing witness block size limit
2018-09-20 04:48:00.284000 TestFramework (INFO): Testing extra witness data in tx
2018-09-20 04:48:00.760000 TestFramework (INFO): Testing maximum witness push size
2018-09-20 04:48:00.970000 TestFramework (INFO): Testing maximum witness program length
2018-09-20 04:48:01.183000 TestFramework (INFO): Testing witness input length
2018-09-20 04:48:01.708000 TestFramework (INFO): Testing block relay
2018-09-20 04:48:02.802000 TestFramework (INFO): Testing relay of witness transactions
2018-09-20 04:48:03.977000 TestFramework (INFO): Testing standardness of v0 outputs (after activation)
2018-09-20 04:48:04.481000 TestFramework (INFO): Testing standardness/consensus for segwit versions (0-16)
2018-09-20 04:48:08.728000 TestFramework (INFO): Testing premature coinbase witness spend
2018-09-20 04:48:09.486000 TestFramework (INFO): Testing uncompressed pubkeys
2018-09-20 04:48:10.435000 TestFramework (INFO): Testing segwit signature hash version 1
2018-09-20 04:48:31.946000 TestFramework (INFO): Testing detection of non-standard P2WSH witness
2018-09-20 04:48:34.024000 TestFramework (INFO): Testing software upgrade after softfork activation
2018-09-20 04:48:39.525000 TestFramework (INFO): Testing sigops limit
2018-09-20 04:48:40.068000 TestFramework (INFO): Stopping nodes
2018-09-20 04:48:42.365000 TestFramework (INFO): Cleaning up
2018-09-20 04:48:42.385000 TestFramework (INFO): Tests successful
mining.py is not good š¢ I think this error is for change difficulty logic
# python3 test/functional/mining.py
2018-09-20 04:52:36.859000 TestFramework (INFO): Initializing test directory /tmp/testbrasazvb
2018-09-20 04:52:37.591000 TestFramework (INFO): getmininginfo
2018-09-20 04:52:37.592000 TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
File "/c0ban/test/functional/test_framework/test_framework.py", line 120, in main
self.run_test()
File "test/functional/mining.py", line 43, in run_test
assert_equal(mining_info['difficulty'], Decimal('1'))
File "/c0ban/test/functional/test_framework/util.py", line 38, in assert_equal
raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
AssertionError: not(4.656542373906925E-10 == 1)
2018-09-20 04:52:37.600000 TestFramework (INFO): Stopping nodes
2018-09-20 04:52:39.763000 TestFramework (WARNING): Not cleaning up dir /tmp/testbrasazvb
2018-09-20 04:52:39.763000 TestFramework (ERROR): Test failed. Test logging available at /tmp/testbrasazvb/test_framework.log
How to test
See. https://github.com/shohu/c0ban/tree/v0.15.1-new/test
BASE_SCRIPTS (63/64)
EXTENDED_SCRIPTS (18/18)