aboutsummaryrefslogtreecommitdiffstats
path: root/setup.cfg
blob: d39d648f4714b915413eb05ab34e91cc04ef629d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[metadata]
name = functest
version = 5
home-page = https://wiki.opnfv.org/display/functest

[files]
packages = functest
scripts =
    docker/docker_remote_api/enable_remote_api.sh
    docker/config_install_env.sh
    functest/ci/download_images.sh

[entry_points]
console_scripts =
    functest = functest.cli.cli_base:cli
    functest_odl = functest.opnfv_tests.sdn.odl.odl:main
    functest_refstack_client = functest.opnfv_tests.openstack.refstack_client.refstack_client:main
    functest_tempest_conf = functest.opnfv_tests.openstack.refstack_client.tempest_conf:main
    openstack_snapshot = functest.utils.openstack_snapshot:main
    openstack_clean = functest.utils.openstack_clean:main
    prepare_env = functest.ci.prepare_env:main
    run_tests = functest.ci.run_tests:main
    check_deployment = functest.ci.check_deployment:main
    functest_restapi = functest.api.server:main
INFO 2 #define PROX_LOG_DBG 3 #if PROX_MAX_LOG_LVL > PROX_LOG_DBG #error Highest supported log level is 3 #endif int get_n_warnings(void); /* Return previous warnings, only stores last 5 warnings and invalid i return NULL*/ const char* get_warning(int i); struct rte_mbuf; #if PROX_MAX_LOG_LVL >= PROX_LOG_ERR int plog_err(const char *fmt, ...) __attribute__((format(printf, 1, 2), cold)); int plogx_err(const char *fmt, ...) __attribute__((format(printf, 1, 2), cold)); int plogd_err(const struct rte_mbuf *mbuf, const char *fmt, ...) __attribute__((format(printf, 2, 3), cold)); int plogdx_err(const struct rte_mbuf *mbuf, const char *fmt, ...) __attribute__((format(printf, 2, 3), cold)); #else __attribute__((format(printf, 1, 2))) static inline int plog_err(__attribute__((unused)) const char *fmt, ...) {return 0;} __attribute__((format(printf, 1, 2))) static inline int plogx_err(__attribute__((unused)) const char *fmt, ...) {return 0;} __attribute__((format(printf, 2, 3))) static inline int plogd_err(__attribute__((unused)) const struct rte_mbuf *mbuf, __attribute__((unused)) const char *fmt, ...) {return 0;} __attribute__((format(printf, 2, 3))) static inline int plogdx_err(__attribute__((unused)) const struct rte_mbuf *mbuf, __attribute__((unused)) const char *fmt, ...) {return 0;} #endif #if PROX_MAX_LOG_LVL >= PROX_LOG_WARN int plog_warn(const char *fmt, ...) __attribute__((format(printf, 1, 2), cold)); int plogx_warn(const char *fmt, ...) __attribute__((format(printf, 1, 2), cold)); int plogd_warn(const struct rte_mbuf *mbuf, const char *fmt, ...) __attribute__((format(printf, 2, 3), cold)); int plogdx_warn(const struct rte_mbuf *mbuf, const char *fmt, ...) __attribute__((format(printf, 2, 3), cold)); #else __attribute__((format(printf, 1, 2))) static inline int plog_warn(__attribute__((unused)) const char *fmt, ...) {return 0;} __attribute__((format(printf, 1, 2))) static inline int plogx_warn(__attribute__((unused)) const char *fmt, ...) {return 0;} __attribute__((format(printf, 2, 3))) static inline int plogd_warn(__attribute__((unused)) const struct rte_mbuf *mbuf, __attribute__((unused)) const char *fmt, ...) {return 0;} __attribute__((format(printf, 2, 3))) static inline int plogdx_warn(__attribute__((unused)) const struct rte_mbuf *mbuf, __attribute__((unused)) const char *fmt, ...) {return 0;} #endif #if PROX_MAX_LOG_LVL >= PROX_LOG_INFO int plog_info(const char *fmt, ...) __attribute__((format(printf, 1, 2), cold)); int plogx_info(const char *fmt, ...) __attribute__((format(printf, 1, 2), cold)); int plogd_info(const struct rte_mbuf *mbuf, const char *fmt, ...) __attribute__((format(printf, 2, 3), cold)); int plogdx_info(const struct rte_mbuf *mbuf, const char *fmt, ...) __attribute__((format(printf, 2, 3), cold)); #else __attribute__((format(printf, 1, 2))) static inline int plog_info(__attribute__((unused)) const char *fmt, ...) {return 0;} __attribute__((format(printf, 1, 2))) static inline int plogx_info(__attribute__((unused)) const char *fmt, ...) {return 0;} __attribute__((format(printf, 2, 3))) static inline int plogd_info(__attribute__((unused)) const struct rte_mbuf *mbuf, __attribute__((unused)) const char *fmt, ...) {return 0;} __attribute__((format(printf, 2, 3))) static inline int plogdx_info(__attribute__((unused)) const struct rte_mbuf *mbuf, __attribute__((unused)) const char *fmt, ...) {return 0;} #endif #if PROX_MAX_LOG_LVL >= PROX_LOG_DBG int plog_dbg(const char *fmt, ...) __attribute__((format(printf, 1, 2), cold)); int plogx_dbg(const char *fmt, ...) __attribute__((format(printf, 1, 2), cold)); int plogd_dbg(const struct rte_mbuf *mbuf, const char *fmt, ...) __attribute__((format(printf, 2, 3), cold)); int plogdx_dbg(const struct rte_mbuf *mbuf, const char *fmt, ...) __attribute__((format(printf, 2, 3), cold)); #else __attribute__((format(printf, 1, 2))) static inline int plog_dbg(__attribute__((unused)) const char *fmt, ...) {return 0;} __attribute__((format(printf, 1, 2))) static inline int plogx_dbg(__attribute__((unused)) const char *fmt, ...) {return 0;} __attribute__((format(printf, 2, 3))) static inline int plogd_dbg(__attribute__((unused)) const struct rte_mbuf *mbuf, __attribute__((unused)) const char *fmt, ...) {return 0;} __attribute__((format(printf, 2, 3))) static inline int plogdx_dbg(__attribute__((unused)) const struct rte_mbuf *mbuf, __attribute__((unused)) const char *fmt, ...) {return 0;} #endif void plog_init(const char *log_name, int log_name_pid); void file_print(const char *str); int plog_set_lvl(int lvl); #endif /* _LOG_H_ */