1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

ndb - add more tests to autotest

ndb/test/run-test/daily-basic-tests.txt:
  run mysql-test-run for max 1 hour
    (normally 30 minutes)
ndb/test/run-test/daily-devel-tests.txt:
  Add benchmark to devel suite
ndb/test/run-test/main.cpp:
  Add bench mode. always produce report
ndb/test/run-test/run-test.hpp:
  Add bench mode. always produce report
This commit is contained in:
unknown
2005-02-10 18:15:15 +01:00
parent 93195380b2
commit d4574b91af
4 changed files with 38 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
max-time: 25000 max-time: 3600
cmd: atrt-mysql-test-run cmd: atrt-mysql-test-run
args: --force args: --force

View File

@@ -204,3 +204,32 @@ max-time: 2500
cmd: test_event cmd: test_event
args: -n BasicEventOperation T1 T6 args: -n BasicEventOperation T1 T6
max-time: 300
cmd: DbCreate
args:
max-time: 180
cmd: DbAsyncGenerator
args: -t 60 -p 1
type: bench
max-time: 180
cmd: DbAsyncGenerator
args: -t 60 -p 25
type: bench
max-time: 180
cmd: DbAsyncGenerator
args: -t 60 -p 100
type: bench
max-time: 180
cmd: DbAsyncGenerator
args: -t 60 -p 200
type: bench
max-time: 180
cmd: DbAsyncGenerator
args: -t 60 -p 1 -proc 25
type: bench

View File

@@ -219,7 +219,7 @@ main(int argc, const char ** argv){
fflush(g_report_file); fflush(g_report_file);
} }
if(g_mode_bench || (g_mode_regression && result)){ if(test_case.m_report || g_mode_bench || (g_mode_regression && result)){
BaseString tmp; BaseString tmp;
tmp.assfmt("result.%d", test_no); tmp.assfmt("result.%d", test_no);
if(rename("result", tmp.c_str()) != 0){ if(rename("result", tmp.c_str()) != 0){
@@ -228,7 +228,7 @@ main(int argc, const char ** argv){
goto end; goto end;
} }
} }
if(g_mode_interactive && result){ if(g_mode_interactive && result){
g_logger.info g_logger.info
("Encountered failed test in interactive mode - terminating"); ("Encountered failed test in interactive mode - terminating");
@@ -908,6 +908,11 @@ read_test_case(FILE * file, atrt_testcase& tc, int& line){
tc.m_max_time = 60000; tc.m_max_time = 60000;
else else
tc.m_max_time = atoi(mt); tc.m_max_time = atoi(mt);
if(p.get("type", &mt) && strcmp(mt, "bench") == 0)
tc.m_report= true;
else
tc.m_report= false;
return true; return true;
} }

View File

@@ -68,6 +68,7 @@ struct atrt_config {
}; };
struct atrt_testcase { struct atrt_testcase {
bool m_report;
time_t m_max_time; time_t m_max_time;
BaseString m_command; BaseString m_command;
BaseString m_args; BaseString m_args;