#!/bin/sh set -ex # dep8 smoke test for mysql-server # Author: Robie Basak # # This test should be declared in debian/tests/control with a dependency # on the package that provides a configured MySQL server (eg. # mysql-server-5.6). # # This test should be declared in debian/tests/control with the # following restrictions: # # needs-root (needed to reset the root mysql password) # breaks-testbed (because it resets the root mysql password) # allow-stderr # # This test: # # 1) Configures packaged mysql server root password with maintainer # scripts. # # 2) Creates a test database and test user as the root user. # # 3) Creates a test table and checks it appears to operate normally # using the test user and test database. debconf-set-selections <&2 exit 1 fi mysql --user=testuser --password=testpassword testdatabase <