Skip to content

Commit

Permalink
Move src/inet/tests to auto-test-driver generation (#3997)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 authored Dec 1, 2020
1 parent f99ac87 commit b4b2fca
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 167 deletions.
23 changes: 8 additions & 15 deletions src/inet/tests/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ config("tests_config") {
chip_test_suite("tests") {
output_name = "libInetLayerTests"

sources = [
test_sources = [
"TestInetAddress.cpp",
"TestInetEndPoint.cpp",
"TestInetErrorStr.cpp",
]

sources = [
"TestInetCommon.cpp",
"TestInetCommon.h",
"TestInetCommonOptions.cpp",
"TestInetCommonOptions.h",
"TestInetEndPoint.cpp",
"TestInetErrorStr.cpp",
"TestInetLayer.cpp",
"TestInetLayer.h",
"TestInetLayerCommon.cpp",
]

Expand All @@ -55,21 +57,12 @@ chip_test_suite("tests") {
"${nlunit_test_root}:nlunit-test",
]

tests = [
"TestInetAddress",
"TestInetErrorStr",
"TestInetEndPoint",
]

# This fails on Raspberry Pi (Linux arm64), so only enable on Linux
# x64.
if (current_os != "mac" && chip_device_platform != "esp32" &&
current_cpu == "x64") {
sources += [
"TestInetLayerDNS.cpp",
"TestLwIPDNS.cpp",
]
tests += [ "TestInetLayerDNS" ]
test_sources += [ "TestInetLayerDNS.cpp" ]
sources += [ "TestLwIPDNS.cpp" ]
}
}

Expand Down
2 changes: 0 additions & 2 deletions src/inet/tests/TestInetAddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
*
*/

#include "TestInetLayer.h"

#include <inet/IPAddress.h>

#include <string.h>
Expand Down
36 changes: 0 additions & 36 deletions src/inet/tests/TestInetAddressDriver.cpp

This file was deleted.

2 changes: 0 additions & 2 deletions src/inet/tests/TestInetEndPoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
#define __STDC_LIMIT_MACROS
#endif

#include "TestInetLayer.h"

#include <errno.h>
#include <inttypes.h>
#include <stdint.h>
Expand Down
36 changes: 0 additions & 36 deletions src/inet/tests/TestInetEndPointDriver.cpp

This file was deleted.

2 changes: 0 additions & 2 deletions src/inet/tests/TestInetErrorStr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
#define __STDC_LIMIT_MACROS
#endif

#include "TestInetLayer.h"

#include <inttypes.h>
#include <stdint.h>
#include <string.h>
Expand Down
36 changes: 0 additions & 36 deletions src/inet/tests/TestInetErrorStrDriver.cpp

This file was deleted.

2 changes: 0 additions & 2 deletions src/inet/tests/TestInetLayerDNS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#define __STDC_LIMIT_MACROS
#endif

#include "TestInetLayer.h"

#include <inttypes.h>
#include <stdint.h>
#include <string.h>
Expand Down
36 changes: 0 additions & 36 deletions src/inet/tests/TestInetLayerDNSDriver.cpp

This file was deleted.

0 comments on commit b4b2fca

Please sign in to comment.