Merge "Speed up devel tests 10 times" from Pavel E

"
The multishard_mutation_query test is toooo slow when built
with clang in dev mode. By reducing the number of scans it's
possible to shrink the full suite run time from half an hour
down to ~3 minutes.

tests: unit(dev)
"

* 'br-devel-mode-tests' of https://github.com/xemul/scylla:
  test: Make multishard_mutation_query test do less scans
  configure: Add -DDEVEL to dev build flags
This commit is contained in:
Avi Kivity
2020-12-08 15:42:12 +02:00
2 changed files with 4 additions and 2 deletions

View File

@@ -262,7 +262,7 @@ modes = {
'stack-usage-threshold': 1024*13,
},
'dev': {
'cxxflags': '-O1 -DSEASTAR_ENABLE_ALLOC_FAILURE_INJECTION -DSCYLLA_ENABLE_ERROR_INJECTION',
'cxxflags': '-O1 -DDEVEL -DSEASTAR_ENABLE_ALLOC_FAILURE_INJECTION -DSCYLLA_ENABLE_ERROR_INJECTION',
'cxx_ld_flags': '',
'stack-usage-threshold': 1024*21,
},

View File

@@ -963,8 +963,10 @@ SEASTAR_THREAD_TEST_CASE(fuzzy_test) {
auto pop_desc = create_fuzzy_test_table(env, rnd_engine);
#ifdef DEBUG
#if defined DEBUG
auto cfg = fuzzy_test_config{seed, std::chrono::seconds{8}, 1, 1};
#elif defined DEVEL
auto cfg = fuzzy_test_config{seed, std::chrono::seconds{2}, 8, 4};
#else
auto cfg = fuzzy_test_config{seed, std::chrono::seconds{2}, 16, 256};
#endif