|
Lines 59-65
src_test() {
Link Here
|
| 59 |
export MTR_BUILD_THREAD="$((${RANDOM} % 100))" |
59 |
export MTR_BUILD_THREAD="$((${RANDOM} % 100))" |
| 60 |
|
60 |
|
| 61 |
# create directories because mysqladmin might right out of order |
61 |
# create directories because mysqladmin might right out of order |
| 62 |
mkdir -p "${S}"/mysql-test/var-tests{,/log} |
62 |
mkdir -p "${T}"/var-tests{,/log} |
| 63 |
|
63 |
|
| 64 |
# create symlink for the tests to find mysql_tzinfo_to_sql |
64 |
# create symlink for the tests to find mysql_tzinfo_to_sql |
| 65 |
ln -s "${CMAKE_BUILD_DIR}/sql/mysql_tzinfo_to_sql" "${S}/sql/" |
65 |
ln -s "${CMAKE_BUILD_DIR}/sql/mysql_tzinfo_to_sql" "${S}/sql/" |
|
Lines 87-93
src_test() {
Link Here
|
| 87 |
pushd "${TESTDIR}" |
87 |
pushd "${TESTDIR}" |
| 88 |
|
88 |
|
| 89 |
# run mysql-test tests |
89 |
# run mysql-test tests |
| 90 |
perl mysql-test-run.pl --force --vardir="${S}/mysql-test/var-tests" \ |
90 |
perl mysql-test-run.pl --force --vardir="${T}/var-tests" \ |
| 91 |
--testcase-timeout=30 |
91 |
--testcase-timeout=30 |
| 92 |
retstatus_tests=$? |
92 |
retstatus_tests=$? |
| 93 |
[[ $retstatus_tests -eq 0 ]] || eerror "tests failed" |
93 |
[[ $retstatus_tests -eq 0 ]] || eerror "tests failed" |
|
Lines 106-114
src_test() {
Link Here
|
| 106 |
|
106 |
|
| 107 |
[[ -z "$failures" ]] || die "Test failures: $failures" |
107 |
[[ -z "$failures" ]] || die "Test failures: $failures" |
| 108 |
einfo "Tests successfully completed" |
108 |
einfo "Tests successfully completed" |
| 109 |
|
|
|
| 110 |
# Cleanup data files after tests |
| 111 |
rm -r "${S}/mysql-test/var-tests" || die "Cleanup failed" |
| 112 |
else |
109 |
else |
| 113 |
|
110 |
|
| 114 |
einfo "Skipping server tests due to minimal build." |
111 |
einfo "Skipping server tests due to minimal build." |