old c coder
|
|
October 01, 2015, 04:16:05 AM |
|
Hello all, I remember reading that the unit test for YACoin "didn't work", "needed work", etc. So I said I can do that, since I did it for Bitcoin (0.8.6 MSVC++ and earlier versions). Yesterday at ~9:30am EDT I finally conquered the gcc unit tests on windows!! By that I mean being able to compile successfully! And run! The MSVC++ versions have been running for some time, but it would be nice to compare to the gcc flavor to verify that the code is doing the same thing with both compilers. And it is! I'm seeing a lot of errors in the "base58_keys_valid_parse" of the "base58_tests" test suite. I went back and looked at the Bitcoin 0.7.2 sources and a sampling of NVC and PPC sources and the test data files are all identical. The test code too! Sadly YACoin up to 0.4.4 is the same too! So the data to test an address that doesn't start with Y sure ain't going to work on code testing for it! It seems "tautological" to use the Yacoind or qt to create an address, then put it into the test data files and then test the program to see if it agrees that that is an address? I would think that one would like to create addresses and keys and scripts, etc. to test, with some other tool than the code itself, to actually test the code? And all the other tests in the "base58_keys_valid_parse" and the "base58_keys_valid_gen" tests. Anyone have any idea what the intent (there's that word again) of the test code was in this area? Are the tests using special values to test some aspect of the bitcoin 0.7.2 code? In any event, here is what the gcc Yacoin unit tests look like: Running 69 test cases... Entering test suite "Bitcoin Test Suite" Entering test suite "wallet_tests" Entering test case "coin_selection_tests" Leaving test case "coin_selection_tests"; testing time: 781ms Leaving test suite "wallet_tests" Entering test suite "util_tests" Entering test case "util_criticalsection" Test case util_criticalsection did not check any assertions Leaving test case "util_criticalsection"; testing time: 15999mks Entering test case "util_MedianFilter" Leaving test case "util_MedianFilter" Entering test case "util_ParseHex" Leaving test case "util_ParseHex" Entering test case "util_HexStr" Leaving test case "util_HexStr" Entering test case "util_DateTimeStrFormat" Leaving test case "util_DateTimeStrFormat" Entering test case "util_ParseParameters" Leaving test case "util_ParseParameters" Entering test case "util_GetArg" Leaving test case "util_GetArg" Entering test case "util_WildcardMatch" Leaving test case "util_WildcardMatch" Entering test case "util_FormatMoney" Leaving test case "util_FormatMoney" Entering test case "util_ParseMoney" Leaving test case "util_ParseMoney" Entering test case "util_IsHex" Leaving test case "util_IsHex" Leaving test suite "util_tests" Entering test suite "uint256_tests" Entering test case "uint256_equality" Leaving test case "uint256_equality" Leaving test suite "uint256_tests" Entering test suite "uint160_tests" Entering test case "uint160_equality" Leaving test case "uint160_equality" Leaving test suite "uint160_tests" Entering test suite "transaction_tests" Entering test case "tx_valid" unknown location(0): fatal error in "tx_valid": std::exception: CDataStream::read() : end of data Leaving test case "tx_valid"; testing time: 47ms Entering test case "tx_invalid" unknown location(0): fatal error in "tx_invalid": std::exception: CDataStream::read() : end of data Leaving test case "tx_invalid" Entering test case "basic_transaction_tests" unknown location(0): fatal error in "basic_transaction_tests": std::exception: CDataStream::read() : end of data Leaving test case "basic_transaction_tests" Entering test case "test_Get" Leaving test case "test_Get"; testing time: 47ms Entering test case "test_GetThrow" Leaving test case "test_GetThrow" Leaving test suite "transaction_tests" Entering test suite "sigopcount_tests" Entering test case "GetSigOpCount" Leaving test case "GetSigOpCount"; testing time: 15ms Leaving test suite "sigopcount_tests" Entering test suite "script_tests" Entering test case "script_valid" Leaving test case "script_valid"; testing time: 47ms Entering test case "script_invalid" Leaving test case "script_invalid"; testing time: 15999mks Entering test case "script_PushData" Leaving test case "script_PushData" Entering test case "script_CHECKMULTISIG12" Leaving test case "script_CHECKMULTISIG12"; testing time: 31ms Entering test case "script_CHECKMULTISIG23" Leaving test case "script_CHECKMULTISIG23"; testing time: 94ms Entering test case "script_combineSigs" Leaving test case "script_combineSigs"; testing time: 47ms Leaving test suite "script_tests" Entering test suite "script_P2SH_tests" Entering test case "sign" Leaving test case "sign"; testing time: 78ms Entering test case "norecurse" Leaving test case "norecurse" Entering test case "set" Leaving test case "set"; testing time: 47ms Entering test case "is" Leaving test case "is" Entering test case "switchover" Leaving test case "switchover" Entering test case "AreInputsStandard" Leaving test case "AreInputsStandard"; testing time: 31ms Leaving test suite "script_P2SH_tests" Entering test suite "rpc_tests" Entering test case "rpc_addmultisig" Leaving test case "rpc_addmultisig"; testing time: 468ms Leaving test suite "rpc_tests" Entering test suite "netbase_tests" Entering test case "netbase_networks" test/netbase_tests.cpp(25): error in "netbase_networks": check CNetAddr("2001::8888").GetNetwork() == NET_IPV6 failed test/netbase_tests.cpp(26): error in "netbase_networks": check CNetAddr("FD87:D87E:EB43:edb1:8e4:3588:e546:35ca").GetNetwork() == NET_TOR failed Leaving test case "netbase_networks" Entering test case "netbase_properties" test/netbase_tests.cpp(33): error in "netbase_properties": check CNetAddr("::FFFF:192.168.0.4").IsIPv4() failed test/netbase_tests.cpp(38): error in "netbase_properties": check CNetAddr("2001:0DB8::").IsRFC3849() failed test/netbase_tests.cpp(40): error in "netbase_properties": check CNetAddr("2002::1").IsRFC3964() failed test/netbase_tests.cpp(41): error in "netbase_properties": check CNetAddr("FC00::").IsRFC4193() failed test/netbase_tests.cpp(42): error in "netbase_properties": check CNetAddr("2001::2").IsRFC4380() failed test/netbase_tests.cpp(43): error in "netbase_properties": check CNetAddr("2001:10::").IsRFC4843() failed test/netbase_tests.cpp(44): error in "netbase_properties": check CNetAddr("FE80::").IsRFC4862() failed test/netbase_tests.cpp(45): error in "netbase_properties": check CNetAddr("64:FF9B::").IsRFC6052() failed test/netbase_tests.cpp(46): error in "netbase_properties": check CNetAddr("FD87:D87E:EB43:edb1:8e4:3588:e546:35ca").IsTor() failed test/netbase_tests.cpp(48): error in "netbase_properties": check CNetAddr("::1").IsLocal() failed test/netbase_tests.cpp(50): error in "netbase_properties": check CNetAddr("2001::1").IsRoutable() failed Leaving test case "netbase_properties" Entering test case "netbase_splithost" Leaving test case "netbase_splithost" Entering test case "netbase_lookupnumeric" test/netbase_tests.cpp(93): error in "netbase_lookupnumeric": check TestParse("::ffff:127.0.0.1", "127.0.0.1:65535") failed test/netbase_tests.cpp(94): error in "netbase_lookupnumeric": check TestParse("::", "[::]:65535") failed test/netbase_tests.cpp(95): error in "netbase_lookupnumeric": check TestParse("[::]:8333", "[::]:8333") failed Leaving test case "netbase_lookupnumeric" Entering test case "onioncat_test" test/netbase_tests.cpp(105): error in "onioncat_test": check addr1 == addr2 failed Leaving test case "onioncat_test" Leaving test suite "netbase_tests" Entering test suite "multisig_tests" Entering test case "multisig_verify" Leaving test case "multisig_verify"; testing time: 250ms Entering test case "multisig_IsStandard" Leaving test case "multisig_IsStandard" Entering test case "multisig_Solver1" Leaving test case "multisig_Solver1"; testing time: 15999mks Entering test case "multisig_Sign" Leaving test case "multisig_Sign"; testing time: 31ms Leaving test suite "multisig_tests" Entering test suite "mruset_tests" Entering test case "mruset_like_set" Leaving test case "mruset_like_set"; testing time: 31999mks Entering test case "mruset_limited_size" Leaving test case "mruset_limited_size"; testing time: 15ms Entering test case "mruset_window" Leaving test case "mruset_window"; testing time: 47ms Leaving test suite "mruset_tests" Entering test suite "miner_tests" Entering test case "sha256transform_equality" 2df5e1c65ef9f8cde240d23cae2ec036d31a15ec64bc68f64be242b1da6631f3 Leaving test case "sha256transform_equality" Leaving test suite "miner_tests" Entering test suite "key_tests" Entering test case "key_test1" test/key_tests.cpp(91): error in "key_test1": check bsecret1.SetString (strSecret1) failed test/key_tests.cpp(92): error in "key_test1": check bsecret2.SetString (strSecret2) failed test/key_tests.cpp(93): error in "key_test1": check bsecret1C.SetString(strSecret1C) failed test/key_tests.cpp(94): error in "key_test1": check bsecret2C.SetString(strSecret2C) failed test/key_tests.cpp(116): error in "key_test1": check addr1.Get() == CTxDestination(key1.GetPubKey().GetID()) failed test/key_tests.cpp(117): error in "key_test1": check addr2.Get() == CTxDestination(key2.GetPubKey().GetID()) failed test/key_tests.cpp(118): error in "key_test1": check addr1C.Get() == CTxDestination(key1C.GetPubKey().GetID()) failed test/key_tests.cpp(119): error in "key_test1": check addr2C.Get() == CTxDestination(key2C.GetPubKey().GetID()) failed Leaving test case "key_test1"; testing time: 1438ms Leaving test suite "key_tests" Entering test suite "getarg_tests" Entering test case "boolarg" Leaving test case "boolarg" Entering test case "stringarg" Leaving test case "stringarg" Entering test case "intarg" Leaving test case "intarg" Entering test case "doubledash" Leaving test case "doubledash" Entering test case "boolargno" Leaving test case "boolargno" Leaving test suite "getarg_tests" Entering test suite "DoS_tests" Entering test case "DoS_banning" Leaving test case "DoS_banning" Entering test case "DoS_banscore" Leaving test case "DoS_banscore" Entering test case "DoS_bantime" Leaving test case "DoS_bantime" Entering test case "DoS_checknbits" Leaving test case "DoS_checknbits" Entering test case "DoS_mapOrphans" Leaving test case "DoS_mapOrphans"; testing time: 593ms Entering test case "DoS_checkSig" Leaving test case "DoS_checkSig"; testing time: 1250ms Leaving test suite "DoS_tests" Entering test suite "Checkpoints_tests" Entering test case "sanity" Leaving test case "sanity" Leaving test suite "Checkpoints_tests" Entering test suite "bignum_tests" Entering test case "bignum_setint64" Leaving test case "bignum_setint64" Leaving test suite "bignum_tests" Entering test suite "base64_tests" Entering test case "base64_testvectors" Leaving test case "base64_testvectors" Leaving test suite "base64_tests" Entering test suite "base58_tests" Entering test case "base58_EncodeBase58" Leaving test case "base58_EncodeBase58" Entering test case "base58_DecodeBase58" Leaving test case "base58_DecodeBase58" Entering test case "base58_keys_valid_parse" test/base58_tests.cpp(178): error in "base58_keys_valid_parse": !IsValid:["1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i","65a16059864a2fdbc7c99a4723a8395bc6f188eb",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(181): error in "base58_keys_valid_parse": addrType mismatch["1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i","65a16059864a2fdbc7c99a4723a8395bc6f188eb",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(178): error in "base58_keys_valid_parse": !IsValid:["3CMNFxN1oHBc4R1EpboAL5yzHGgE611Xou","74f209f6ea907e2ea48f74fae05782ae8a665257",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(179): error in "base58_keys_valid_parse": isScript mismatch["3CMNFxN1oHBc4R1EpboAL5yzHGgE611Xou","74f209f6ea907e2ea48f74fae05782ae8a665257",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(181): error in "base58_keys_valid_parse": addrType mismatch["3CMNFxN1oHBc4R1EpboAL5yzHGgE611Xou","74f209f6ea907e2ea48f74fae05782ae8a665257",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(162): error in "base58_keys_valid_parse": !SetString:["5Kd3NBUAdUnhyzenEwVLy9pBKxSwXvE9FMPyR4UKZvpe6E3AgLr","eddbdc1168f1daeadbd3e44c1e3f8f5a284c2029f78ad26af98583a499de5b19",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(163): error in "base58_keys_valid_parse": !IsValid:["5Kd3NBUAdUnhyzenEwVLy9pBKxSwXvE9FMPyR4UKZvpe6E3AgLr","eddbdc1168f1daeadbd3e44c1e3f8f5a284c2029f78ad26af98583a499de5b19",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(162): error in "base58_keys_valid_parse": !SetString:["Kz6UJmQACJmLtaQj5A3JAge4kVTNQ8gbvXuwbmCj7bsaabudb3RD","55c9bccb9ed68446d1b75273bbce89d7fe013a8acd1625514420fb2aca1a21c4",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(163): error in "base58_keys_valid_parse": !IsValid:["Kz6UJmQACJmLtaQj5A3JAge4kVTNQ8gbvXuwbmCj7bsaabudb3RD","55c9bccb9ed68446d1b75273bbce89d7fe013a8acd1625514420fb2aca1a21c4",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(178): error in "base58_keys_valid_parse": !IsValid:["1Ax4gZtb7gAit2TivwejZHYtNNLT18PUXJ","6d23156cbbdcc82a5a47eee4c2c7c583c18b6bf4",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(181): error in "base58_keys_valid_parse": addrType mismatch["1Ax4gZtb7gAit2TivwejZHYtNNLT18PUXJ","6d23156cbbdcc82a5a47eee4c2c7c583c18b6bf4",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(178): error in "base58_keys_valid_parse": !IsValid:["3QjYXhTkvuj8qPaXHTTWb5wjXhdsLAAWVy","fcc5460dd6e2487c7d75b1963625da0e8f4c5975",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(179): error in "base58_keys_valid_parse": isScript mismatch["3QjYXhTkvuj8qPaXHTTWb5wjXhdsLAAWVy","fcc5460dd6e2487c7d75b1963625da0e8f4c5975",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(181): error in "base58_keys_valid_parse": addrType mismatch["3QjYXhTkvuj8qPaXHTTWb5wjXhdsLAAWVy","fcc5460dd6e2487c7d75b1963625da0e8f4c5975",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(162): error in "base58_keys_valid_parse": !SetString:["5K494XZwps2bGyeL71pWid4noiSNA2cfCibrvRWqcHSptoFn7rc","a326b95ebae30164217d7a7f57d72ab2b54e3be64928a19da0210b9568d4015e",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(163): error in "base58_keys_valid_parse": !IsValid:["5K494XZwps2bGyeL71pWid4noiSNA2cfCibrvRWqcHSptoFn7rc","a326b95ebae30164217d7a7f57d72ab2b54e3be64928a19da0210b9568d4015e",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(162): error in "base58_keys_valid_parse": !SetString:["L1RrrnXkcKut5DEMwtDthjwRcTTwED36thyL1DebVrKuwvohjMNi","7d998b45c219a1e38e99e7cbd312ef67f77a455a9b50c730c27f02c6f730dfb4",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(163): error in "base58_keys_valid_parse": !IsValid:["L1RrrnXkcKut5DEMwtDthjwRcTTwED36thyL1DebVrKuwvohjMNi","7d998b45c219a1e38e99e7cbd312ef67f77a455a9b50c730c27f02c6f730dfb4",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(178): error in "base58_keys_valid_parse": !IsValid:["1C5bSj1iEGUgSTbziymG7Cn18ENQuT36vv","7987ccaa53d02c8873487ef919677cd3db7a6912",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(181): error in "base58_keys_valid_parse": addrType mismatch["1C5bSj1iEGUgSTbziymG7Cn18ENQuT36vv","7987ccaa53d02c8873487ef919677cd3db7a6912",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(178): error in "base58_keys_valid_parse": !IsValid:["3AnNxabYGoTxYiTEZwFEnerUoeFXK2Zoks","63bcc565f9e68ee0189dd5cc67f1b0e5f02f45cb",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(179): error in "base58_keys_valid_parse": isScript mismatch["3AnNxabYGoTxYiTEZwFEnerUoeFXK2Zoks","63bcc565f9e68ee0189dd5cc67f1b0e5f02f45cb",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(181): error in "base58_keys_valid_parse": addrType mismatch["3AnNxabYGoTxYiTEZwFEnerUoeFXK2Zoks","63bcc565f9e68ee0189dd5cc67f1b0e5f02f45cb",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(162): error in "base58_keys_valid_parse": !SetString:["5KaBW9vNtWNhc3ZEDyNCiXLPdVPHCikRxSBWwV9NrpLLa4LsXi9","e75d936d56377f432f404aabb406601f892fd49da90eb6ac558a733c93b47252",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(163): error in "base58_keys_valid_parse": !IsValid:["5KaBW9vNtWNhc3ZEDyNCiXLPdVPHCikRxSBWwV9NrpLLa4LsXi9","e75d936d56377f432f404aabb406601f892fd49da90eb6ac558a733c93b47252",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(162): error in "base58_keys_valid_parse": !SetString:["L1axzbSyynNYA8mCAhzxkipKkfHtAXYF4YQnhSKcLV8YXA874fgT","8248bd0375f2f75d7e274ae544fb920f51784480866b102384190b1addfbaa5c",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(163): error in "base58_keys_valid_parse": !IsValid:["L1axzbSyynNYA8mCAhzxkipKkfHtAXYF4YQnhSKcLV8YXA874fgT","8248bd0375f2f75d7e274ae544fb920f51784480866b102384190b1addfbaa5c",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(178): error in "base58_keys_valid_parse": !IsValid:["1Gqk4Tv79P91Cc1STQtU3s1W6277M2CVWu","adc1cc2081a27206fae25792f28bbc55b831549d",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(181): error in "base58_keys_valid_parse": addrType mismatch["1Gqk4Tv79P91Cc1STQtU3s1W6277M2CVWu","adc1cc2081a27206fae25792f28bbc55b831549d",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(178): error in "base58_keys_valid_parse": !IsValid:["33vt8ViH5jsr115AGkW6cEmEz9MpvJSwDk","188f91a931947eddd7432d6e614387e32b244709",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(179): error in "base58_keys_valid_parse": isScript mismatch["33vt8ViH5jsr115AGkW6cEmEz9MpvJSwDk","188f91a931947eddd7432d6e614387e32b244709",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(181): error in "base58_keys_valid_parse": addrType mismatch["33vt8ViH5jsr115AGkW6cEmEz9MpvJSwDk","188f91a931947eddd7432d6e614387e32b244709",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(162): error in "base58_keys_valid_parse": !SetString:["5HtH6GdcwCJA4ggWEL1B3jzBBUB8HPiBi9SBc5h9i4Wk4PSeApR","091035445ef105fa1bb125eccfb1882f3fe69592265956ade751fd095033d8d0",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(163): error in "base58_keys_valid_parse": !IsValid:["5HtH6GdcwCJA4ggWEL1B3jzBBUB8HPiBi9SBc5h9i4Wk4PSeApR","091035445ef105fa1bb125eccfb1882f3fe69592265956ade751fd095033d8d0",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(162): error in "base58_keys_valid_parse": !SetString:["L2xSYmMeVo3Zek3ZTsv9xUrXVAmrWxJ8Ua4cw8pkfbQhcEFhkXT8","ab2b4bcdfc91d34dee0ae2a8c6b6668dadaeb3a88b9859743156f462325187af",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(163): error in "base58_keys_valid_parse": !IsValid:["L2xSYmMeVo3Zek3ZTsv9xUrXVAmrWxJ8Ua4cw8pkfbQhcEFhkXT8","ab2b4bcdfc91d34dee0ae2a8c6b6668dadaeb3a88b9859743156f462325187af",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(178): error in "base58_keys_valid_parse": !IsValid:["1JwMWBVLtiqtscbaRHai4pqHokhFCbtoB4","c4c1b72491ede1eedaca00618407ee0b772cad0d",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(181): error in "base58_keys_valid_parse": addrType mismatch["1JwMWBVLtiqtscbaRHai4pqHokhFCbtoB4","c4c1b72491ede1eedaca00618407ee0b772cad0d",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(178): error in "base58_keys_valid_parse": !IsValid:["3QCzvfL4ZRvmJFiWWBVwxfdaNBT8EtxB5y","f6fe69bcb548a829cce4c57bf6fff8af3a5981f9",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(179): error in "base58_keys_valid_parse": isScript mismatch["3QCzvfL4ZRvmJFiWWBVwxfdaNBT8EtxB5y","f6fe69bcb548a829cce4c57bf6fff8af3a5981f9",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(181): error in "base58_keys_valid_parse": addrType mismatch["3QCzvfL4ZRvmJFiWWBVwxfdaNBT8EtxB5y","f6fe69bcb548a829cce4c57bf6fff8af3a5981f9",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(162): error in "base58_keys_valid_parse": !SetString:["5KQmDryMNDcisTzRp3zEq9e4awRmJrEVU1j5vFRTKpRNYPqYrMg","d1fab7ab7385ad26872237f1eb9789aa25cc986bacc695e07ac571d6cdac8bc0",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(163): error in "base58_keys_valid_parse": !IsValid:["5KQmDryMNDcisTzRp3zEq9e4awRmJrEVU1j5vFRTKpRNYPqYrMg","d1fab7ab7385ad26872237f1eb9789aa25cc986bacc695e07ac571d6cdac8bc0",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(162): error in "base58_keys_valid_parse": !SetString:["L39Fy7AC2Hhj95gh3Yb2AU5YHh1mQSAHgpNixvm27poizcJyLtUi","b0bbede33ef254e8376aceb1510253fc3550efd0fcf84dcd0c9998b288f166b3",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(163): error in "base58_keys_valid_parse": !IsValid:["L39Fy7AC2Hhj95gh3Yb2AU5YHh1mQSAHgpNixvm27poizcJyLtUi","b0bbede33ef254e8376aceb1510253fc3550efd0fcf84dcd0c9998b288f166b3",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(178): error in "base58_keys_valid_parse": !IsValid:["19dcawoKcZdQz365WpXWMhX6QCUpR9SY4r","5eadaf9bb7121f0f192561a5a62f5e5f54210292",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(181): error in "base58_keys_valid_parse": addrType mismatch["19dcawoKcZdQz365WpXWMhX6QCUpR9SY4r","5eadaf9bb7121f0f192561a5a62f5e5f54210292",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(178): error in "base58_keys_valid_parse": !IsValid:["37Sp6Rv3y4kVd1nQ1JV5pfqXccHNyZm1x3","3f210e7277c899c3a155cc1c90f4106cbddeec6e",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(179): error in "base58_keys_valid_parse": isScript mismatch["37Sp6Rv3y4kVd1nQ1JV5pfqXccHNyZm1x3","3f210e7277c899c3a155cc1c90f4106cbddeec6e",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(181): error in "base58_keys_valid_parse": addrType mismatch["37Sp6Rv3y4kVd1nQ1JV5pfqXccHNyZm1x3","3f210e7277c899c3a155cc1c90f4106cbddeec6e",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(162): error in "base58_keys_valid_parse": !SetString:["5KL6zEaMtPRXZKo1bbMq7JDjjo1bJuQcsgL33je3oY8uSJCR5b4","c7666842503db6dc6ea061f092cfb9c388448629a6fe868d068c42a488b478ae",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(163): error in "base58_keys_valid_parse": !IsValid:["5KL6zEaMtPRXZKo1bbMq7JDjjo1bJuQcsgL33je3oY8uSJCR5b4","c7666842503db6dc6ea061f092cfb9c388448629a6fe868d068c42a488b478ae",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(162): error in "base58_keys_valid_parse": !SetString:["KwV9KAfwbwt51veZWNscRTeZs9CKpojyu1MsPnaKTF5kz69H1UN2","07f0803fc5399e773555ab1e8939907e9badacc17ca129e67a2f5f2ff84351dd",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(163): error in "base58_keys_valid_parse": !IsValid:["KwV9KAfwbwt51veZWNscRTeZs9CKpojyu1MsPnaKTF5kz69H1UN2","07f0803fc5399e773555ab1e8939907e9badacc17ca129e67a2f5f2ff84351dd",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(178): error in "base58_keys_valid_parse": !IsValid:["13p1ijLwsnrcuyqcTvJXkq2ASdXqcnEBLE","1ed467017f043e91ed4c44b4e8dd674db211c4e6",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(181): error in "base58_keys_valid_parse": addrType mismatch["13p1ijLwsnrcuyqcTvJXkq2ASdXqcnEBLE","1ed467017f043e91ed4c44b4e8dd674db211c4e6",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(178): error in "base58_keys_valid_parse": !IsValid:["3ALJH9Y951VCGcVZYAdpA3KchoP9McEj1G","5ece0cadddc415b1980f001785947120acdb36fc",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(179): error in "base58_keys_valid_parse": isScript mismatch["3ALJH9Y951VCGcVZYAdpA3KchoP9McEj1G","5ece0cadddc415b1980f001785947120acdb36fc",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(181): error in "base58_keys_valid_parse": addrType mismatch["3ALJH9Y951VCGcVZYAdpA3KchoP9McEj1G","5ece0cadddc415b1980f001785947120acdb36fc",{"addrType":"script","isPrivkey":false,"isTestnet":false}] Leaving test case "base58_keys_valid_parse"; testing time: 15999mks Entering test case "base58_keys_valid_gen" test/base58_tests.cpp(245): error in "base58_keys_valid_gen": mismatch: ["Y91bKDTmGfYWT9uLifCyXA5TgpaAMq6cT5","XQCQa4ZnxVdDwF6fDgaiPuNCwyXWcy3PyewnPhNe5VZmLRZgLU4m",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(245): error in "base58_keys_valid_gen": mismatch: ["1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i","65a16059864a2fdbc7c99a4723a8395bc6f188eb",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(245): error in "base58_keys_valid_gen": mismatch: ["3CMNFxN1oHBc4R1EpboAL5yzHGgE611Xou","74f209f6ea907e2ea48f74fae05782ae8a665257",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(220): error in "base58_keys_valid_gen": result mismatch: ["5Kd3NBUAdUnhyzenEwVLy9pBKxSwXvE9FMPyR4UKZvpe6E3AgLr","eddbdc1168f1daeadbd3e44c1e3f8f5a284c2029f78ad26af98583a499de5b19",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(220): error in "base58_keys_valid_gen": result mismatch: ["Kz6UJmQACJmLtaQj5A3JAge4kVTNQ8gbvXuwbmCj7bsaabudb3RD","55c9bccb9ed68446d1b75273bbce89d7fe013a8acd1625514420fb2aca1a21c4",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(245): error in "base58_keys_valid_gen": mismatch: ["1Ax4gZtb7gAit2TivwejZHYtNNLT18PUXJ","6d23156cbbdcc82a5a47eee4c2c7c583c18b6bf4",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(245): error in "base58_keys_valid_gen": mismatch: ["3QjYXhTkvuj8qPaXHTTWb5wjXhdsLAAWVy","fcc5460dd6e2487c7d75b1963625da0e8f4c5975",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(220): error in "base58_keys_valid_gen": result mismatch: ["5K494XZwps2bGyeL71pWid4noiSNA2cfCibrvRWqcHSptoFn7rc","a326b95ebae30164217d7a7f57d72ab2b54e3be64928a19da0210b9568d4015e",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(220): error in "base58_keys_valid_gen": result mismatch: ["L1RrrnXkcKut5DEMwtDthjwRcTTwED36thyL1DebVrKuwvohjMNi","7d998b45c219a1e38e99e7cbd312ef67f77a455a9b50c730c27f02c6f730dfb4",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(245): error in "base58_keys_valid_gen": mismatch: ["1C5bSj1iEGUgSTbziymG7Cn18ENQuT36vv","7987ccaa53d02c8873487ef919677cd3db7a6912",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(245): error in "base58_keys_valid_gen": mismatch: ["3AnNxabYGoTxYiTEZwFEnerUoeFXK2Zoks","63bcc565f9e68ee0189dd5cc67f1b0e5f02f45cb",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(220): error in "base58_keys_valid_gen": result mismatch: ["5KaBW9vNtWNhc3ZEDyNCiXLPdVPHCikRxSBWwV9NrpLLa4LsXi9","e75d936d56377f432f404aabb406601f892fd49da90eb6ac558a733c93b47252",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(220): error in "base58_keys_valid_gen": result mismatch: ["L1axzbSyynNYA8mCAhzxkipKkfHtAXYF4YQnhSKcLV8YXA874fgT","8248bd0375f2f75d7e274ae544fb920f51784480866b102384190b1addfbaa5c",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(245): error in "base58_keys_valid_gen": mismatch: ["1Gqk4Tv79P91Cc1STQtU3s1W6277M2CVWu","adc1cc2081a27206fae25792f28bbc55b831549d",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(245): error in "base58_keys_valid_gen": mismatch: ["33vt8ViH5jsr115AGkW6cEmEz9MpvJSwDk","188f91a931947eddd7432d6e614387e32b244709",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(220): error in "base58_keys_valid_gen": result mismatch: ["5HtH6GdcwCJA4ggWEL1B3jzBBUB8HPiBi9SBc5h9i4Wk4PSeApR","091035445ef105fa1bb125eccfb1882f3fe69592265956ade751fd095033d8d0",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(220): error in "base58_keys_valid_gen": result mismatch: ["L2xSYmMeVo3Zek3ZTsv9xUrXVAmrWxJ8Ua4cw8pkfbQhcEFhkXT8","ab2b4bcdfc91d34dee0ae2a8c6b6668dadaeb3a88b9859743156f462325187af",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(245): error in "base58_keys_valid_gen": mismatch: ["1JwMWBVLtiqtscbaRHai4pqHokhFCbtoB4","c4c1b72491ede1eedaca00618407ee0b772cad0d",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(245): error in "base58_keys_valid_gen": mismatch: ["3QCzvfL4ZRvmJFiWWBVwxfdaNBT8EtxB5y","f6fe69bcb548a829cce4c57bf6fff8af3a5981f9",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(220): error in "base58_keys_valid_gen": result mismatch: ["5KQmDryMNDcisTzRp3zEq9e4awRmJrEVU1j5vFRTKpRNYPqYrMg","d1fab7ab7385ad26872237f1eb9789aa25cc986bacc695e07ac571d6cdac8bc0",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(220): error in "base58_keys_valid_gen": result mismatch: ["L39Fy7AC2Hhj95gh3Yb2AU5YHh1mQSAHgpNixvm27poizcJyLtUi","b0bbede33ef254e8376aceb1510253fc3550efd0fcf84dcd0c9998b288f166b3",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(245): error in "base58_keys_valid_gen": mismatch: ["19dcawoKcZdQz365WpXWMhX6QCUpR9SY4r","5eadaf9bb7121f0f192561a5a62f5e5f54210292",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(245): error in "base58_keys_valid_gen": mismatch: ["37Sp6Rv3y4kVd1nQ1JV5pfqXccHNyZm1x3","3f210e7277c899c3a155cc1c90f4106cbddeec6e",{"addrType":"script","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(220): error in "base58_keys_valid_gen": result mismatch: ["5KL6zEaMtPRXZKo1bbMq7JDjjo1bJuQcsgL33je3oY8uSJCR5b4","c7666842503db6dc6ea061f092cfb9c388448629a6fe868d068c42a488b478ae",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(220): error in "base58_keys_valid_gen": result mismatch: ["KwV9KAfwbwt51veZWNscRTeZs9CKpojyu1MsPnaKTF5kz69H1UN2","07f0803fc5399e773555ab1e8939907e9badacc17ca129e67a2f5f2ff84351dd",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}] test/base58_tests.cpp(245): error in "base58_keys_valid_gen": mismatch: ["13p1ijLwsnrcuyqcTvJXkq2ASdXqcnEBLE","1ed467017f043e91ed4c44b4e8dd674db211c4e6",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}] test/base58_tests.cpp(245): error in "base58_keys_valid_gen": mismatch: ["3ALJH9Y951VCGcVZYAdpA3KchoP9McEj1G","5ece0cadddc415b1980f001785947120acdb36fc",{"addrType":"script","isPrivkey":false,"isTestnet":false}] Leaving test case "base58_keys_valid_gen" Entering test case "base58_keys_invalid" Leaving test case "base58_keys_invalid"; testing time: 15ms Leaving test suite "base58_tests" Entering test suite "base32_tests" Entering test case "base32_testvectors" Leaving test case "base32_testvectors" Leaving test suite "base32_tests" Entering test suite "allocator_tests" Entering test case "test_LockedPageManagerBase" Leaving test case "test_LockedPageManagerBase" Leaving test suite "allocator_tests" Entering test suite "accounting_tests" Entering test case "acc_orderupgrade" Leaving test case "acc_orderupgrade"; testing time: 1188ms Leaving test suite "accounting_tests" Leaving test suite "Bitcoin Test Suite"
If anyone would like to see the MSVC++ versions I could post them too, but they are similar. The gcc is of interest to me since I can't seem to get any response on https://bitcointalk.org/index.php?topic=149479.msg12510445#msg12510445 asking how to do it, so I posted the bitcoin unit test there Can anyone tell me how to get makefile.mingw in the src directory to actually create a test_*coind.exe? I did it, but as I said it is a bit of a hack, but it works! AFAIK, YACoin is the first and only PoS coin that has a running (gcc on windows) unit test Ron
|