Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
ndk
Commits
4fa62690
Commit
4fa62690
authored
9 years ago
by
Dan Albert
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Download
Plain Diff
Merge "Mark tests as unsupported for non-Linux hosts."
parents
88a3166e
186246d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
tests/build/flto/test_config.py
tests/build/flto/test_config.py
+12
-1
tests/build/issue36131-flto-c++11/test_config.py
tests/build/issue36131-flto-c++11/test_config.py
+12
-1
No files found.
tests/build/flto/test_config.py
View file @
4fa62690
def
match_unsupported
(
abi
,
platform
,
toolchain
,
subtest
=
None
):
# Shut up a warning about us not being a real package.
from
__future__
import
absolute_import
import
platform
def
match_unsupported
(
abi
,
_platform
,
toolchain
,
_subtest
=
None
):
# Clang does LTO via gold plugin, but gold doesn't support MIPS yet.
if
toolchain
==
'clang'
and
abi
.
startswith
(
'mips'
):
return
'{} {}'
.
format
(
toolchain
,
abi
)
# We only support LTO from Linux.
if
platform
.
system
()
!=
'Linux'
:
return
platform
.
system
()
return
None
This diff is collapsed.
Click to expand it.
tests/build/issue36131-flto-c++11/test_config.py
View file @
4fa62690
def
match_unsupported
(
abi
,
platform
,
toolchain
,
subtest
=
None
):
# Shut up a warning about us not being a real package.
from
__future__
import
absolute_import
import
platform
def
match_unsupported
(
abi
,
_platform
,
toolchain
,
_subtest
=
None
):
# Clang does LTO via gold plugin, but gold doesn't support MIPS yet.
if
toolchain
==
'clang'
and
abi
.
startswith
(
'mips'
):
return
'{} {}'
.
format
(
toolchain
,
abi
)
# We only support LTO from Linux.
if
platform
.
system
()
!=
'Linux'
:
return
platform
.
system
()
return
None
This diff is collapsed.
Click to expand it.
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