1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +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

@ -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){
@ -228,7 +228,7 @@ main(int argc, const char ** argv){
goto end;
}
}
if(g_mode_interactive && result){
g_logger.info
("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;
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;
}