mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
MDEV-33750: Sync smoke test from newer version of Debian Salsa-CI
For making smoke test work sync current Debian Salsa-CI version for making needed changes
This commit is contained in:
parent
4c1e4ba62e
commit
89a638f4b8
2 changed files with 18 additions and 10 deletions
23
debian/tests/smoke
vendored
23
debian/tests/smoke
vendored
|
@ -45,28 +45,29 @@ else
|
|||
systemctl restart mariadb
|
||||
fi
|
||||
|
||||
mariadb <<EOT
|
||||
mysql <<EOT
|
||||
CREATE DATABASE testdatabase;
|
||||
CREATE USER 'testuser'@'localhost' identified by 'testpassword';
|
||||
GRANT ALL ON testdatabase.* TO 'testuser'@'localhost';
|
||||
EOT
|
||||
|
||||
mariadb testdatabase <<EOT
|
||||
mysql testdatabase <<EOT
|
||||
CREATE TABLE foo (bar INTEGER);
|
||||
INSERT INTO foo (bar) VALUES (41);
|
||||
EOT
|
||||
|
||||
result=$(echo 'SELECT bar+1 FROM foo;'|mariadb --batch --skip-column-names --user=testuser --password=testpassword testdatabase)
|
||||
if [ "$result" != "42" ]; then
|
||||
echo "Unexpected result" >&2
|
||||
exit 1
|
||||
result=$(echo 'SELECT bar+1 FROM foo;'|mysql --batch --skip-column-names --user=testuser --password=testpassword testdatabase)
|
||||
if [ "$result" != "42" ]
|
||||
then
|
||||
echo "Unexpected result" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mariadb --user=testuser --password=testpassword testdatabase <<EOT
|
||||
mysql --user=testuser --password=testpassword testdatabase <<EOT
|
||||
DROP TABLE foo;
|
||||
EOT
|
||||
|
||||
mariadb <<EOT
|
||||
mysql <<EOT
|
||||
DROP DATABASE testdatabase;
|
||||
DROP USER 'testuser'@'localhost';
|
||||
EOT
|
||||
|
@ -114,5 +115,9 @@ then
|
|||
fi
|
||||
done
|
||||
else
|
||||
dpkg-query -W $plugin && exit 1
|
||||
if dpkg-query -W $plugin
|
||||
then
|
||||
echo "Error: Plugin $plugin was found even though it should not exist on a 32-bit and little-endian system"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
|
5
debian/tests/upstream
vendored
5
debian/tests/upstream
vendored
|
@ -60,12 +60,15 @@ cp -v "$MTR_SKIP_TEST_LIST" "$AUTOPKGTEST_ARTIFACTS"
|
|||
cd /usr/share/mysql/mysql-test
|
||||
echo "starting mysql-test-tun.pl..."
|
||||
export MTR_PRINT_CORE=detailed
|
||||
# The $MTR_ARGUMENTS_APPEND is intentionally used to pass in extra arguments
|
||||
# shellcheck disable=SC2086
|
||||
eatmydata perl -I. ./mysql-test-run.pl \
|
||||
--force --testcase-timeout=120 --suite-timeout=540 --retry=3 \
|
||||
--verbose-restart --max-save-core=1 --max-save-datadir=1 \
|
||||
--parallel=auto --skip-rpl --suite=main \
|
||||
--skip-test-list="$MTR_SKIP_TEST_LIST" \
|
||||
--vardir="$WORKDIR/var" --tmpdir="$WORKDIR/tmp" \
|
||||
--xml-report="$AUTOPKGTEST_ARTIFACTS/mysql-test-run-junit.xml"
|
||||
--xml-report="$AUTOPKGTEST_ARTIFACTS/mysql-test-run-junit.xml" \
|
||||
$MTR_ARGUMENTS_APPEND \
|
||||
"$@" 2>&1
|
||||
echo "run: OK"
|
||||
|
|
Loading…
Reference in a new issue