aboutsummaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2014-06-05build: add stub makefiles for easier subdir buildsCory Fields
2014-06-05build: delete old Makefile.am'sCory Fields
2014-06-02Merge pull request #3837Wladimir J. van der Laan
75ebced added many rpc wallet tests (Alon Muroch)
2014-06-02Merge pull request #4268Wladimir J. van der Laan
223a6f7 Fix stray uppercase A in tx_valid.json. (Andreas Schildbach)
2014-06-01Fix stray uppercase A in tx_valid.json.Andreas Schildbach
2014-05-27Merge pull request #3861Wladimir J. van der Laan
9ec0306 Add CODESEPARATOR/FindAndDelete() tests (Peter Todd)
2014-05-23Replace non-threadsafe gmtime and setlocaleWladimir J. van der Laan
Make DateTimeStrFormat use boost::posix_time. Also re-enable the util_DateTimeStrFormat tests, as they are no longer platform specific.
2014-05-13Fix build in OS X 10.9Federico Bond
2014-05-12Merge pull request #4138Wladimir J. van der Laan
783b182 Remove dummy PRIszX macros for formatting (Wladimir J. van der Laan)
2014-05-12Merge pull request #4165Wladimir J. van der Laan
f6b7c64 Move base58.h implementation code to base58.cpp (Pieter Wuille)
2014-05-12Add CODESEPARATOR/FindAndDelete() testsPeter Todd
2014-05-10Merge pull request #4160Wladimir J. van der Laan
7cd0af7 Move bignum.h to test/ (Pieter Wuille) ccc84e0 Reduce bignum.h now it is only needed for scriptnum_tests (Pieter Wuille)
2014-05-10Move base58.h implementation code to base58.cppPieter Wuille
2014-05-09Move bignum.h to test/Pieter Wuille
2014-05-09Reduce bignum.h now it is only needed for scriptnum_testsPieter Wuille
2014-05-09Merge pull request #4102Wladimir J. van der Laan
21bf3d2 Add tests for BoostAsioToCNetAddr (Wladimir J. van der Laan) fdbd707 Remove unused function WildcardMatch (Wladimir J. van der Laan) ee21912 rpc: Use netmasks instead of wildcards for IP address matching (Wladimir J. van der Laan) e16be73 net: Add CSubNet class for subnet matching (Wladimir J. van der Laan) d864275 Use new function parseint32 in SplitHostPort (Wladimir J. van der Laan) 0d4ea1c util: add parseint32 function with strict error reporting (Wladimir J. van der Laan)
2014-05-09Add tests for BoostAsioToCNetAddrWladimir J. van der Laan
2014-05-09Remove unused function WildcardMatchWladimir J. van der Laan
No longer necessary after implementing netmask-based matching. Also remove a longer-unused function `skipspaces`.
2014-05-09net: Add CSubNet class for subnet matchingWladimir J. van der Laan
2014-05-09util: add parseint32 function with strict error reportingWladimir J. van der Laan
None of the current integer parsing functions in util check whether the result is valid and fits in the range of the type. This is required for less sloppy error reporting.
2014-05-09Move {Get,Set}Compact from bignum to uint256Pieter Wuille
2014-05-09Add multiplication and division to uint160/uint256Pieter Wuille
2014-05-09Exception instead of assigning 0 in case of wrong vector lengthPieter Wuille
2014-05-09Fix transaction testsWladimir J. van der Laan
Conflict between low-s (6fd7ef2) and test updates in d3a33fc.
2014-05-09Merge pull request #3637Wladimir J. van der Laan
6fd7ef2 Also switch the (unused) verification code to low-s instead of even-s. (Pieter Wuille)
2014-05-09Merge pull request #3843Wladimir J. van der Laan
787ee0c Check redeemScript size does not exceed 520 byte limit (Peter Todd) 4d79098 Increase IsStandard() scriptSig length (Peter Todd) f80cffa Do not trigger a DoS ban if SCRIPT_VERIFY_NULLDUMMY fails (Peter Todd) 6380180 Add rejection of non-null CHECKMULTISIG dummy values (Peter Todd) 29c1749 Let tx (in)valid tests use any SCRIPT_VERIFY flag (Peter Todd) 68f7d1d Create (MANDATORY|STANDARD)_SCRIPT_VERIFY_FLAGS constants (Peter Todd)
2014-05-09Merge pull request #3965Wladimir J. van der Laan
b1fdd54 script: Add test for CScriptNum (Cory Fields) 90320d6 script: add additional script tests (Cory Fields) 05e3ecf script: remove bignum dependency (Cory Fields) 4f497cd script: switch outside users to CScriptNum (Cory Fields) 27bff74 script: switch to CScriptNum usage for scripts (Cory Fields) 48d8eb1 script: add CScriptNum class (Cory Fields)
2014-05-09Merge pull request #3860 from petertodd/test-checkmulti-n-m-zeroGavin Andresen
Test CHECKMULTISIG with m == 0 and/or n == 0
2014-05-08Add rejection of non-null CHECKMULTISIG dummy valuesPeter Todd
This is a source of transaction mutability as the dummy value was previously not checked and could be modified to something other than the usual OP_0 value.
2014-05-06Remove dummy PRIszX macros for formattingWladimir J. van der Laan
Size specifiers are no longer needed now that we use typesafe tinyformat for string formatting, instead of the system's sprintf. No functional changes. This continues the work in #3735.
2014-05-05Let tx (in)valid tests use any SCRIPT_VERIFY flagPeter Todd
Previously only P2SH could be set.
2014-05-02Merge pull request #4074Wladimir J. van der Laan
d3081fa Removed LevelDB changes (super3)
2014-05-01Removed LevelDB changessuper3
Syntax Highlighting
2014-04-23Add required locks in testsWladimir J. van der Laan
Unit tests with DEBUG_LOCKORDER were running into assertions.
2014-04-22script: Add test for CScriptNumCory Fields
Because this class replaces some usages of CBigNum, tests have been added to verify that they function the same way. The only difference in their usage is the handling of out-of-range numbers. While operands are constrained to [-0x7FFFFFFF,0x7FFFFFFF], the results may overflow. The overflowing result is technically unbounded, but in practice it can be no bigger than the result of an operation on two operands. This implementation limits them to the size of an int64. CBigNum was unaware of this constraint, so it allowed for unbounded results, which were then checked before use. CScriptNum asserts if an arithmetic operation will overflow an int64_t, since scripts are not able to reach those numbers anyway. Additionally, CScriptNum will throw an exception when constructed from a vector containing more than 4 bytes This mimics the previous CastToBigNum behavior.
2014-04-22script: add additional script testsCory Fields
2014-04-02Merge pull request #3842 from ditto-b/masterGavin Andresen
Fix for GetBlockValue() after block 13,440,000
2014-04-02Edit subsidy_limit_test to account for BIP42ditto-b
Because no one wants 4 gold mines being discovered every mibillenium.
2014-04-01added many rpc wallet testsAlon Muroch
deleted the empty no throw test in rpc_wallet_tests line 65 fixed some comments starting verify tests finished verify message tests changed some comments
2014-03-31add checks for deserialization errorsManuel Araoz
2014-03-31Add code generating data/sighash.json test dataManuel Araoz
2014-03-31Add sighash tests from data fileManuel Araoz
2014-03-26Merge pull request #3951Wladimir J. van der Laan
3cb1edb Update moved and dead links (Luke Dashjr)
2014-03-25Fix test build after d138598Wladimir J. van der Laan
Building the tests was giving some vague error message about a doubly-defined symbol. The solution is to define ShutdownRequested in test_bitcoin.cpp as well so that init.cpp does not get pulled in.
2014-03-24Update moved and dead linksLuke Dashjr
2014-03-18Add licenses for tests and test dataWladimir J. van der Laan
- Add license headers to source files (years based on commit dates) in `src/test` as well as `qa` - Add `README.md` to `src/test/data` specifying MIT license Fixes #3848
2014-03-15Merge pull request #3650Wladimir J. van der Laan
2b45345 minor style cleanups (Philip Kaufmann)
2014-03-12Test CHECKMULTISIG with m == 0 and n == 0Peter Todd
2014-03-12Fix script test handling of empty scriptsPeter Todd
Previously an empty script would evaluate to OP_0
2014-03-11minor style cleanupsPhilip Kaufmann