mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-02-17 21:54:15 +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:
parent
b37201ff31
commit
193a79dfc9
@ -27,7 +27,7 @@ fi
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ ! -z $MYSQL_PORT ]; then
|
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
|
else
|
||||||
./configure $CONFIGURE_ARGS $COVERAGE
|
./configure $CONFIGURE_ARGS $COVERAGE
|
||||||
fi
|
fi
|
||||||
|
@ -447,7 +447,7 @@ int main(void) {
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_MYSQL
|
#ifdef RUN_MYSQL_TESTS
|
||||||
if(test_authenticate_mysql1() != PAM_SUCCESS) {
|
if(test_authenticate_mysql1() != PAM_SUCCESS) {
|
||||||
ret = 2001;
|
ret = 2001;
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user