Home | History | Annotate | Download | only in system-test-harness
      1 //
      2 // Copyright (C) 2017 The Android Open Source Project
      3 //
      4 // Licensed under the Apache License, Version 2.0 (the "License");
      5 // you may not use this file except in compliance with the License.
      6 // You may obtain a copy of the License at
      7 //
      8 //      http://www.apache.org/licenses/LICENSE-2.0
      9 //
     10 // Unless required by applicable law or agreed to in writing, software
     11 // distributed under the License is distributed on an "AS IS" BASIS,
     12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 // See the License for the specific language governing permissions and
     14 // limitations under the License.
     15 //
     16 
     17 subdirs = [
     18     "tools",
     19 ]
     20 
     21 cc_binary {
     22     name: "citadel_integration_tests",
     23     defaults: [
     24         "nos_cc_hw_defaults",
     25     ],
     26     cflags: [
     27         "-Wno-c99-extensions",
     28         "-Wno-gnu-anonymous-struct",
     29         "-Wno-nested-anon-types",
     30     ],
     31     srcs: [
     32 // AVB tests only run from the host.
     33 //        "src/avb_tests.cc",
     34         "src/aes-cmac-tests.cc",
     35         "src/gtest_with_gflags_main.cc",
     36         "src/keymaster-import-key-tests.cc",
     37         "src/keymaster-import-wrapped-key-tests.cc",
     38 // TODO: add provision tests once production-bit can be reliably reset.
     39 //       "src/keymaster-provision-tests.cc",
     40         "src/nugget_core_tests.cc",
     41         "src/runtests.cc",
     42         "src/test-data/test-keys/rsa.cc",
     43         "src/util.cc",
     44         "src/weaver_tests.cc",
     45     ],
     46     include_dirs: ["."],
     47     header_libs: [
     48         "nos_headers",
     49     ],
     50     static_libs: [
     51         "libgmock",
     52         "libgtest",
     53     ],
     54     shared_libs: [
     55         "libcrypto",
     56         "libnos",
     57         "libnos_client_citadel",
     58         "libnosprotos",
     59         "libprotobuf-cpp-full",
     60         "libssl",
     61         "nos_app_avb",
     62         "nos_app_keymaster",
     63         "nos_app_weaver",
     64         "nugget_tools",
     65     ],
     66 }
     67 
     68 cc_binary {
     69     name: "stress_test",
     70     defaults: [
     71         "nos_cc_hw_defaults",
     72     ],
     73     srcs: [
     74         "src/stress_test.cc",
     75         "src/util.cc",
     76     ],
     77     include_dirs: ["."],
     78     header_libs: [
     79         "nos_headers",
     80     ],
     81     static_libs: [
     82         "libgmock",
     83         "libgtest",
     84     ],
     85     shared_libs: [
     86         "libnos",
     87         "libnos_client_citadel",
     88         "libnosprotos",
     89         "nugget_tools",
     90         "libprotobuf-cpp-full",
     91     ],
     92 }
     93