Uploaded image for project: 'MariaDB Connector/ODBC'
  1. MariaDB Connector/ODBC
  2. ODBC-338

odbc_connstring testcase failure for rhel 7.x

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 3.1.13
    • None
    • General
    • OS: RHEL 7.9 / 7.8
      arch: intel
      MariaDB version: 10.5

    Description

      I am getting obdc_connstring test case failure when building from the source. I used ctest to run the test cases, all the test cases are successful except odbc_connstring.

      On further debugging odbc_connstring, the test case has many sub-tests and out of which only all_other_fields_test sub-test is failing at around line 292.
      https://github.com/mariadb-corporation/mariadb-connector-odbc/blob/master/test/connstring.c#L291

      Furthermore, if I comment lines 287 and 288, test case does not fail and passes successfully. But I am not sure if that is appropriate to do or not.

      Steps followed to build mariadb odbc connector from source:

      yum install -y mariadb mariadb-server unixODBC unixODBC-devel git cmake gcc libarchive openssl-devel openssl tar curl libcurl-devel krb5-devel make
      git clone https://github.com/MariaDB/mariadb-connector-odbc.git
      cd mariadb-connector-odbc
      git checkout 3.1.13
      git submodule init
      git submodule update
       
      cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCONC_WITH_UNIT_TESTS=Off  -DWITH_SSL=OPENSSL -DCMAKE_INSTALL_PREFIX=/usr/local
      make
      make install
      

      Steps followed to run tests:

      sudo mysql_install_db --user=mysql
      sudo mysqld_safe --user=mysql &
      sudo ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
      sudo mysql -u root -e "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('rootpass');"
      export TEST_DRIVER=maodbc_test
      export TEST_SCHEMA=test
      export TEST_DSN=maodbc_test
      export TEST_UID=root
      export TEST_PASSWORD=rootpass
      edit /etc/odbc.ini and /etc/odbcinst.ini with appropriate values.
      ctest
      

      Attachments

        Activity

          People

            Lawrin Lawrin Novitsky
            shivaburade Shiva Burade
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.