Debian Codegraph @

debian/tests/upstream

raw
1 #!/bin/sh
2 # autopkgtest check: Build and run the upstream test suite.
3 # (C) 2012 Canonical Ltd.
4 # Author: Daniel Kessel <[email protected]>
5
6 # running the mysql testsuite as described in:
7 # https://bugs.launchpad.net/ubuntu/+source/mysql-5.5/+bug/959683
8
9 echo "running test 'testsuite'"
10 set -e
11
12 SKIP_TEST_LST="/tmp/skip-test.lst"
13 WORKDIR=$(mktemp -d)
14 trap "rm -rf $WORKDIR $SKIP_TEST_LST" 0 INT QUIT ABRT PIPE TERM
15 cd $WORKDIR
16
17 mkdir var
18 mkdir tmp
19
20 echo "using vardir: $WORKDIR/var"
21 echo "using tmpdir: $WORKDIR/tmp"
22
23 echo "Setting up skip-tests-list"
24 cat > $SKIP_TEST_LST << EOF
25 binlog.binlog_server_start_options : BUG#00000 - Requires writable /usr
26 main.ctype_uca : BUG#00000 - Requires writable /usr
27 rpl.rpl_gtid_mode : BUG#70517 - Requires starting server as root ref http://bugs.mysql.com/bug.php?id=70517
28 main.ssl_ca : BUG#90749 - Test is breaking on sid, ref https://bugs.mysql.com/bug.php?id=90749
29 main.type_float : BUG#92375 - Test is breaking on ppc64el. Ref https://bugs.mysql.com/bug.php?id=92375
30 main.type_newdecimal : BUG#92375 - Test is breaking on ppc64el. https://bugs.mysql.com/bug.php?id=92375
31 main.type_ranges : BUG#92375 - Test is breaking on ppc64el. https://bugs.mysql.com/bug.php?id=92375
32 main.mysqlpump_basic : BUG#86608 - Requires openssl with zlib support. https://bugs.mysql.com/bug.php?id=86608
33 main.file_contents : BUG#00000 - Tests package contents, which differs from upstream
34 main.loaddata_special : BUG#96341 - Access blocked by apparmor. https://bugs.mysql.com/bug.php?id=96341
35 main.mysql_client_test : BUG#100274 - Unstable test
36 main.mtr_unit_tests : BUG#100532 - Test ignores --client-bindir setting, fails to find mysqltest_safe_process
37 main.slow_log : BUG#00000 - broken
38 main.index_merge_myisam : BUG#00000 - broken on i386
39 main.mem_cnt_common : BUG#00000 - fails
40 main.derived_limit : BUG#00000 - fails on s390x since 8.0.31
41 main.subquery_sj_all_bka_nobnl : BUG#111156 - fails on s390x since 8.0.33
42 main.subquery_sj_mat_bka_nobnl : BUG#111156 - fails on s390x since 8.0.33
43 main.explain_json_all : BUG#00000 - fails on s390x since 8.0.34
44 EOF
45
46 cd /usr/lib/mysql-test
47 echo "starting mysql-test-run.pl..."
48 # Workaround for change introduced as part of https://www.debian.org/security/2016/dsa-3628
49 # Pending upstream fix of mtr includes
50 export PERLLIB=.
51 ./mysql-test-run.pl --suite=main --vardir=$WORKDIR/var --tmpdir=$WORKDIR/tmp \
52 --skip-ndbcluster --parallel=auto --skip-rpl --report-features --client-bindir=/usr/lib/mysql-test/bin/ \
53 --force --skip-test-list=$SKIP_TEST_LST --report-unstable-tests $@ 2>&1
54 echo "run: OK"