From 192104520c31deaed97d22f196234aceff765205 Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Tue, 15 Jun 2021 14:17:02 -0400 Subject: [PATCH] Remove empty lwip test (#7630) We're running this test but it does not do anything. Remove it. --- src/BUILD.gn | 4 ---- src/lwip/tests/BUILD.gn | 31 ----------------------------- src/lwip/tests/tests.c | 43 ----------------------------------------- 3 files changed, 78 deletions(-) delete mode 100644 src/lwip/tests/BUILD.gn delete mode 100644 src/lwip/tests/tests.c diff --git a/src/BUILD.gn b/src/BUILD.gn index dbac7c57707fb7..1a2cfe50c90d6d 100644 --- a/src/BUILD.gn +++ b/src/BUILD.gn @@ -79,10 +79,6 @@ if (chip_build_tests) { deps += [ "${chip_root}/src/ble/tests" ] } - if (chip_with_lwip && chip_device_platform != "esp32") { - deps += [ "${chip_root}/src/lwip/tests" ] - } - if (current_os != "zephyr" && chip_device_platform != "esp32") { deps += [ "${chip_root}/src/lib/shell/tests" ] } diff --git a/src/lwip/tests/BUILD.gn b/src/lwip/tests/BUILD.gn deleted file mode 100644 index 6197e0939b86d4..00000000000000 --- a/src/lwip/tests/BUILD.gn +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (c) 2020 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build_overrides/build.gni") -import("//build_overrides/chip.gni") - -import("${chip_root}/build/chip/chip_test.gni") -import("${chip_root}/build/chip/chip_test_group.gni") -import("${chip_root}/src/lwip/lwip.gni") - -assert(chip_with_lwip) - -chip_test("TestLwIP") { - sources = [ "tests.c" ] - deps = [ "${chip_root}/src/lwip" ] -} - -chip_test_group("tests") { - deps = [ ":TestLwIP" ] -} diff --git a/src/lwip/tests/tests.c b/src/lwip/tests/tests.c deleted file mode 100644 index 740d99a25c4421..00000000000000 --- a/src/lwip/tests/tests.c +++ /dev/null @@ -1,43 +0,0 @@ -/* - * - * Copyright (c) 2020 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * This is a sample unit test. - */ - -#include -#include -#include -#include -#include -#include -#include - -//#include "standalone/TapInterface.c" - -void TapInterface_Init_test1() -{ - printf("---Running Test--- %s\n", __FUNCTION__); - // assert(TapInterface_Init(NULL, NULL, NULL) == ERR_ARG); -} - -int main() -{ - printf("---Running Test--- tests from %s\n", __FILE__); - TapInterface_Init_test1(); - return 0; -}