Commit 8599f16b authored by Sergei Golubchik's avatar Sergei Golubchik

fix mysql-test unit suite to work for out-of-source builds

parent 3c422e60
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment