commit
3b53db47cf
|
@ -104,7 +104,7 @@ ctest
|
||||||
|
|
||||||
To run the same tests on a release build, replace `debug` with `release`.
|
To run the same tests on a release build, replace `debug` with `release`.
|
||||||
|
|
||||||
To run specific hash test, you can use `ctest` `-R` parameter. For exmaple to run only `blake2b` hash tests:
|
To run specific hash test, you can use `ctest` `-R` parameter. For example to run only `blake2b` hash tests:
|
||||||
|
|
||||||
```
|
```
|
||||||
ctest -R hash-blake2b
|
ctest -R hash-blake2b
|
||||||
|
|
|
@ -375,7 +375,7 @@ TEST(voting, threshold)
|
||||||
db.add_block(mkblock(hf, h, v), 0, 0, 0, 0, 0, crypto::hash());
|
db.add_block(mkblock(hf, h, v), 0, 0, 0, 0, 0, crypto::hash());
|
||||||
bool ret = hf.add(db.get_block_from_height(h), h);
|
bool ret = hf.add(db.get_block_from_height(h), h);
|
||||||
if (h >= 8 && threshold == 87) {
|
if (h >= 8 && threshold == 87) {
|
||||||
// for threshold 87, we reach the treshold at height 7, so from height 8, hard fork to version 2, but 8 tries to add 1
|
// for threshold 87, we reach the threshold at height 7, so from height 8, hard fork to version 2, but 8 tries to add 1
|
||||||
ASSERT_FALSE(ret);
|
ASSERT_FALSE(ret);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -166,7 +166,7 @@ TEST(logging, glob_prefix)
|
||||||
TEST(logging, last_precedence)
|
TEST(logging, last_precedence)
|
||||||
{
|
{
|
||||||
init();
|
init();
|
||||||
mlog_set_categories("gobal:FATAL,glo*:DEBUG");
|
mlog_set_categories("global:FATAL,glo*:DEBUG");
|
||||||
log();
|
log();
|
||||||
std::string str;
|
std::string str;
|
||||||
ASSERT_TRUE(load_log_to_string(log_filename, str));
|
ASSERT_TRUE(load_log_to_string(log_filename, str));
|
||||||
|
|
|
@ -236,7 +236,7 @@ TEST(select_outputs, exact_unlock_block)
|
||||||
const uint64_t exact_block_offsets_stop_exclusive = *(first_block_too_young - 1);
|
const uint64_t exact_block_offsets_stop_exclusive = *(first_block_too_young - 1);
|
||||||
|
|
||||||
// if too low we may fail by not picking exact block
|
// if too low we may fail by not picking exact block
|
||||||
// if too high test is not as senstive as it could be
|
// if too high test is not as sensitive as it could be
|
||||||
constexpr size_t NUM_PICK_TESTS = 1 << 20;
|
constexpr size_t NUM_PICK_TESTS = 1 << 20;
|
||||||
|
|
||||||
bool picked_exact_unlock_block = false;
|
bool picked_exact_unlock_block = false;
|
||||||
|
|
Loading…
Reference in New Issue