diff --git a/pw_function/BUILD.gn b/pw_function/BUILD.gn index aa27963f34..cceef9b400 100644 --- a/pw_function/BUILD.gn +++ b/pw_function/BUILD.gn @@ -59,7 +59,10 @@ pw_doc_group("docs") { } pw_test_group("tests") { - tests = [ ":function_test" ] + tests = [ + ":function_test", + "$dir_pw_third_party/fuchsia:function_tests", + ] } pw_test("function_test") { diff --git a/third_party/fuchsia/BUILD.gn b/third_party/fuchsia/BUILD.gn index 0730b99222..ded925562f 100644 --- a/third_party/fuchsia/BUILD.gn +++ b/third_party/fuchsia/BUILD.gn @@ -17,6 +17,7 @@ import("//build_overrides/pigweed.gni") import("$dir_pw_build/python.gni") import("$dir_pw_build/target_types.gni") import("$dir_pw_docgen/docs.gni") +import("$dir_pw_unit_test/test.gni") pw_doc_group("docs") { sources = [ "docs.rst" ] @@ -46,6 +47,17 @@ pw_source_set("fit") { ] } +pw_test("function_tests") { + sources = [ "repo/sdk/lib/fit/test/function_tests.cc" ] + deps = [ ":fit" ] + + # Define EXPECT_NULL(), which Pigweed's test framework does not have + defines = [ "EXPECT_NULL(arg)=EXPECT_EQ((arg), nullptr)" ] + + # This test does not build with strict warnings, so disable them. + remove_configs = [ "$dir_pw_build:strict_warnings" ] +} + pw_source_set("stdcompat") { public_configs = [ ":stdcompat_public_include_path" ] public = [