2004-06-14 12:21:13 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
=================================
|
|
|
|
atrt has the following main loop:
|
|
|
|
|
|
|
|
/**
|
2005-07-18 13:31:02 +02:00
|
|
|
* Pseudo code for atrt
|
2004-06-14 12:21:13 +02:00
|
|
|
*/
|
|
|
|
read config file (default d.txt)
|
|
|
|
contact each ndb_cpcd
|
|
|
|
start each ndb_mgmd
|
|
|
|
connect to each ndb_mgmd
|
|
|
|
for each read(test case)
|
|
|
|
do
|
|
|
|
if previous test failed (or is first test)
|
|
|
|
stop each ndbd
|
|
|
|
start each ndbd
|
|
|
|
wait for ndbd to get started
|
|
|
|
|
|
|
|
start each mysqld
|
|
|
|
|
|
|
|
start each test prg
|
|
|
|
|
|
|
|
wait while all is running and max time not elapsed
|
|
|
|
|
|
|
|
stop each mysqld
|
|
|
|
|
|
|
|
stop each test prg
|
|
|
|
|
|
|
|
gather result
|
|
|
|
|
|
|
|
done
|
|
|
|
/**
|
2005-07-18 13:31:02 +02:00
|
|
|
* End of pseudo code
|
2004-06-14 12:21:13 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
=================================
|
|
|
|
|