mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-04 12:56:14 +01:00 
			
		
		
		
	- Go back to using $MAJOR_VER instead of hard-coded version strings where possible. - Default to 'auto' in NUMJOBS instead of just 1. Will make mysql-test-run faster. - Unify autopkgtest with latest version in Debian, use eatmydata to make mysql-test-run faster. - Salsa-CI: Remove obsolete 'artifacts: true' as that is the default value. - Salsa-CI: Clean away obsolete temporary fixes. - Salsa-CI: Unify with salsa-ci.yml in Debian, including test upgrades from Bullseye to Debian unstable.
		
			
				
	
	
		
			68 lines
		
	
	
	
		
			2.2 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			68 lines
		
	
	
	
		
			2.2 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/sh
 | 
						|
# autopkgtest check: Build and run the upstream test suite.
 | 
						|
# (C) 2012 Canonical Ltd.
 | 
						|
# Author: Daniel Kessel <d.kessel@gmx.de>
 | 
						|
 | 
						|
# running the mysql testsuite as described in:
 | 
						|
# https://bugs.launchpad.net/ubuntu/+source/mysql-5.5/+bug/959683
 | 
						|
 | 
						|
echo "Running test 'testsuite'"
 | 
						|
set -e
 | 
						|
 | 
						|
SKIP_TEST_LST="/tmp/skip-test.lst"
 | 
						|
WORKDIR=$(mktemp -d)
 | 
						|
trap 'rm -rf $WORKDIR $SKIP_TEST_LST' 0 INT QUIT ABRT PIPE TERM
 | 
						|
cd "$WORKDIR"
 | 
						|
 | 
						|
mkdir var
 | 
						|
mkdir tmp
 | 
						|
 | 
						|
echo "using vardir: $WORKDIR/var"
 | 
						|
echo "using tmpdir: $WORKDIR/tmp"
 | 
						|
 | 
						|
echo "Setting up skip-tests-list"
 | 
						|
 | 
						|
# Use unstable-tests list as base to skip all tests  considered unstable
 | 
						|
cp /usr/share/mysql/mysql-test/unstable-tests $SKIP_TEST_LST
 | 
						|
 | 
						|
# Also use arch specific skiplists if such files exist
 | 
						|
for filename in /usr/share/mysql/mysql-test/unstable-tests.*
 | 
						|
do
 | 
						|
  # Check for case that no files matched and glob is returned
 | 
						|
  [ -e "$filename" ] || continue
 | 
						|
  # Append file to the main skip test list file
 | 
						|
  cat "$filename" >> $SKIP_TEST_LST
 | 
						|
done
 | 
						|
 | 
						|
# Skip tests that cannot run properly on ci.debian.net / autopkgtests.ubuntu.com
 | 
						|
cat >> $SKIP_TEST_LST << EOF
 | 
						|
binlog.binlog_server_start_options : Requires writable /usr
 | 
						|
main.ctype_uca : Requires writable /usr
 | 
						|
rpl.rpl_gtid_mode : Requires starting server as root ref http://bugs.mysql.com/bug.php?id=70517
 | 
						|
EOF
 | 
						|
 | 
						|
# Skip tests that cannot run properly on Gitlab-CI
 | 
						|
if [ ! -z "$GITLAB_CI" ]
 | 
						|
then
 | 
						|
  cat >> $SKIP_TEST_LST << EOF
 | 
						|
main.mysqld--help : For unknown reason table-cache is 4000 instead of default 421
 | 
						|
EOF
 | 
						|
fi
 | 
						|
 | 
						|
ARCH=$(dpkg --print-architecture)
 | 
						|
if [ "$ARCH" = "s390x" ]
 | 
						|
then
 | 
						|
  echo "main.func_regexp_pcre : recursion fails on s390x https://bugs.launchpad.net/ubuntu/+source/mariadb-10.1/+bug/1723947" >> $SKIP_TEST_LST
 | 
						|
elif [ "$ARCH" = "armhf" ] || [ "$ARCH" = "i386" ]
 | 
						|
then
 | 
						|
  echo "main.failed_auth_unixsocket : Test returns wrong exit code on armhf and i386 (but only in debci) https://jira.mariadb.org/browse/MDEV-23933" >> $SKIP_TEST_LST
 | 
						|
fi
 | 
						|
 | 
						|
cd /usr/share/mysql/mysql-test
 | 
						|
echo "starting mysql-test-tun.pl..."
 | 
						|
eatmydata perl -I. ./mysql-test-run.pl --suite=main \
 | 
						|
    --vardir="$WORKDIR/var" --tmpdir="$WORKDIR/tmp" \
 | 
						|
    --parallel=auto --skip-rpl \
 | 
						|
    --force --skip-test-list=$SKIP_TEST_LST \
 | 
						|
    --xml-report=$AUTOPKGTEST_ARTIFACTS/mysql-test-run-junit.xml $@ 2>&1
 | 
						|
echo "run: OK"
 |