1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2024-11-29 00:24:11 +01:00

tests: add a define for running the mysql tests

they require a correctly set up server and all
This commit is contained in:
Klas Lindfors 2021-04-09 11:01:52 +02:00
parent b37201ff31
commit 193a79dfc9
No known key found for this signature in database
GPG Key ID: BCA00FD4B2168C0A
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ fi
set -e
if [ ! -z $MYSQL_PORT ]; then
CFLAGS="-DTEST_MYSQL_PORT='\"${MYSQL_PORT}\"'" ./configure $CONFIGURE_ARGS $COVERAGE
CFLAGS="-DTEST_MYSQL_PORT='\"${MYSQL_PORT}\"' -DRUN_MYSQL_TESTS" ./configure $CONFIGURE_ARGS $COVERAGE
else
./configure $CONFIGURE_ARGS $COVERAGE
fi

View File

@ -447,7 +447,7 @@ int main(void) {
goto out;
}
#endif
#ifdef HAVE_MYSQL
#ifdef RUN_MYSQL_TESTS
if(test_authenticate_mysql1() != PAM_SUCCESS) {
ret = 2001;
goto out;