Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
7391a635
Commit
7391a635
authored
Feb 24, 2011
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11766640 follow-up: fix for VS_CONFIG on Windows
parent
b027d104
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
mysql-test/lib/My/Find.pm
mysql-test/lib/My/Find.pm
+2
-3
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+5
-1
No files found.
mysql-test/lib/My/Find.pm
View file @
7391a635
...
@@ -28,8 +28,6 @@ use My::Platform;
...
@@ -28,8 +28,6 @@ use My::Platform;
use
base
qw(Exporter)
;
use
base
qw(Exporter)
;
our
@EXPORT
=
qw(my_find_bin my_find_dir my_find_file NOT_REQUIRED)
;
our
@EXPORT
=
qw(my_find_bin my_find_dir my_find_file NOT_REQUIRED)
;
our
$vs_config_dir
;
my
$bin_extension
=
"
.exe
"
if
IS_WINDOWS
;
my
$bin_extension
=
"
.exe
"
if
IS_WINDOWS
;
# Helper function to be used for fourth parameter to find functions
# Helper function to be used for fourth parameter to find functions
...
@@ -158,7 +156,8 @@ sub my_find_paths {
...
@@ -158,7 +156,8 @@ sub my_find_paths {
# User can select to look in a special build dir
# User can select to look in a special build dir
# which is a subdirectory of any of the paths
# which is a subdirectory of any of the paths
my
@extra_dirs
;
my
@extra_dirs
;
my
$build_dir
=
$vs_config_dir
||
$ENV
{
MTR_VS_CONFIG
}
||
$ENV
{
MTR_BUILD_DIR
};
my
$build_dir
=
$::opt_config_dir
||
$ENV
{
MTR_VS_CONFIG
}
||
$ENV
{
MTR_BUILD_DIR
};
push
(
@extra_dirs
,
$build_dir
)
if
defined
$build_dir
;
push
(
@extra_dirs
,
$build_dir
)
if
defined
$build_dir
;
if
(
defined
$extension
){
if
(
defined
$extension
){
...
...
mysql-test/mysql-test-run.pl
View file @
7391a635
...
@@ -5677,6 +5677,7 @@ sub run_ctest() {
...
@@ -5677,6 +5677,7 @@ sub run_ctest() {
chdir
(
$bindir
)
or
die
("
Could not chdir to
$bindir
");
chdir
(
$bindir
)
or
die
("
Could not chdir to
$bindir
");
my
$tinfo
;
my
$tinfo
;
my
$no_ctest
=
(
IS_WINDOWS
)
?
256
:
-
1
;
my
$no_ctest
=
(
IS_WINDOWS
)
?
256
:
-
1
;
my
$ctest_vs
=
"";
# Just ignore if not configured/built to run ctest
# Just ignore if not configured/built to run ctest
if
(
!
-
f
"
CTestTestfile.cmake
")
{
if
(
!
-
f
"
CTestTestfile.cmake
")
{
...
@@ -5684,9 +5685,12 @@ sub run_ctest() {
...
@@ -5684,9 +5685,12 @@ sub run_ctest() {
return
;
return
;
}
}
# Add vs-config option on Windows if needed
$ctest_vs
=
"
-C
$opt_vs_config
"
if
IS_WINDOWS
&&
$opt_vs_config
;
# Also silently ignore if we don't have ctest and didn't insist
# Also silently ignore if we don't have ctest and didn't insist
# Now, run ctest and collect output
# Now, run ctest and collect output
my
$ctest_out
=
`
ctest 2>&1
`;
my
$ctest_out
=
`
ctest
$ctest_vs
2>&1
`;
if
(
$?
==
$no_ctest
&&
$opt_ctest
==
-
1
)
{
if
(
$?
==
$no_ctest
&&
$opt_ctest
==
-
1
)
{
chdir
(
$olddir
);
chdir
(
$olddir
);
return
;
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment