polardbxengine/storage/ndb/test/run-test
dengwendi 1d6524707e INIT 2023-11-15 15:04:10 +08:00
..
16node-tests.txt INIT 2023-11-15 15:04:10 +08:00
ATRT_SETUP_README.txt INIT 2023-11-15 15:04:10 +08:00
ATRT_USAGE_README.txt INIT 2023-11-15 15:04:10 +08:00
CMakeLists.txt INIT 2023-11-15 15:04:10 +08:00
README INIT 2023-11-15 15:04:10 +08:00
README.ATRT INIT 2023-11-15 15:04:10 +08:00
atrt-analyze-result.sh INIT 2023-11-15 15:04:10 +08:00
atrt-backtrace.sh INIT 2023-11-15 15:04:10 +08:00
atrt-example.tgz INIT 2023-11-15 15:04:10 +08:00
atrt-gather-result.sh INIT 2023-11-15 15:04:10 +08:00
atrt-mysql-test-run INIT 2023-11-15 15:04:10 +08:00
atrt-mysqltest INIT 2023-11-15 15:04:10 +08:00
atrt-setup.sh INIT 2023-11-15 15:04:10 +08:00
atrt.hpp INIT 2023-11-15 15:04:10 +08:00
autotest-boot.sh INIT 2023-11-15 15:04:10 +08:00
autotest-run.sh INIT 2023-11-15 15:04:10 +08:00
basic.txt INIT 2023-11-15 15:04:10 +08:00
check-tests.sh INIT 2023-11-15 15:04:10 +08:00
command.cpp INIT 2023-11-15 15:04:10 +08:00
conf-blade08.cnf INIT 2023-11-15 15:04:10 +08:00
conf-daily-perf.cnf INIT 2023-11-15 15:04:10 +08:00
conf-dl145a.cnf INIT 2023-11-15 15:04:10 +08:00
conf-downgrade-vigdis05.cnf INIT 2023-11-15 15:04:10 +08:00
conf-downgrade.cnf INIT 2023-11-15 15:04:10 +08:00
conf-fimafeng08.cnf INIT 2023-11-15 15:04:10 +08:00
conf-fimafeng09.cnf INIT 2023-11-15 15:04:10 +08:00
conf-loki27.cnf INIT 2023-11-15 15:04:10 +08:00
conf-mikael1-daily-basic--15.cnf INIT 2023-11-15 15:04:10 +08:00
conf-mikael1.cnf INIT 2023-11-15 15:04:10 +08:00
conf-mikael2.cnf INIT 2023-11-15 15:04:10 +08:00
conf-mikael3-daily-basic--15.cnf INIT 2023-11-15 15:04:10 +08:00
conf-mikael3.cnf INIT 2023-11-15 15:04:10 +08:00
conf-ndb07.cnf INIT 2023-11-15 15:04:10 +08:00
conf-ndbmaster.cnf INIT 2023-11-15 15:04:10 +08:00
conf-repl.cnf INIT 2023-11-15 15:04:10 +08:00
conf-techra29.cnf INIT 2023-11-15 15:04:10 +08:00
conf-test.cnf INIT 2023-11-15 15:04:10 +08:00
conf-tyr13.cnf INIT 2023-11-15 15:04:10 +08:00
conf-tyr64.cnf INIT 2023-11-15 15:04:10 +08:00
conf-upgrade-vigdis05.cnf INIT 2023-11-15 15:04:10 +08:00
conf-upgrade.cnf INIT 2023-11-15 15:04:10 +08:00
conf-vigdis05-daily-basic--15.cnf INIT 2023-11-15 15:04:10 +08:00
conf-vigdis05.cnf INIT 2023-11-15 15:04:10 +08:00
create_mtr_suites.pl INIT 2023-11-15 15:04:10 +08:00
daily-basic--01-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-basic--02-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-basic--03-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-basic--04-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-basic--05-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-basic--06-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-basic--07-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-basic--08-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-basic--09-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-basic--10-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-basic--11-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-basic--12-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-basic--13-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-basic--14-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-basic--15-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-basic-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-devel--01-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-devel--02-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-devel--03-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-devel--04-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-devel--05-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-devel--06-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-devel--07-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-devel-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-perf--01-tests.txt INIT 2023-11-15 15:04:10 +08:00
daily-perf-tests.txt INIT 2023-11-15 15:04:10 +08:00
db.cpp INIT 2023-11-15 15:04:10 +08:00
downgrade-tests.txt INIT 2023-11-15 15:04:10 +08:00
example-my.cnf INIT 2023-11-15 15:04:10 +08:00
example.conf INIT 2023-11-15 15:04:10 +08:00
files.cpp INIT 2023-11-15 15:04:10 +08:00
main.cpp INIT 2023-11-15 15:04:10 +08:00
make-config.sh INIT 2023-11-15 15:04:10 +08:00
make-html-reports.sh INIT 2023-11-15 15:04:10 +08:00
make-index.sh INIT 2023-11-15 15:04:10 +08:00
mtr.cnf INIT 2023-11-15 15:04:10 +08:00
ndb-autotest.sh INIT 2023-11-15 15:04:10 +08:00
release-bigmem-tests.txt INIT 2023-11-15 15:04:10 +08:00
setup.cpp INIT 2023-11-15 15:04:10 +08:00
test-tests.txt INIT 2023-11-15 15:04:10 +08:00
test_execution_resources.cpp INIT 2023-11-15 15:04:10 +08:00
test_execution_resources.hpp INIT 2023-11-15 15:04:10 +08:00
upgrade-boot.sh INIT 2023-11-15 15:04:10 +08:00
upgrade-tests.txt INIT 2023-11-15 15:04:10 +08:00
weekly-basic--01-tests.txt INIT 2023-11-15 15:04:10 +08:00
weekly-basic--02-tests.txt INIT 2023-11-15 15:04:10 +08:00
weekly-devel--01-tests.txt INIT 2023-11-15 15:04:10 +08:00
weekly-devel--02-tests.txt INIT 2023-11-15 15:04:10 +08:00
weekly-devel--03-tests.txt INIT 2023-11-15 15:04:10 +08:00
weekly-devel--04-tests.txt INIT 2023-11-15 15:04:10 +08:00
weekly-devel--05-tests.txt INIT 2023-11-15 15:04:10 +08:00
weekly-devel--06-tests.txt INIT 2023-11-15 15:04:10 +08:00
weekly-devel--07-tests.txt INIT 2023-11-15 15:04:10 +08:00
weekly-devel--08-tests.txt INIT 2023-11-15 15:04:10 +08:00
weekly-devel--09-tests.txt INIT 2023-11-15 15:04:10 +08:00
weekly-devel--10-tests.txt INIT 2023-11-15 15:04:10 +08:00
weekly-devel--11-tests.txt INIT 2023-11-15 15:04:10 +08:00
weekly-devel--12-tests.txt INIT 2023-11-15 15:04:10 +08:00
weekly-devel--13-tests.txt INIT 2023-11-15 15:04:10 +08:00
weekly-devel--14-tests.txt INIT 2023-11-15 15:04:10 +08:00

