diff --git a/.travis.yml b/.travis.yml index 3487c57a71..9e60126d0b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -131,6 +131,6 @@ jobs: # Call gn gen again to make sure new args are recognized. - third_party/depot_tools/gn gen target/debug - export ASAN_OPTIONS=detect_leaks=1 - - ./tools/build.py test_cc - - ./target/debug/test_cc + - ./tools/build.py libdeno_test + - ./target/debug/libdeno_test diff --git a/BUILD.gn b/BUILD.gn index 204d883725..426816c75a 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -4,10 +4,10 @@ group("default") { testonly = true deps = [ ":hyper_hello", + "cli:cli_test", "cli:deno", - "cli:test_rs", "core:default", - "core/libdeno:test_cc", + "core/libdeno:libdeno_test", ] } diff --git a/cli/BUILD.gn b/cli/BUILD.gn index bfa3fe4270..eedceddc78 100644 --- a/cli/BUILD.gn +++ b/cli/BUILD.gn @@ -162,7 +162,7 @@ rust_executable("deno") { ] } -rust_test("test_rs") { +rust_test("cli_test") { source_root = "main.rs" extern = main_extern deps = [ diff --git a/core/libdeno/BUILD.gn b/core/libdeno/BUILD.gn index eeec14eb53..8ad3dccc35 100644 --- a/core/libdeno/BUILD.gn +++ b/core/libdeno/BUILD.gn @@ -80,7 +80,7 @@ v8_executable("snapshot_creator") { configs = [ ":deno_config" ] } -v8_executable("test_cc") { +v8_executable("libdeno_test") { testonly = true sources = [ "file_util_test.cc", diff --git a/core/libdeno/file_util_test.cc b/core/libdeno/file_util_test.cc index 80c8780447..863a31d48b 100644 --- a/core/libdeno/file_util_test.cc +++ b/core/libdeno/file_util_test.cc @@ -38,7 +38,7 @@ TEST(FileUtilTest, ExePath) { EXPECT_TRUE(exe_path.find("/") == 0 || exe_path.find(":\\") == 1); // FIlename is the name of the test binary. std::string exe_filename = deno::Basename(exe_path); - EXPECT_EQ(exe_filename.find("test_cc"), 0u); + EXPECT_EQ(exe_filename.find("libdeno_test"), 0u); // Path exists (also tests ReadFileToString). std::string contents; EXPECT_TRUE(deno::ReadFileToString(exe_path.c_str(), &contents)); diff --git a/tools/test.py b/tools/test.py index 7fddfc2ff6..e4914ae508 100755 --- a/tools/test.py +++ b/tools/test.py @@ -74,13 +74,13 @@ def main(argv): "tools/ts_library_builder/test.ts" ]) - test_cc = os.path.join(build_dir, "test_cc" + executable_suffix) - check_exists(test_cc) - run([test_cc]) + libdeno_test = os.path.join(build_dir, "libdeno_test" + executable_suffix) + check_exists(libdeno_test) + run([libdeno_test]) - test_rs = os.path.join(build_dir, "test_rs" + executable_suffix) - check_exists(test_rs) - run([test_rs]) + cli_test = os.path.join(build_dir, "cli_test" + executable_suffix) + check_exists(cli_test) + run([cli_test]) deno_core_test = os.path.join(build_dir, "deno_core_test" + executable_suffix)