Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move src/inet/tests to auto-test-driver generation #3997

Merged
merged 1 commit into from
Dec 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.