Commit d4574b91 authored by unknown's avatar unknown
Browse files

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
parent 93195380
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
max-time: 25000
max-time: 3600
cmd: atrt-mysql-test-run
args: --force

+29 −0
Original line number Diff line number Diff line
@@ -204,3 +204,32 @@ max-time: 2500
cmd: test_event
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
+7 −2
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ main(int argc, const char ** argv){
      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;
      tmp.assfmt("result.%d", test_no);
      if(rename("result", tmp.c_str()) != 0){
@@ -909,6 +909,11 @@ read_test_case(FILE * file, atrt_testcase& tc, int& line){
  else
    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;
}

+1 −0
Original line number Diff line number Diff line
@@ -68,6 +68,7 @@ struct atrt_config {
};

struct atrt_testcase {
  bool m_report;
  time_t m_max_time;
  BaseString m_command;
  BaseString m_args;