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:
parent
b37201ff31
commit
193a79dfc9
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user