From 193a79dfc9f8e22eb47c509d13022974a51f7dba Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Fri, 9 Apr 2021 11:01:52 +0200 Subject: [PATCH] tests: add a define for running the mysql tests they require a correctly set up server and all --- tests/aux/build-and-test.sh | 2 +- tests/pam_test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/aux/build-and-test.sh b/tests/aux/build-and-test.sh index 08ec9b7..b8bdb60 100755 --- a/tests/aux/build-and-test.sh +++ b/tests/aux/build-and-test.sh @@ -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 diff --git a/tests/pam_test.c b/tests/pam_test.c index f29be5f..530ab71 100644 --- a/tests/pam_test.c +++ b/tests/pam_test.c @@ -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;