summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: add test for needed OpenSSL algorithms in unboundmoneromooo-monero2016-03-292-1/+52
| | | | | These can be compiled out of libunbound, leading to failure to check DNSSEC validity.
* tests: obligatory hardfork unit build fix after interface changemoneromooo-monero2016-03-261-1/+1
|
* New RPC and daemon command to get output histogrammoneromooo-monero2016-03-261-0/+1
| | | | | | | | | | | | | | | | | This is a list of existing output amounts along with the number of outputs of that amount in the blockchain. The daemon command takes: - no parameters: all outputs with at least 3 instances - one parameter: all outputs with at least that many instances - two parameters: all outputs within that many instances The default starts at 3 to avoid massive spamming of all dust outputs in the blockchain, and is the current minimum mixin requirement. An optional vector of amounts may be passed, to request histogram only for those outputs.
* core_tests: fix compile failure with GCC 4.8.4moneromooo-monero2016-03-211-1/+1
| | | | Reported and tested by smooth
* Revert "Print stack trace upon exceptions"moneromooo-monero2016-03-2110-17/+13
| | | | | | Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
* Print stack trace upon exceptionsmoneromooo-monero2016-03-1910-13/+17
| | | | Useful for debugging users' logs
* tests: enable core tests againmoneromooo-monero2016-03-171-1/+1
| | | | They should not have been disabled in the first place
* fixed "undefined reference" for boost::system libraryIlya Kitaev2016-03-161-1/+2
|
* Wallet::store_to(path, password) implemented;Ilya Kitaev2016-03-161-1/+64
|
* Wallet::address implementedIlya Kitaev2016-03-161-0/+8
|
* WalletManager::recoveryWallet implementedIlya Kitaev2016-03-161-5/+14
|
* Wallet::setPassword() method for wallet2_apiIlya Kitaev2016-03-161-4/+22
|
* changes in wallet2_api + implemented WalletManager::openWalletIlya Kitaev2016-03-161-5/+25
|
* get_seed() included to interfaceIlya Kitaev2016-03-161-9/+34
|
* tests for wallet2_apiIlya Kitaev2016-03-163-1/+130
|
* unit_tests: fix hard fork unit test compilationwarptangent2016-03-051-1/+1
| | | | Match changed BlockchainDB function declaration.
* Merge pull request #689Riccardo Spagni2016-02-291-1/+1
|\ | | | | | | 5ab33ca unit_tests: update test openalias address (moneromooo-monero)
| * unit_tests: update test openalias addressmoneromooo-monero2016-02-231-1/+1
| | | | | | | | It was recently changed
* | move g_test_dbg_lock_sleep from a global to a function level staticmoneromooo-monero2016-02-227-14/+0
|/ | | | | This avoids the need to define that variable in every program which uses epee.
* Merge pull request #659Riccardo Spagni2016-02-171-1/+1
|\ | | | | | | d56b2e5 core_tests: fix a compile problem with CLANG (moneromooo-monero)
| * core_tests: fix a compile problem with CLANGmoneromooo-monero2016-02-131-1/+1
| | | | | | | | | | | | | | It doesn't like const objects from classes that do not have a user defined ctor, apparently. Reported by othe.
* | Add the new test filesmoneromooo-monero2016-02-132-0/+295
|/ | | | Forgot to add them before commit
* unit_tests: fix blockchain unit test after hard fork import fixmoneromooo-monero2016-02-081-1/+10
|
* core_tests: add tests for hard fork behaviors (MRL-0004)moneromooo-monero2016-02-084-7/+22
| | | | | | We also replace the --fakechain option with an optional structure containing details about configuration for the core/blockchain, for test purposes. This seems more future friendly.
* core_tests: allow setting miner tx max_outs when creating a blockmoneromooo-monero2016-02-082-4/+6
|
* unit_tests: fix hard fork unit test compilationmoneromooo-monero2016-02-081-0/+4
|
* Merge pull request #641Riccardo Spagni2016-02-081-13/+9
|\ | | | | | | | | | | | | 7658ac0 blockchain: revert handle_get_objects adding block id on tx not found (moneromooo-monero) 3a0f4d8 berkeleydb: fix delete/free mismatch (moneromooo-monero) 1642be2 minor bugfixes and refactoring (Thomas Winget) 098dcf2 unit_tests: fix mnemonics unit test testing invalid seeds (moneromooo-monero)
| * unit_tests: fix mnemonics unit test testing invalid seedsmoneromooo-monero2016-02-011-13/+9
| | | | | | | | | | | | | | | | | | Some word triplets, such as "mugged names nail", are not valid results from any 32 bit value. If used to decode a 32 bit value, the result will therefore encode to a different word triplet. Fix this by using random words converted from an actual random bitstring, ensuring we always get valid triplets.
* | Merge pull request #639Riccardo Spagni2016-02-081-30/+68
|\ \ | | | | | | | | | | | | 119eb10 unit_tests: fix hard fork unit tests and add a test for major too (moneromooo-monero) 64a2aa3 hardfork: allow passing chain height in get(height) for convenience (moneromooo-monero)
| * | unit_tests: fix hard fork unit tests and add a test for major toomoneromooo-monero2016-02-011-30/+68
| |/
* / tests: fix compilation failure after V1 define renamemoneromooo-monero2016-01-311-1/+1
|/
* updated gtest (added missing files)Riccardo Spagni2016-01-255-0/+525
|
* updated gtestRiccardo Spagni2016-01-2517-888/+884
|
* OpenBSD support for Monero.me0wmix2016-01-212-4/+4
|
* Fix 30f92f5630bbc7507708275a29a9ae7acf633a5bHoward Chu2016-01-161-0/+1
| | | | Needed to add the corresponding (dummy) method to unit test hardfork
* unit_tests: initialize db object in ctor, not openmoneromooo-monero2016-01-021-1/+2
| | | | open isn't actually called in those tests
* updated copyright yearRiccardo Spagni2015-12-3198-98/+98
|
* Merge pull request #580Riccardo Spagni2015-12-311-1/+1
|\ | | | | | | | | 1813736 unit_tests: remove an unused variable (moneromooo-monero) 70dd346 unit_tests: fix hardfork test build (moneromooo-monero)
| * unit_tests: remove an unused variablemoneromooo-monero2015-12-301-1/+0
| |
| * unit_tests: fix hardfork test buildmoneromooo-monero2015-12-301-0/+1
| | | | | | | | | | The dummy blockchain class needed to have the newly added is_read_only virtual function.
* | core_tests: deinit core before destroying itmoneromooo-monero2015-12-301-1/+3
|/ | | | This fixes a use after free by ioservice threads
* tests: add a unit test for canonical decomposed amountsmoneromooo-monero2015-12-262-0/+84
|
* tests: fix various tests by using parameters better suited to moneromoneromooo-monero2015-12-253-8/+8
| | | | | | Either smaller coin values (as monero has smaller block rewards), or pre-hard fork values (full reward zone), or post-Bytecoin values (emission speed).
* tests: fix some double spending testsmoneromooo-monero2015-12-251-7/+8
| | | | | | | | | | | Some tests assume the first output in a transaction goes to the recipient. However, it can be the change. When it is, the recipient's keys will not recognize this output. To fix this, we send all we have, to ensure there is no change, and the first output goes to the recipient. I'm not sure why this worked with Cryptonote. The tests sent 17 coins, which seems way smaller than the first Bytecoin block reward, so there would have been change too. Maybe outputs were not shuffled originally.
* tests: use 255 as a "too high" block versionmoneromooo-monero2015-12-251-2/+2
| | | | | While the original cryptonote accepted only the current major version, we can accept higher ones.
* blockchain: fix bitflipping test with quantized block rewardsmoneromooo-monero2015-12-251-1/+2
| | | | | | | Block reward may now be less than the full amount allowed. This was breaking the bitflipping test. We now keep track of whether a block which was accepted by the core has a lower than allowed block reward, and allow this in the test.
* unit_tests: fix hard fork testsmoneromooo-monero2015-12-241-1/+2
| | | | | A couple stopped passing when the hard fork code was made to reject incoming hard fork versions it did not know about.
* unit_tests: new test for IP blockingmoneromooo-monero2015-12-242-0/+169
|
* Tone down a bit L0 logs during daemon syncmoneromooo-monero2015-12-141-0/+1
|
* core_tests: fix ring_signature_1 testsmoneromooo-monero2015-12-131-8/+8
| | | | | | | | They were trying to send too much monero, and thus failing. The parameters were set in such a way that the (simple) output gathering code could fulfill them for 4 block rewards for the original Bytecoin emission, but that does not work with monero so we need to use smaller values.