From 3a0683f049babb7e773984e5247e72481dff1e04 Mon Sep 17 00:00:00 2001 From: Alexander Kindyakov Date: Sat, 8 Dec 2018 08:45:01 -0800 Subject: [PATCH] Switch off osquery/remote tests for windows Summary: Switch off osquery/remote tests for windows, it takes time to fix it. I'll do it later. Reviewed By: fmanco Differential Revision: D13378357 fbshipit-source-id: 21077630864fc4a27ba65078c634e115875f3970 --- osquery/remote/enroll/BUCK | 6 +----- osquery/remote/transports/BUCK | 12 +++++++++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/osquery/remote/enroll/BUCK b/osquery/remote/enroll/BUCK index b0898dbb..5752c365 100644 --- a/osquery/remote/enroll/BUCK +++ b/osquery/remote/enroll/BUCK @@ -8,7 +8,7 @@ load("//tools/build_defs/oss/osquery:cxx.bzl", "osquery_cxx_library", "osquery_cxx_test") load("//tools/build_defs/oss/osquery:native.bzl", "osquery_target") -load("//tools/build_defs/oss/osquery:platforms.bzl", "MACOSX", "WINDOWS") +load("//tools/build_defs/oss/osquery:platforms.bzl", "MACOSX") load("//tools/build_defs/oss/osquery:third_party.bzl", "osquery_tp_target") osquery_cxx_library( @@ -51,10 +51,6 @@ osquery_cxx_test( MACOSX, ["tests/plugins/tls_enroll_tests.cpp"], ), - ( - WINDOWS, - ["tests/plugins/tls_enroll_tests.cpp"], - ), ], visibility = ["PUBLIC"], deps = [ diff --git a/osquery/remote/transports/BUCK b/osquery/remote/transports/BUCK index 7cac7fa9..e6919a27 100644 --- a/osquery/remote/transports/BUCK +++ b/osquery/remote/transports/BUCK @@ -8,6 +8,7 @@ load("//tools/build_defs/oss/osquery:cxx.bzl", "osquery_cxx_library", "osquery_cxx_test") load("//tools/build_defs/oss/osquery:native.bzl", "osquery_target") +load("//tools/build_defs/oss/osquery:platforms.bzl", "POSIX") load("//tools/build_defs/oss/osquery:third_party.bzl", "osquery_tp_target") osquery_cxx_library( @@ -28,14 +29,19 @@ osquery_cxx_library( osquery_cxx_test( name = "tests", - srcs = [ - "tests/tls_transports_tests.cpp", - ], env = { "TEST_CONF_FILES_DIR": "$(location {})".format( osquery_target("tools/tests:test_files"), ), }, + platform_srcs = [ + ( + POSIX, + [ + "tests/tls_transports_tests.cpp", + ], + ), + ], visibility = ["PUBLIC"], deps = [ osquery_target("osquery/config/tests:test_utils"),