summaryrefslogtreecommitdiffstats
path: root/googletest/test
diff options
context:
space:
mode:
authorGennadiy Civil <misterg@google.com>2018-08-01 15:35:13 (GMT)
committerGennadiy Civil <misterg@google.com>2018-08-01 15:35:13 (GMT)
commitd75922ca1c74f50e6a2b018faf435669d4241ca7 (patch)
treecd0ab1f5fca026a7c85c3492c935e1b08fc894d8 /googletest/test
parent38486eb03e9f67b2b7edbe63c663fbeb8e7bd57a (diff)
downloadgoogletest-d75922ca1c74f50e6a2b018faf435669d4241ca7.zip
googletest-d75922ca1c74f50e6a2b018faf435669d4241ca7.tar.gz
googletest-d75922ca1c74f50e6a2b018faf435669d4241ca7.tar.bz2
changes for googletest env var test
Diffstat (limited to 'googletest/test')
-rw-r--r--googletest/test/BUILD.bazel12
-rwxr-xr-xgoogletest/test/googletest-env-var-test.py (renamed from googletest/test/gtest_env_var_test.py)4
-rw-r--r--googletest/test/googletest-env-var-test_.cc (renamed from googletest/test/gtest_env_var_test_.cc)2
3 files changed, 9 insertions, 9 deletions
diff --git a/googletest/test/BUILD.bazel b/googletest/test/BUILD.bazel
index 29361c0..0c1eb78 100644
--- a/googletest/test/BUILD.bazel
+++ b/googletest/test/BUILD.bazel
@@ -212,17 +212,17 @@ py_test(
)
cc_binary(
- name = "gtest_env_var_test_",
+ name = "googletest-env-var-test_",
testonly = 1,
- srcs = ["gtest_env_var_test_.cc"],
+ srcs = ["googletest-env-var-test_.cc"],
deps = ["//:gtest"],
)
py_test(
- name = "gtest_env_var_test",
- size = "small",
- srcs = ["gtest_env_var_test.py"],
- data = [":gtest_env_var_test_"],
+ name = "googletest-env-var-test",
+ size = "medium",
+ srcs = ["googletest-env-var-test.py"],
+ data = [":googletest-env-var-test_"],
deps = [":gtest_test_utils"],
)
diff --git a/googletest/test/gtest_env_var_test.py b/googletest/test/googletest-env-var-test.py
index beb2a8b..9c80e2a 100755
--- a/googletest/test/gtest_env_var_test.py
+++ b/googletest/test/googletest-env-var-test.py
@@ -40,7 +40,7 @@ import gtest_test_utils
IS_WINDOWS = os.name == 'nt'
IS_LINUX = os.name == 'posix' and os.uname()[0] == 'Linux'
-COMMAND = gtest_test_utils.GetTestExecutablePath('gtest_env_var_test_')
+COMMAND = gtest_test_utils.GetTestExecutablePath('googletest-env-var-test_')
environ = os.environ.copy()
@@ -62,7 +62,7 @@ def SetEnvVar(env_var, value):
def GetFlag(flag):
- """Runs gtest_env_var_test_ and returns its output."""
+ """Runs googletest-env-var-test_ and returns its output."""
args = [COMMAND]
if flag is not None:
diff --git a/googletest/test/gtest_env_var_test_.cc b/googletest/test/googletest-env-var-test_.cc
index 9b668dc..74b9506 100644
--- a/googletest/test/gtest_env_var_test_.cc
+++ b/googletest/test/googletest-env-var-test_.cc
@@ -115,7 +115,7 @@ int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
if (argc != 2) {
- cout << "Usage: gtest_env_var_test_ NAME_OF_FLAG\n";
+ cout << "Usage: googletest-env-var-test_ NAME_OF_FLAG\n";
return 1;
}