Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 1 | # Copyright (c) 2020 Project CHIP Authors |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
Ćukasz Duda | 4e1faf2 | 2021-01-27 17:47:25 +0100 | [diff] [blame] | 15 | import("//build_overrides/build.gni") |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 16 | import("//build_overrides/chip.gni") |
| 17 | import("//build_overrides/nlunit_test.gni") |
| 18 | |
Michael Spang | 09611bf | 2021-03-02 16:31:57 -0500 | [diff] [blame] | 19 | import("${chip_root}/build/chip/chip_test_suite.gni") |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 20 | |
| 21 | chip_test_suite("tests") { |
| 22 | output_name = "libSetupPayloadTests" |
| 23 | |
Andrei Litvin | 9a77777 | 2020-12-04 18:32:50 -0500 | [diff] [blame] | 24 | test_sources = [ |
hnnajh | dddd5d1 | 2021-09-16 19:19:04 -0700 | [diff] [blame] | 25 | "TestAdditionalDataPayload.cpp", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 26 | "TestManualCode.cpp", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 27 | "TestQRCode.cpp", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 28 | "TestQRCodeTLV.cpp", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 29 | ] |
| 30 | |
Andrei Litvin | 9a77777 | 2020-12-04 18:32:50 -0500 | [diff] [blame] | 31 | sources = [ "TestHelpers.h" ] |
| 32 | |
Boris Zbarsky | cb21694 | 2020-12-01 19:39:23 -0500 | [diff] [blame] | 33 | cflags = [ "-Wconversion" ] |
| 34 | |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 35 | public_deps = [ |
Andrei Litvin | dacfe1b | 2022-06-27 11:40:37 -0400 | [diff] [blame] | 36 | "${chip_root}/src/lib/support:testing", |
Vivien Nicolas | 8a12695 | 2023-03-08 16:24:00 +0100 | [diff] [blame] | 37 | "${chip_root}/src/platform", |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 38 | "${chip_root}/src/setup_payload", |
| 39 | "${nlunit_test_root}:nlunit-test", |
| 40 | ] |
Michael Spang | efa630b | 2020-07-08 22:23:08 -0400 | [diff] [blame] | 41 | } |