openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

ctest_dnxc_infra_init.h (2997B)


      1 /**
      2  * \file ctest_dnxc_infra_init.h
      3  *
      4  * Infrastructure init utilities, structures and definitions
      5  */
      6 /*
      7  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      8  * 
      9  * Copyright 2007-2020 Broadcom Inc. All rights reserved.
     10  */
     11 
     12 #ifndef DNXC_CTEST_INFRA_INIT_H_INCLUDED
     13 #define DNXC_CTEST_INFRA_INIT_H_INCLUDED
     14 
     15 #include <appl/diag/sand/diag_sand_framework.h>
     16 
     17 extern sh_sand_man_t sh_dnxc_infra_init_parallel_test_man;
     18 
     19 extern sh_sand_invoke_t sh_dnxc_infra_init_parallel_tests[];
     20 
     21 extern sh_sand_option_t sh_dnxc_infra_init_parallel_test_options[];
     22 
     23 /**
     24  * \brief - execute parallel (multi threaded) deinit+init for all active units
     25  *
     26  * \param [in] unit - Unit ID
     27  * \param [in] args -  command args
     28  * \param [in] sand_control - shell sand control
     29  *
     30  * \return
     31  *   shr_error_e
     32  *
     33  * \remark
     34  *   * None
     35  * \see
     36  *   * None
     37  */
     38 shr_error_e sh_dnxc_infra_init_parallel_test_cmd(
     39     int unit,
     40     args_t * args,
     41     sh_sand_control_t * sand_control);
     42 
     43 /**
     44  * \brief - diag_dnxc_infra_init_test_options is common for Time test and Error recovery test
     45  */
     46 extern sh_sand_option_t diag_dnxc_infra_init_test_options[];
     47 
     48 extern sh_sand_man_t diag_dnxc_infra_init_error_recovery_test_man;
     49 
     50 /**
     51  * \brief - run error recovery test per each init step
     52  *
     53  * \param [in] unit - Unit ID
     54  * \param [in] args -  command args
     55  * \param [in] sand_control - shell sand control
     56  *
     57  * \return
     58  *   shr_error_e
     59  *
     60  * \remark
     61  *   * None
     62  * \see
     63  *   * None
     64  */
     65 shr_error_e diag_dnxc_infra_init_error_recovery_test_cmd(
     66     int unit,
     67     args_t * args,
     68     sh_sand_control_t * sand_control);
     69 
     70 /**
     71  * \brief - create pointer to test list for each init step
     72  *
     73  * \param [in] unit - Unit ID
     74  * \param [out] test_list - pointer to test list for each init step
     75  *
     76  * \return
     77  *   shr_error_e
     78  *
     79  * \remark
     80  *   * None
     81  * \see
     82  *   * None
     83  */
     84 shr_error_e diag_dnxc_infra_init_error_recovery_tests_creation(
     85     int unit,
     86     rhlist_t * test_list);
     87 
     88 extern sh_sand_man_t diag_dnxc_infra_init_time_test_man;
     89 
     90 /**
     91  * \brief - Run time test performed by verifying that each step is taking less
     92  * time than a pre-defined threshold
     93  *
     94  * \param [in] unit - Unit ID
     95  * \param [in] args -  command args
     96  * \param [in] sand_control - shell sand control
     97  *
     98  * \return
     99  *   shr_error_e
    100  *
    101  * \remark
    102  *   * None
    103  * \see
    104  *   * None
    105  */
    106 shr_error_e diag_dnxc_infra_init_time_test_cmd(
    107     int unit,
    108     args_t * args,
    109     sh_sand_control_t * sand_control);
    110 
    111 /**
    112  * \brief - create pointer to test list for each init step
    113  *
    114  * \param [in] unit - Unit ID
    115  * \param [out] test_list - pointer to test list for each init step
    116  *
    117  * \return
    118  *   shr_error_e
    119  *
    120  * \remark
    121  *   * None
    122  * \see
    123  *   * None
    124  */
    125 shr_error_e diag_dnxc_infra_init_time_tests_creation(
    126     int unit,
    127     rhlist_t * test_list);
    128 
    129 extern sh_sand_cmd_t dnxc_infra_init_test_cmds[];
    130 
    131 extern sh_sand_cmd_t dnxc_infra_appl_test_cmds[];
    132 
    133 #endif /* DNXC_CTEST_INFRA_INIT_H_INCLUDED */