• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

READMEH A D28-Aug-20202.7 KiB9877

README.ATRTH A D28-Aug-2020645 3526

atrt-analyze-result.shH A D28-Aug-20203 KiB9049

atrt-backtrace.shH A D28-Aug-20202.1 KiB8543

atrt-gather-result.shH A D28-Aug-20202.6 KiB8033

atrt-mysql-test-runH A D28-Aug-20201.5 KiB4213

atrt-mysqltestH A D28-Aug-20204 KiB11259

atrt-setup.shH A D28-Aug-20202 KiB6635

atrt.hppH A D28-Aug-20209.2 KiB371266

autotest-boot.shH A D28-Aug-20209.2 KiB346223

autotest-run.shH A D28-Aug-202013.8 KiB528379

check-tests.shH A D28-Aug-20202.3 KiB9966

command.cppH A D28-Aug-202010.3 KiB343237

conf-autotest.cnfH A D28-Aug-20207.3 KiB321275

conf-blade08.cnfH A D28-Aug-20201.8 KiB5750

conf-daily-perf.cnfH A D28-Aug-20202.4 KiB8876

conf-dl145a.cnfH A D28-Aug-20201.8 KiB5951

conf-downgrade.cnfH A D28-Aug-20204.2 KiB180154

conf-fimafeng08.cnfH A D28-Aug-20202 KiB6553

conf-fimafeng09.cnfH A D28-Aug-20201.9 KiB6353

conf-loki27.cnfH A D28-Aug-20201.7 KiB5447

conf-mikael1-daily-basic--15.cnfH A D28-Aug-20202.1 KiB7161

conf-mikael1.cnfH A D28-Aug-20201.9 KiB6355

conf-mikael2.cnfH A D28-Aug-20202 KiB6557

conf-mikael3-daily-basic--15.cnfH A D28-Aug-20201.9 KiB6355

conf-mikael3.cnfH A D28-Aug-20202 KiB6456

conf-ndb07.cnfH A D28-Aug-20202.2 KiB7262

conf-ndbmaster.cnfH A D28-Aug-20201.7 KiB4942

conf-repl.cnfH A D28-Aug-2020442 2923

conf-techra29.cnfH A D28-Aug-20201.9 KiB6353

conf-test.cnfH A D28-Aug-20201.6 KiB5044

conf-tyr13.cnfH A D28-Aug-20202 KiB6960

conf-tyr64.cnfH A D28-Aug-20202 KiB6553

conf-upgrade.cnfH A D28-Aug-20204.2 KiB183157

conf-vigdis05-daily-basic--15.cnfH A D28-Aug-20204.1 KiB178153

create_mtr_suites.plH A D28-Aug-20203.8 KiB14691

db.cppH A D28-Aug-202013.8 KiB467371

example-my.cnfH A D28-Aug-20203.4 KiB138115

example.confH A D28-Aug-2020455 119

files.cppH A D28-Aug-202016.2 KiB542436

main.cppH A D28-Aug-202045.4 KiB1,5071,231

make-config.shH A D28-Aug-20203.4 KiB12590

make-html-reports.shH A D28-Aug-20203.6 KiB216149

make-index.shH A D28-Aug-20205.2 KiB267139

mtr.cnfH A D28-Aug-20201.6 KiB4438

ndb-autotest.shH A D28-Aug-202010.3 KiB430255

process_management.cppH A D28-Aug-202018.3 KiB645503

process_management.hppH A D28-Aug-20203 KiB8248

setup.cppH A D28-Aug-202038.1 KiB1,208990

test_execution_resources.cppH A D28-Aug-20204.6 KiB14996

test_execution_resources.hppH A D28-Aug-20204 KiB11670

upgrade-boot.shH A D28-Aug-20206 KiB249136

README

1# Copyright (c) 2009, 2019, Oracle and/or its affiliates. All rights reserved.
2#
3#  This program is free software; you can redistribute it and/or modify
4#  it under the terms of the GNU General Public License, version 2.0,
5#  as published by the Free Software Foundation.
6#
7#  This program is also distributed with certain software (including
8#  but not limited to OpenSSL) that is licensed under separate terms,
9#  as designated in a particular file or component or in included license
10#  documentation.  The authors of MySQL hereby grant you an additional
11#  permission to link the program and your derivative works with the
12#  separately licensed software that they have included with MySQL.
13#
14#  This program is distributed in the hope that it will be useful,
15#  but WITHOUT ANY WARRANTY; without even the implied warranty of
16#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17#  GNU General Public License, version 2.0, for more details.
18#
19#  You should have received a copy of the GNU General Public License
20#  along with this program; if not, write to the Free Software
21#  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
22
23run-test/README
24
25This document describes how atrt works and how to use it.
26
27atrt is a test program driver.
28atrt supports fully distributed test and utilizes ndb_cpcd.
29
30===================================================
31/**
32  * Pseudo code for main atrt algorithm
33  */
34
35  read config file (default d.txt)
36  contact each ndb_cpcd
37
38  read all test cases
39
40  start cluster
41  if cluster start has failures do
42    report overall critical failure
43    attempt to clean up any left over process
44    exit
45  end if
46
47  for each test case do
48    run test case
49    compute overall return code
50    write result to report file
51  done processing tests
52
53
54/**
55 * End of pseudo code for main atrt algorithm
56 */
57
58
59
60/**
61  * Pseudo code for atrt test run algorithm
62  */
63  while test_runs < total_test_run_attemps do
64    if test_forces_restart or previous_retry_failed
65      stop all processes
66      deploy all configurations
67      start all processes
68    end if
69
70    if cluster status not ok
71      attempt new retry
72    end if
73    run test and wait for test to finish
74    gather all log results
75
76  done while retries
77
78  rename result
79
80  stop_cluster = (test status != ok) || cluster_configuration_changed
81  if (stop_cluster)
82  if (test failed or cluster configuration changed)
83    if (stop_all_processes fails)
84      set test result as critical failure
85    end if
86    if (start_all_processes fails)
87      set test result as critical failure
88    end if
89  end if
90  check cluster status
91
92/**
93  * End of pseudo code for atrt test run algorithm
94  */
95
96===================================================
97
98

README.ATRT

1
2!-- install ndb_cpcd
3!-- many steps? future RPM
4
5!-- deploy binaries and libraries to hosts, rsync
6% export DEPLOY_DST="mc05:/space/tomas/keso"
7% ssh mc05 mkdir /space/tomas/keso
8% export RSYNC_RSH=ssh
9% make
10
11% mkdir -p /tmp/atrt-run-2-node
12% cd /tmp/atrt-run-2-node
13% cat > d.txt
14baseport: 9321
15basedir: /space/tomas/keso
16mgm: localhost
17ndb: localhost localhost
18api: localhost
19% cat > default.txt
20[DB DEFAULT]
21NoOfReplicas: 2
22% bin/make-config.sh -m d.txt -t default.txt -d .
23
24% atrt -v -v
25test_event -r 5 T1
26
27
28!-- check output
29% tail -f /space/tomas/keso/run/4.ndb_api/log.out
30
31
32!-- check processes
33% export NDB_CPCC_HOSTS="mc05"
34% ndb_cpcc
35