summaryrefslogtreecommitdiff
path: root/mysql-test/suite/unit
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-03-29 21:12:09 +0200
committerSergei Golubchik <serg@mariadb.org>2017-03-30 09:12:33 +0200
commit8599f16b9d6ab45c92c92c0fc9093aea0684c996 (patch)
tree390cd1a2a1b5858ed5f7c7e1e68422a2285c4198 /mysql-test/suite/unit
parent3c422e60bbee79bb636e65910c26ac193de70a84 (diff)
downloadmariadb-git-8599f16b9d6ab45c92c92c0fc9093aea0684c996.tar.gz
fix mysql-test unit suite to work for out-of-source builds
Diffstat (limited to 'mysql-test/suite/unit')
-rw-r--r--mysql-test/suite/unit/suite.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/mysql-test/suite/unit/suite.pm b/mysql-test/suite/unit/suite.pm
index 76c62037b3d..4a46272f041 100644
--- a/mysql-test/suite/unit/suite.pm
+++ b/mysql-test/suite/unit/suite.pm
@@ -37,10 +37,11 @@ sub start_test {
}
{
+ my $bin=$ENV{MTR_BINDIR} || '..';
return "Not run for embedded server" if $::opt_embedded_server;
- return "Not configured to run ctest" unless -f "../CTestTestfile.cmake";
+ return "Not configured to run ctest" unless -f "$bin/CTestTestfile.cmake";
my ($ctest_vs)= $opt_vs_config ? "--build-config $opt_vs_config" : "";
- my (@ctest_list)= `cd .. && ctest $opt_vs_config --show-only --verbose`;
+ my (@ctest_list)= `cd "$bin" && ctest $opt_vs_config --show-only --verbose`;
return "No ctest" if $?;
my ($command, %tests, $prefix);