aboutsummaryrefslogtreecommitdiff
path: root/src/test/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* build: delete old Makefile.am'sCory Fields2014-06-051-77/+0
|
* Move bignum.h to test/Pieter Wuille2014-05-091-0/+1
|
* Reduce bignum.h now it is only needed for scriptnum_testsPieter Wuille2014-05-091-1/+0
|
* script: Add test for CScriptNumCory Fields2014-04-221-0/+1
| | | | | | | | | | | | | | | | | | 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.
* Add sighash tests from data fileManuel Araoz2014-03-311-1/+2
|
* Total money limit testPieter Wuille2014-03-051-0/+1
| | | | | | Added bounds check by @il--ya. Updated-by: Wladimir van der Laan <[email protected]>
* small headers ordering cleanupPhilip Kaufmann2014-01-111-1/+2
| | | | | | - keep headers in alphabetical order - fix Makefile.am (2 files in 1 line - leftover) - remove some spaces etc.
* makefile.am: split long lines into one file per lineWladimir J. van der Laan2014-01-111-13/+40
| | | | | This makes it easier to read diffs. Cosmetic change to build system only.
* Unittests for uint256.hThomas Holenstein2013-12-251-1/+1
| | | | | | Unit tests for uint256.h. The file uint160_tests.cpp is no longer needed. The ad-hoc tests which were in uint256.h are also no longer needed. The new tests achieve 100% coverage.
* Re-enable miner tests in --disable-wallet modeWladimir J. van der Laan2013-12-091-2/+2
| | | | | | Use a fixed script instead of a CReserveKey from the wallet. This does not affect the functionality or result of the tests as they never check the state of the wallet in the first place.
* Split off rpc_wallet_testsWladimir J. van der Laan2013-12-041-1/+1
| | | | | Split wallet tests from other RPC tests. Now no #ifdef ENABLE_WALLET are needed anymore in either file.
* Add --disable-wallet option to build systemWladimir J. van der Laan2013-12-041-4/+13
| | | | | Make it possible to build Bitcoin without wallet (and thus without BDB) so that it only functions as node.
* bitcoin-cli: remove unneeded dependencies (only code movement)Wladimir J. van der Laan2013-12-031-1/+1
| | | | | | | | | | | | | | Remove unnecessary dependencies for bitcoin-cli (leveldb, berkelydb, wallet, RPC server) Build system changes: - split libbitcoin.a into libbitcoin_common.a, libbitcoin_server.a and libbitcoin_cli.a Code changes (movement only): - split up HelpMessage into HelpMessage in init.cpp and HelpMessageCli in rpcclient.cpp - move uiInterface from init.cpp to util.cpp
* configure: Simplify common AM_CPPFLAGS and AM_LDFLAGS to a Makefile.commonLuke Dashjr2013-11-111-5/+1
|
* Merge pull request #2645 from sipa/inlinesighashGavin Andresen2013-10-161-1/+1
|\ | | | | Inline signature serializer
| * Inline signature serializerPieter Wuille2013-09-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of building a full copy of a CTransaction being signed, and then modifying bits and pieces until its fits the form necessary for computing the signature hash, use a wrapper serializer that only serializes the necessary bits on-the-fly. This makes it easier to see which data is actually being hash, reduces load on the heap, and also marginally improves performances (around 3-4us/sigcheck here). The performance improvements are much larger for large transactions, though. The old implementation of SignatureHash is moved to a unit tests, to test whether the old and new algorithm result in the same value for randomly-constructed transactions.
* | autotools: fix the Makefile.include to be safely included anywhere.Cory Fields2013-09-181-2/+2
|/ | | | This way we can reuse rules rather than duplicating them.
* included-tests: generate binary data from test files for inclusion into test ↵Cory Fields2013-09-161-12/+15
| | | | | | | | | | | | | | | | | | | | | | binaries This change moves test data into the binaries rather than reading them from the disk at runtime. Advantages: - Tests become distributable - Cross-compile friendly. Build on one machine and execute in an arbitrary location on another. - Easier testing for backports. Users can verify that tests pass without having to track down corresponding test data. - More trustworthy test results and easier quality assurance as tests make fewer assumptions about their environment. - Tests could theoretically run at client/daemon startup and exit on failure. Disadvantages: - Required 'hexdump' build-dependency. This is a standard bsd tool that should be usable everywhere. It is likely already installed on all build-machines. - Tests can no longer be fudged after build by altering test-data.
* autotools: use an absolute path to test dataCory Fields2013-09-101-2/+2
|
* autotools: switch to autotools buildsystemCory Fields2013-09-051-0/+38