Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
README | H A D | 28-Aug-2020 | 2.7 KiB | 98 | 77 | |
README.ATRT | H A D | 28-Aug-2020 | 645 | 35 | 26 | |
atrt-analyze-result.sh | H A D | 28-Aug-2020 | 3 KiB | 90 | 49 | |
atrt-backtrace.sh | H A D | 28-Aug-2020 | 2.1 KiB | 85 | 43 | |
atrt-gather-result.sh | H A D | 28-Aug-2020 | 2.6 KiB | 80 | 33 | |
atrt-mysql-test-run | H A D | 28-Aug-2020 | 1.5 KiB | 42 | 13 | |
atrt-mysqltest | H A D | 28-Aug-2020 | 4 KiB | 112 | 59 | |
atrt-setup.sh | H A D | 28-Aug-2020 | 2 KiB | 66 | 35 | |
atrt.hpp | H A D | 28-Aug-2020 | 9.2 KiB | 371 | 266 | |
autotest-boot.sh | H A D | 28-Aug-2020 | 9.2 KiB | 346 | 223 | |
autotest-run.sh | H A D | 28-Aug-2020 | 13.8 KiB | 528 | 379 | |
check-tests.sh | H A D | 28-Aug-2020 | 2.3 KiB | 99 | 66 | |
command.cpp | H A D | 28-Aug-2020 | 10.3 KiB | 343 | 237 | |
conf-autotest.cnf | H A D | 28-Aug-2020 | 7.3 KiB | 321 | 275 | |
conf-blade08.cnf | H A D | 28-Aug-2020 | 1.8 KiB | 57 | 50 | |
conf-daily-perf.cnf | H A D | 28-Aug-2020 | 2.4 KiB | 88 | 76 | |
conf-dl145a.cnf | H A D | 28-Aug-2020 | 1.8 KiB | 59 | 51 | |
conf-downgrade.cnf | H A D | 28-Aug-2020 | 4.2 KiB | 180 | 154 | |
conf-fimafeng08.cnf | H A D | 28-Aug-2020 | 2 KiB | 65 | 53 | |
conf-fimafeng09.cnf | H A D | 28-Aug-2020 | 1.9 KiB | 63 | 53 | |
conf-loki27.cnf | H A D | 28-Aug-2020 | 1.7 KiB | 54 | 47 | |
conf-mikael1-daily-basic--15.cnf | H A D | 28-Aug-2020 | 2.1 KiB | 71 | 61 | |
conf-mikael1.cnf | H A D | 28-Aug-2020 | 1.9 KiB | 63 | 55 | |
conf-mikael2.cnf | H A D | 28-Aug-2020 | 2 KiB | 65 | 57 | |
conf-mikael3-daily-basic--15.cnf | H A D | 28-Aug-2020 | 1.9 KiB | 63 | 55 | |
conf-mikael3.cnf | H A D | 28-Aug-2020 | 2 KiB | 64 | 56 | |
conf-ndb07.cnf | H A D | 28-Aug-2020 | 2.2 KiB | 72 | 62 | |
conf-ndbmaster.cnf | H A D | 28-Aug-2020 | 1.7 KiB | 49 | 42 | |
conf-repl.cnf | H A D | 28-Aug-2020 | 442 | 29 | 23 | |
conf-techra29.cnf | H A D | 28-Aug-2020 | 1.9 KiB | 63 | 53 | |
conf-test.cnf | H A D | 28-Aug-2020 | 1.6 KiB | 50 | 44 | |
conf-tyr13.cnf | H A D | 28-Aug-2020 | 2 KiB | 69 | 60 | |
conf-tyr64.cnf | H A D | 28-Aug-2020 | 2 KiB | 65 | 53 | |
conf-upgrade.cnf | H A D | 28-Aug-2020 | 4.2 KiB | 183 | 157 | |
conf-vigdis05-daily-basic--15.cnf | H A D | 28-Aug-2020 | 4.1 KiB | 178 | 153 | |
create_mtr_suites.pl | H A D | 28-Aug-2020 | 3.8 KiB | 146 | 91 | |
db.cpp | H A D | 28-Aug-2020 | 13.8 KiB | 467 | 371 | |
example-my.cnf | H A D | 28-Aug-2020 | 3.4 KiB | 138 | 115 | |
example.conf | H A D | 28-Aug-2020 | 455 | 11 | 9 | |
files.cpp | H A D | 28-Aug-2020 | 16.2 KiB | 542 | 436 | |
main.cpp | H A D | 28-Aug-2020 | 45.4 KiB | 1,507 | 1,231 | |
make-config.sh | H A D | 28-Aug-2020 | 3.4 KiB | 125 | 90 | |
make-html-reports.sh | H A D | 28-Aug-2020 | 3.6 KiB | 216 | 149 | |
make-index.sh | H A D | 28-Aug-2020 | 5.2 KiB | 267 | 139 | |
mtr.cnf | H A D | 28-Aug-2020 | 1.6 KiB | 44 | 38 | |
ndb-autotest.sh | H A D | 28-Aug-2020 | 10.3 KiB | 430 | 255 | |
process_management.cpp | H A D | 28-Aug-2020 | 18.3 KiB | 645 | 503 | |
process_management.hpp | H A D | 28-Aug-2020 | 3 KiB | 82 | 48 | |
setup.cpp | H A D | 28-Aug-2020 | 38.1 KiB | 1,208 | 990 | |
test_execution_resources.cpp | H A D | 28-Aug-2020 | 4.6 KiB | 149 | 96 | |
test_execution_resources.hpp | H A D | 28-Aug-2020 | 4 KiB | 116 | 70 | |
upgrade-boot.sh | H A D | 28-Aug-2020 | 6 KiB | 249 | 136 |
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