aboutsummaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2014-10-01Merge pull request #4234Wladimir J. van der Laan
c122f55 qt: Register CAmount metatype (Wladimir J. van der Laan) a372168 Use a typedef for monetary values (Mark Friedenbach)
2014-10-01Merge pull request #5014Wladimir J. van der Laan
41d67c7 tests: fix python test-runner for windows (Cory Fields)
2014-09-30Merge pull request #5015 from theuni/win64testGavin Andresen
tests: fix false-positive under win64
2014-09-30tests: fix false-positive under win64Cory Fields
BN_ULONG isn't necessarily an unsigned long, as is the case on win64.
2014-09-30tests: fix python test-runner for windowsCory Fields
Windows needed a few fixups to get the tests running: 1. bitcoin-tx needs a file extension in Windows. Take this opportunity to add an env file, which pulls variables out of our build config. This can be extended as needed, for now it's very simple. 2. After #1, split the args out of the exec key in the test data. 3. Correct the line-endings from windows stdout
2014-09-29Fix vector out of bounds in script testsPieter Wuille
2014-09-29Merge pull request #4960Pieter Wuille
8138cbe Add automatic script test generation, and actual checksig tests (Pieter Wuille)
2014-09-29Merge pull request #4970Wladimir J. van der Laan
93e24dd travis: use debug for one build (Cory Fields) be6d87a script: don't read past the end (Cory Fields) a94496f tests: don't split an empty string (Cory Fields) 00522cd depends: disable reduced exports for debug builds (Cory Fields) 1f7fff2 depends: add docs for debug (Cory Fields) dc66ff5 depends: make LDFLAGS act like the other flags (Cory Fields) b1efba8 depends: give miniupnpc cppflags (Cory Fields) 1d154db depends: teach qt to honor debug/release (Cory Fields) 3b63df5 depends: boost: build for debug or release as requested (Cory Fields) 7e99df7 depends: make sure openssl sees cppflags (Cory Fields) f397304 depends: add debug/release flags for linux/osx/win (Cory Fields) 2027ad3 depends: add the debug/release concept to depends (Cory Fields)
2014-09-26Use a typedef for monetary valuesMark Friedenbach
2014-09-26Add automatic script test generation, and actual checksig testsPieter Wuille
2014-09-25autofile: don't copy CAutoFile by valueCory Fields
2014-09-25tests: don't split an empty stringCory Fields
2014-09-25Merge pull request #4968Wladimir J. van der Laan
219372f script: Fix reference into empty vector run time exception (ENikS)
2014-09-25script: Fix reference into empty vector run time exceptionENikS
Edit by laanwj: `begin_ptr(sourcedata) + sourcedata.size()` -> `end_ptr(sourcedata)`
2014-09-23Fixing out of bounds asses errorENikS
2014-09-22Add actual signature testsPieter Wuille
2014-09-22Use actually valid transactions for script testsPieter Wuille
2014-09-20test: Fix DoS tests after c74332cWladimir J. van der Laan
Fix data structure mismatch ... The mind boggles that they were still passing at all.
2014-09-17Merge pull request #4555Wladimir J. van der Laan
6dcfda2 Don't pass nHashType to EvalScript nor CheckSig (jtimon) 2b23a87 Don't pass nHashType to VerifyScript (jtimon) ce3649fb Remove CScriptCheck::nHashType (was always 0) (jtimon) 358562b Remove unused function main:VerifySignature (jtimon)
2014-09-16Move CTxDestination from script/script to script/standardPieter Wuille
2014-09-14bitcoin-util-test: Test bitcoin-tx with null scriptPubKeyLuke Dashjr
2014-09-12Don't pass nHashType to EvalScript nor CheckSigjtimon
2014-09-12Don't pass nHashType to VerifyScriptjtimon
2014-09-12Remove CScriptCheck::nHashType (was always 0)jtimon
2014-09-12Remove unused function main:VerifySignaturejtimon
2014-09-12Merge pull request #4876Pieter Wuille
6022b5d Make script_{valid,invalid}.json validation flags configurable (Pieter Wuille)
2014-09-10Stricter handling of orphan transactionsGavin Andresen
Prevent denial-of-service attacks by banning peers that send us invalid orphan transactions and only storing orphan transactions given to us by a peer while the peer is connected.
2014-09-10Rename scriptutils.o to wallet_ismine.ojtimon
2014-09-10Move scriptutils.o to walletjtimon
2014-09-08Make script_{valid,invalid}.json validation flags configurablePieter Wuille
2014-09-08Separate script/signjtimon
2014-09-08Separate script/interpreterjtimon
2014-09-08Move CScript class and dependencies to script/scriptjtimon
2014-09-08Rename script.h/.cpp to scriptutils.h/.cpp (plus remove duplicated includes)jtimon
2014-08-28fix comments ExtractAddress() -> ExtractDestination()jtimon
2014-08-27Merge pull request #4377Pieter Wuille
654871d replace ComputeMinWork with CheckMinWork (jtimon) b343c1a Move CBlockIndex::GetBlockWork() to pow::GetProofIncrement(nBits) (jtimon) c2c02f3 Move UpdateTime to pow (jtimon)
2014-08-26Merge pull request #4748Pieter Wuille
ad49c25 Split up util.cpp/h (Wladimir J. van der Laan) f841aa2 Move `COIN` and `CENT` to core.h (Wladimir J. van der Laan) 6e5fd00 Move `*Version()` functions to version.h/cpp (Wladimir J. van der Laan) b4aa769 Move `S_I*` constants and `MSG_NOSIGNAL` to compat.h (Wladimir J. van der Laan) af8297c Move functions in wallet.h to implementation file (Wladimir J. van der Laan) 651480c move functions in main and net to implementation files (Wladimir J. van der Laan) 610a8c0 Move SetThreadPriority implementation to util.cpp instead of the header (Wladimir J. van der Laan) f780e65 Remove unused function `ByteReverse` from util.h (Wladimir J. van der Laan) 121d6ad Remove unused `alignup` function from util.h (Wladimir J. van der Laan) d1e26d4 Move CMedianFilter to timedata.cpp (Wladimir J. van der Laan)
2014-08-26Split up util.cpp/hWladimir J. van der Laan
Split up util.cpp/h into: - string utilities (hex, base32, base64): no internal dependencies, no dependency on boost (apart from foreach) - money utilities (parsesmoney, formatmoney) - time utilities (gettime*, sleep, format date): - and the rest (logging, argument parsing, config file parsing) The latter is basically the environment and OS handling, and is stripped of all utility functions, so we may want to rename it to something else than util.cpp/h for clarity (Matt suggested osinterface). Breaks dependency of sha256.cpp on all the things pulled in by util.
2014-08-26Move CMedianFilter to timedata.cppWladimir J. van der Laan
Now that we no longer use the median filter to keep track of the number of blocks of peers, that's the only place it is used.
2014-08-24Test IsPushOnly() with invalid pushPeter Todd
2014-08-24Merge pull request #4618Pieter Wuille
eb0b56b Simplify serialize.h's exception handling (Pieter Wuille)
2014-08-23replace ComputeMinWork with CheckMinWorkjtimon
2014-08-22Merge pull request #4733Jeff Garzik
2014-08-20Merge pull request #4744Jeff Garzik
2014-08-20rpc_tests: use BOOST_CHECK_EQUALJeff Garzik
Upon failure, BOOST_CHECK_EQUAL provides additional diagnostic information, displaying that data that failed to match.
2014-08-20UniValue tests: use more BOOST_CHECK()Jeff Garzik
2014-08-20UniValue: add unit testsJeff Garzik
2014-08-19Add bitcoin-tx testsJeff Garzik
Testing: delin, delout, locktime, and basic createrawtransaction-like functionality.
2014-08-19bitcoin-tx: Accept input via stdin. Add input handling to tests.Jeff Garzik
2014-08-19Add "it works" test for bitcoin-txJeff Garzik