summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix broken test dataRiccardo Spagni2017-02-221-0/+0
|
* update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-21112-111/+111
|
* Merge pull request #1758Riccardo Spagni2017-02-211-1/+2
|\ | | | | | | 5664826a unit_tests: hardfork unit test now needs get_block_blob_from_height (moneromooo-monero)
| * unit_tests: hardfork unit test now needs get_block_blob_from_heightmoneromooo-monero2017-02-211-1/+2
| |
* | More for PR #1724Howard Chu2017-02-211-1/+1
|/ | | | Fix unit_tests build (get_output_key API change)
* Merge pull request #1727Riccardo Spagni2017-02-213-3/+5
|\ | | | | | | 0288310e blockchain_db: add "raw" blobdata getters for block and transaction (moneromooo-monero)
| * blockchain_db: add "raw" blobdata getters for block and transactionmoneromooo-monero2017-02-133-3/+5
| | | | | | | | This speeds up operations such as serving blocks to syncing peers
* | Merge pull request #1721Riccardo Spagni2017-02-218-64/+69
|\ \ | | | | | | | | | 2cde2c02 switch to boost::thread for mingw build (Lee Clagett)
| * | switch to boost::thread for mingw buildLee Clagett2017-02-168-64/+69
| |/
* | Merge pull request #1731Riccardo Spagni2017-02-211-1/+1
|\ \ | | | | | | | | | | | | | | | a427235e core: add a missing newline on a string to be logged (moneromooo-monero) b6a2230e unit_tests: fix minor blockchain_db regression (moneromooo-monero) c488eca5 hardfork: tone down some logs (moneromooo-monero)
| * | unit_tests: fix minor blockchain_db regressionmoneromooo-monero2017-02-141-1/+1
| |/ | | | | | | | | | | Due to the change in ordering for adding block and tx data to the database in f2986ccfc1f41023cd667dbb488a10df492eb8e7, adding a block twice now throws TX_EXISTS, not BLOCK_EXISTS.
* / util: add a vercmp function to compare version numbersmoneromooo-monero2017-02-202-1/+45
|/ | | | | It is simple, supports simple x.y.z type numeric versions, and does not attempt any kind of validation
* tests: fixup include paths after cryptonote_core splitmoneromooo-monero2017-02-121-1/+1
|
* Merge pull request #1714Riccardo Spagni2017-02-122-0/+4
|\ | | | | | | | | 5adcb5a4 tx_pool: add a debug message when adding a tx to the pool (moneromooo-monero) 9faef1f8 cryptonote_protocol: misc fluffy block fixes (moneromooo-monero)
| * cryptonote_protocol: misc fluffy block fixesmoneromooo-monero2017-02-122-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fix wrong block being used when a new block is received between a node elaying a fluffy block and sending a new fluffy block with txes a peer did not have - misc a neverending ping pong requesting the same missing txids when a new block is received in the meantime, causing the top block to not be the one we need - send the original fluffy block message block height when sending a new fluffy block, not the current top height, which might have been updated since - avoid sending back the whole block blob when asking for txes, send only the hash instead - plus misc cleanup and additional debugging logs
* | Merge pull request #1706Riccardo Spagni2017-02-124-4/+132
|\ \ | | | | | | | | | | | | | | | 7403e56f performance_tests: report small time per call in microseconds (moneromooo-monero) cadada2d performance_tests: add tests for sc_reduce32 and cn_fast_hash (moneromooo-monero) 962c72b6 performance_tests: initialize logging at startup (moneromooo-monero)
| * | performance_tests: report small time per call in microsecondsmoneromooo-monero2017-02-101-3/+13
| | | | | | | | | | | | This is to not report quick operations as 0 milliseconds
| * | performance_tests: add tests for sc_reduce32 and cn_fast_hashmoneromooo-monero2017-02-103-1/+116
| | |
| * | performance_tests: initialize logging at startupmoneromooo-monero2017-02-101-0/+3
| | |
* | | Merge pull request #1699Riccardo Spagni2017-02-121-16/+22
|\ \ \ | |_|/ |/| | | | | | | | dd348549 make previous change portable (Timothy D. Prime) 32d7d048 fixes #1688 protect make debug-test from gtest (Timothy D. Prime)
| * | make previous change portableTimothy D. Prime2017-02-081-2/+2
| | | | | | | | | | | | Use cmake's _PREFIX and _SUFFIX to determine the library location.
| * | fixes #1688 protect make debug-test from gtestTimothy D. Prime2017-02-081-16/+22
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | In simple terms, add_subdirectory() is replaced with ExternalProject_Add(). This change is inspired by https://crascit.com/2015/07/25/cmake-gtest/ with one difference, no download, using the source we already have. Before this change, make debug-test must be preceded by make clean. Otherwise, a subsequent build would be polluted by cmake options made by tests/gtest/. Also removed the changed compiler flags. My test build did not have the affected warnings.
* | Merge pull request #1689Riccardo Spagni2017-02-113-12/+26
|\ \ | | | | | | | | | ce7fcbb4 Add server auth to monerod, and client auth to wallet-cli and wallet-rpc (Lee Clagett)
| * | Add server auth to monerod, and client auth to wallet-cli and wallet-rpcLee Clagett2017-02-063-12/+26
| | |
* | | extract some basic code from libcryptonote_core into libcryptonote_basickenshi842017-02-0833-58/+58
| |/ |/|
* | update wallet api testsJaquee2017-02-041-7/+8
|/
* Merge pull request #1642Riccardo Spagni2017-02-021-1/+1
|\ | | | | | | | | 3ae79a59 core: set missing verifivation_failed flag when rejecting a tx (moneromooo-monero) ea6549e9 core_tests: decrease trace level from trace to debug (moneromooo-monero)
| * core_tests: decrease trace level from trace to debugmoneromooo-monero2017-01-281-1/+1
| | | | | | | | It had become very, very spammy
* | Updates to epee HTTP client codeLee Clagett2017-01-251-2/+2
|/ | | | | | | | - http_simple_client now uses std::chrono for timeouts - http_simple_client accepts timeouts per connect / invoke call - shortened names of epee http invoke functions - invoke command functions only take relative path, connection is not automatically performed
* unit_tests: fix missing return after batch_start prototype changemoneromooo-monero2017-01-211-1/+1
|
* fixups in logging init calls, and add missing net context in a logmoneromooo-monero2017-01-164-3/+4
|
* Change logging to easylogging++moneromooo-monero2017-01-1614-111/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces the epee and data_loggers logging systems with a single one, and also adds filename:line and explicit severity levels. Categories may be defined, and logging severity set by category (or set of categories). epee style 0-4 log level maps to a sensible severity configuration. Log files now also rotate when reaching 100 MB. To select which logs to output, use the MONERO_LOGS environment variable, with a comma separated list of categories (globs are supported), with their requested severity level after a colon. If a log matches more than one such setting, the last one in the configuration string applies. A few examples: This one is (mostly) silent, only outputting fatal errors: MONERO_LOGS=*:FATAL This one is very verbose: MONERO_LOGS=*:TRACE This one is totally silent (logwise): MONERO_LOGS="" This one outputs all errors and warnings, except for the "verify" category, which prints just fatal errors (the verify category is used for logs about incoming transactions and blocks, and it is expected that some/many will fail to verify, hence we don't want the spam): MONERO_LOGS=*:WARNING,verify:FATAL Log levels are, in decreasing order of priority: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE Subcategories may be added using prefixes and globs. This example will output net.p2p logs at the TRACE level, but all other net* logs only at INFO: MONERO_LOGS=*:ERROR,net*:INFO,net.p2p:TRACE Logs which are intended for the user (which Monero was using a lot through epee, but really isn't a nice way to go things) should use the "global" category. There are a few helper macros for using this category, eg: MGINFO("this shows up by default") or MGINFO_RED("this is red"), to try to keep a similar look and feel for now. Existing epee log macros still exist, and map to the new log levels, but since they're used as a "user facing" UI element as much as a logging system, they often don't map well to log severities (ie, a log level 0 log may be an error, or may be something we want the user to see, such as an important info). In those cases, I tried to use the new macros. In other cases, I left the existing macros in. When modifying logs, it is probably best to switch to the new macros with explicit levels. The --log-level options and set_log commands now also accept category settings, in addition to the epee style log levels.
* Merge pull request #1579Riccardo Spagni2017-01-151-0/+19
|\ | | | | | | f5f4109f mnemonics: fix language detection with checksum word (moneromooo-monero)
| * mnemonics: fix language detection with checksum wordmoneromooo-monero2017-01-151-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | If a checksum word is present, language detection would use just the word prefixes. However, a set of word prefixes may be found in more than one language, and so the wrong language may be found first, which could then fail the checksum, since the check may be done with a different unique prefix length from the one it was created from. We now make a checksum test when we we detect a language from prefixes only, to make sure we have the correct one.
* | Merge pull request #1575Riccardo Spagni2017-01-152-4/+5
|\ \ | | | | | | | | | b3ca0c62 unit_tests: fix portable serialization tests hardcoded data path (moneromooo-monero)
| * | unit_tests: fix portable serialization tests hardcoded data pathmoneromooo-monero2017-01-142-4/+5
| |/
* | Merge pull request #1571Riccardo Spagni2017-01-154-5/+5
|\ \ | | | | | | | | | 81c384e4 fix do_not_relay not preventing relaying on a timer (moneromooo-monero)
| * | fix do_not_relay not preventing relaying on a timermoneromooo-monero2017-01-144-5/+5
| |/ | | | | | | Also print its value when printing pool
* | Merge pull request #1506Riccardo Spagni2017-01-151-1/+1
|\ \ | |/ |/| | | | | | | | | | | 3ff54bdd Check for correct thread before ending batch transaction (Howard Chu) eaf8470b Must wait for previous batch to finish before starting new one (Howard Chu) c903c554 Don't cache block height, always get from DB (Howard Chu) eb1fb601 Tweak default db-sync-mode to fast:async:1 (Howard Chu) 0693cff9 Use batch transactions when syncing (Howard Chu)
| * Use batch transactions when syncingHoward Chu2017-01-141-1/+1
| | | | | | | | | | Faster throughput while avoiding corruption. I.e., makes running with --db-sync-mode safe more tolerable.
* | Merge pull request #1559Riccardo Spagni2017-01-131-0/+10
|\ \ | | | | | | | | | db56a03f Wallet2 + API: Callbacks for unconfirmed transfers (Jaquee)
| * | Wallet2 + API: Callbacks for unconfirmed transfersJaquee2017-01-121-0/+10
| | |
* | | Added (not yet enabled) HTTP client authenticationLee Clagett2017-01-111-49/+302
|/ /
* | Merge pull request #1515Riccardo Spagni2017-01-087-0/+521
|\ \ | | | | | | | | | | | | ada7c7da portable serializer: tests added (kenshi84) f390a0e2 portable serializer: make signerd/unsigned tx portable, ignore archive version checking (kenshi84)
| * | portable serializer: tests addedkenshi842017-01-037-0/+521
| |/
* | Merge pull request #1493Riccardo Spagni2017-01-081-0/+1
|\ \ | | | | | | | | | 0478ac68 blockchain: allow marking "tx not found" without an exception (moneromooo-monero)
| * | blockchain: allow marking "tx not found" without an exceptionmoneromooo-monero2017-01-071-0/+1
| | | | | | | | | | | | | | | This is a normal occurence in many cases, and there is no need to spam the log with those when it is.
* | | Merge pull request #1460Riccardo Spagni2017-01-081-8/+9
|\ \ \ | |_|/ |/| | | | | 99580adf make openalias also available for solo miner; introduce namespace tools::dns_utils; support integrated address with dns lookup (kenshi84)
| * | make openalias also available for solo miner; introduce namespace ↵kenshi842016-12-211-8/+9
| |/ | | | | | | tools::dns_utils; support integrated address with dns lookup
* / Fixed HTTP auth tests for gcc 4.9Lee Clagett2016-12-211-4/+4
|/