|
26 | 26 | ############## |
27 | 27 |
|
28 | 28 | save_args=$* |
29 | | -VERSION="autotest-run.sh version 1.20" |
| 29 | +VERSION="autotest-run.sh version 1.21" |
30 | 30 |
|
31 | 31 | DATE=`date '+%Y-%m-%d'` |
32 | 32 | if [ `uname -s` != "SunOS" ] |
|
75 | 75 | --suite=*) RUN=`echo $1 | sed s/--suite=//`;; |
76 | 76 | --suite-suffix=*) suite_suffix=`echo $1 | sed s/--suite-suffix=//`;; |
77 | 77 | --run-dir=*) run_dir=`echo $1 | sed s/--run-dir=//`;; |
| 78 | + --custom-atrt=*) custom_atrt=`echo $1 | sed s/--custom-atrt=//`;; |
| 79 | + --custom-cpcc=*) custom_cpcc=`echo $1 | sed s/--custom-cpcc=//`;; |
78 | 80 | --install-dir=*) install_dir=`echo $1 | sed s/--install-dir=//`;; |
79 | 81 | --install-dir0=*) install_dir0=`echo $1 | sed s/--install-dir0=//`;; |
80 | 82 | --install-dir1=*) install_dir1=`echo $1 | sed s/--install-dir1=//`;; |
@@ -195,13 +197,30 @@ test_dir=$install_dir/mysql-test/ndb |
195 | 197 | # Check if executables in $install_dir0 is executable at current |
196 | 198 | # platform, they could be built for another kind of platform |
197 | 199 | unset NDB_CPCC_HOSTS |
198 | | -if ${install_dir}/bin/ndb_cpcc 2>/dev/null ; then |
199 | | - # Use atrt and ndb_cpcc from test build |
| 200 | + |
| 201 | +if [ -n "$custom_atrt" ]; |
| 202 | +then |
| 203 | + echo "Using custom atrt ${custom_atrt}" |
| 204 | + atrt="${custom_atrt}" |
| 205 | +elif ${install_dir}/bin/ndb_cpcc 2>/dev/null |
| 206 | +then |
| 207 | + echo "Using atrt from test build" |
200 | 208 | atrt="${test_dir}/atrt" |
201 | | - ndb_cpcc="${install_dir}/bin/ndb_cpcc" |
202 | 209 | else |
203 | | - echo "Note: Cross platform testing, atrt and ndb_cpcc is not used from test build" >&2 |
| 210 | + echo "Note: Cross platform testing, atrt used from server path" >&2 |
204 | 211 | atrt=`which atrt` |
| 212 | +fi |
| 213 | + |
| 214 | +if [ -n "$custom_cpcc" ]; |
| 215 | +then |
| 216 | + echo "Using custom ndb_cpcc ${custom_cpcc}" |
| 217 | + ndb_cpcc="${custom_cpcc}" |
| 218 | +elif ${install_dir}/bin/ndb_cpcc 2>/dev/null |
| 219 | +then |
| 220 | + echo "Using ndb_cpcc from test build" |
| 221 | + ndb_cpcc="${install_dir}/bin/ndb_cpcc" |
| 222 | +else |
| 223 | + echo "Note: Cross platform testing, ndb_cpcc used from server path" >&2 |
205 | 224 | ndb_cpcc=`which ndb_cpcc` |
206 | 225 | fi |
207 | 226 |
|
|
0 commit comments