README

# Copyright (c) 2009, 2019, Oracle and/or its affiliates. All rights reserved.
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License, version 2.0,
#  as published by the Free Software Foundation.
#
#  This program is also distributed with certain software (including
#  but not limited to OpenSSL) that is licensed under separate terms,
#  as designated in a particular file or component or in included license
#  documentation.  The authors of MySQL hereby grant you an additional
#  permission to link the program and your derivative works with the
#  separately licensed software that they have included with MySQL.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License, version 2.0, for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA

run-test/README

This document describes how atrt works and how to use it.

atrt is a test program driver.
atrt supports fully distributed test and utilizes ndb_cpcd.

===================================================
/**
  * Pseudo code for main atrt algorithm
  */

  read config file (default d.txt)
  contact each ndb_cpcd

  read all test cases

  start cluster
  if cluster start has failures do
    report overall critical failure
    attempt to clean up any left over process
    exit
  end if

  for each test case do
    run test case
    compute overall return code
    write result to report file
  done processing tests


/**
 * End of pseudo code for main atrt algorithm
 */



/**
  * Pseudo code for atrt test run algorithm
  */
  while test_runs < total_test_run_attemps do
    if test_forces_restart or previous_retry_failed
      stop all processes
      deploy all configurations
      start all processes
    end if

    if cluster status not ok
      attempt new retry
    end if
    run test and wait for test to finish
    gather all log results

  done while retries

  rename result

  stop_cluster = (test status != ok) || cluster_configuration_changed
  if (stop_cluster)
  if (test failed or cluster configuration changed)
    if (stop_all_processes fails)
      set test result as critical failure
    end if
    if (start_all_processes fails)
      set test result as critical failure
    end if
  end if
  check cluster status

/**
  * End of pseudo code for atrt test run algorithm
  */

===================================================