• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14if (defined(ohos_lite)) {
15  import("//build/lite/config/component/lite_component.gni")
16  import("//build/lite/config/test.gni")
17  import("//foundation/communication/dsoftbus/dsoftbus.gni")
18
19  if (ohos_build_type == "debug") {
20    unittest("seq_verification_test") {
21      output_extension = "bin"
22      output_dir = "$root_out_dir/tests/unittest/dsoftbus"
23      sources = [ "unittest/sequence_verification_test.cpp" ]
24      include_dirs = [ "$dsoftbus_root_path/core/common/include" ]
25      ldflags = [
26        "-lstdc++",
27        "-Wl,-rpath-link=$ohos_root_path/$root_out_dir",
28      ]
29      deps = [ "$dsoftbus_root_path/core/common:softbus_utils" ]
30    }
31  }
32} else {
33  import("//build/test.gni")
34  import("//foundation/communication/dsoftbus/dsoftbus.gni")
35
36  module_output_path = "dsoftbus/common"
37  ohos_unittest("seq_verification_test") {
38    module_out_path = module_output_path
39    sources = [ "unittest/sequence_verification_test.cpp" ]
40
41    include_dirs = [ "$dsoftbus_root_path/core/common/include" ]
42
43    deps = [
44      "$dsoftbus_root_path/core/common:softbus_utils",
45      "$dsoftbus_root_path/core/frame:softbus_server",
46    ]
47  }
48
49  group("unittest") {
50    testonly = true
51    deps = [ ":seq_verification_test" ]
52  }
53}
54