Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
d75922ca
Commit
d75922ca
authored
Aug 01, 2018
by
Gennadiy Civil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes for googletest env var test
parent
38486eb0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
BUILD.bazel
googletest/test/BUILD.bazel
+6
-6
googletest-env-var-test.py
googletest/test/googletest-env-var-test.py
+2
-2
googletest-env-var-test_.cc
googletest/test/googletest-env-var-test_.cc
+1
-1
No files found.
googletest/test/BUILD.bazel
View file @
d75922ca
...
@@ -212,17 +212,17 @@ py_test(
...
@@ -212,17 +212,17 @@ py_test(
)
)
cc_binary(
cc_binary(
name = "g
test_env_var_
test_",
name = "g
oogletest-env-var-
test_",
testonly = 1,
testonly = 1,
srcs = ["g
test_env_var_
test_.cc"],
srcs = ["g
oogletest-env-var-
test_.cc"],
deps = ["//:gtest"],
deps = ["//:gtest"],
)
)
py_test(
py_test(
name = "g
test_env_var_
test",
name = "g
oogletest-env-var-
test",
size = "
small
",
size = "
medium
",
srcs = ["g
test_env_var_
test.py"],
srcs = ["g
oogletest-env-var-
test.py"],
data = [":g
test_env_var_
test_"],
data = [":g
oogletest-env-var-
test_"],
deps = [":gtest_test_utils"],
deps = [":gtest_test_utils"],
)
)
...
...
googletest/test/g
test_env_var_
test.py
→
googletest/test/g
oogletest-env-var-
test.py
View file @
d75922ca
...
@@ -40,7 +40,7 @@ import gtest_test_utils
...
@@ -40,7 +40,7 @@ import gtest_test_utils
IS_WINDOWS
=
os
.
name
==
'nt'
IS_WINDOWS
=
os
.
name
==
'nt'
IS_LINUX
=
os
.
name
==
'posix'
and
os
.
uname
()[
0
]
==
'Linux'
IS_LINUX
=
os
.
name
==
'posix'
and
os
.
uname
()[
0
]
==
'Linux'
COMMAND
=
gtest_test_utils
.
GetTestExecutablePath
(
'g
test_env_var_
test_'
)
COMMAND
=
gtest_test_utils
.
GetTestExecutablePath
(
'g
oogletest-env-var-
test_'
)
environ
=
os
.
environ
.
copy
()
environ
=
os
.
environ
.
copy
()
...
@@ -62,7 +62,7 @@ def SetEnvVar(env_var, value):
...
@@ -62,7 +62,7 @@ def SetEnvVar(env_var, value):
def
GetFlag
(
flag
):
def
GetFlag
(
flag
):
"""Runs g
test_env_var_
test_ and returns its output."""
"""Runs g
oogletest-env-var-
test_ and returns its output."""
args
=
[
COMMAND
]
args
=
[
COMMAND
]
if
flag
is
not
None
:
if
flag
is
not
None
:
...
...
googletest/test/g
test_env_var_
test_.cc
→
googletest/test/g
oogletest-env-var-
test_.cc
View file @
d75922ca
...
@@ -115,7 +115,7 @@ int main(int argc, char** argv) {
...
@@ -115,7 +115,7 @@ int main(int argc, char** argv) {
testing
::
InitGoogleTest
(
&
argc
,
argv
);
testing
::
InitGoogleTest
(
&
argc
,
argv
);
if
(
argc
!=
2
)
{
if
(
argc
!=
2
)
{
cout
<<
"Usage: g
test_env_var_
test_ NAME_OF_FLAG
\n
"
;
cout
<<
"Usage: g
oogletest-env-var-
test_ NAME_OF_FLAG
\n
"
;
return
1
;
return
1
;
}
}
...
...
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