Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-7359

Tests no longer run in a out of source build due to missing replace utiltiy

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.41
    • Fix Version/s: 5.5.42
    • Component/s: Tests
    • Labels:
      None
    • Environment:
      Gentoo

      Description

      When i run the tests from inside the cmake BUILD_DIR (out of source), mtr can no longer find the replace utility.

      mysql-test-run: *** ERROR: Could not find any of /var/tmp/portage/dev-db/mariadb-5.5.41/work/mysql/extra/replace /var/tmp/portage/dev-db/mariadb-5.5.41/work/mariadb-5.5.41_build/client/replace

      replace is built into ${BUILD_DIR}/extra, while mtr is searching in ${BUILD_DIR}/client (or ${S}/extra for in-source builds.. not default)

      This seems to be a result of the merge upstream:
      https://bazaar.launchpad.net/~maria-captains/maria/5.5/revision/4393/mysql-test/mysql-test-run.pl#mysql-test/mysql-test-run.pl

      # ----------------------------------------------------
      # replace
      # ----------------------------------------------------
      my $exe_replace= mtr_exe_exists(vs_config_dirs('extra', 'replace'),
                                       "$basedir/extra/replace",
                                       "$path_client_bindir/replace");
        $ENV{'REPLACE'}= native_path($exe_replace);

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              knielsen Kristian Nielsen
              Reporter:
              grknight Brian Evans
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: