xref: /nrf52832-nimble/packages/NimBLE-latest/nimble/host/test/src/ble_hs_test.c (revision 042d53a763ad75cb1465103098bb88c245d95138)
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements.  See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership.  The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License.  You may obtain a copy of the License at
9  *
10  *  http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied.  See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  */
19 
20 #include "sysinit/sysinit.h"
21 #include "syscfg/syscfg.h"
22 #include "os/os.h"
23 #include "nimble/hci_common.h"
24 #include "host/ble_hs_test.h"
25 #include "testutil/testutil.h"
26 #include "ble_hs_test_util.h"
27 
28 #if MYNEWT_VAL(SELFTEST)
29 
30 int
main(int argc,char ** argv)31 main(int argc, char **argv)
32 {
33     sysinit();
34 
35     ble_att_clt_test_all();
36     ble_att_svr_test_all();
37     ble_gap_test_all();
38     ble_gatt_conn_test_all();
39     ble_gatt_disc_c_test_all();
40     ble_gatt_disc_d_test_all();
41     ble_gatt_disc_s_test_all();
42     ble_gatt_find_s_test_all();
43     ble_gatt_read_test_all();
44     ble_gatt_write_test_all();
45     ble_gatts_notify_test_all();
46     ble_gatts_read_test_suite();
47     ble_gatts_reg_test_all();
48     ble_hs_adv_test_all();
49     ble_hs_conn_test_all();
50     ble_hs_hci_test_all();
51     ble_hs_id_test_all();
52     ble_hs_pvcy_test_all();
53     ble_l2cap_test_all();
54     ble_os_test_all();
55     ble_sm_test_all();
56     ble_stop_test_all();
57     ble_store_test_all();
58     ble_uuid_test_all();
59 
60     return tu_any_failed;
61 }
62 
63 #endif
64