Home
last modified time | relevance | path

Searched refs:test (Results 1 – 8 of 8) sorted by relevance

/libmctp-latest/tests/
Dtest-utils.c29 struct mctp_binding_test *test; in mctp_binding_test_init() local
30 test = __mctp_alloc(sizeof(*test)); in mctp_binding_test_init()
31 memset(test, '\0', sizeof(*test)); in mctp_binding_test_init()
32 test->binding.name = "test"; in mctp_binding_test_init()
33 test->binding.version = 1; in mctp_binding_test_init()
34 test->binding.tx = mctp_binding_test_tx; in mctp_binding_test_init()
35 test->binding.pkt_size = MCTP_PACKET_SIZE(MCTP_BTU); in mctp_binding_test_init()
36 test->binding.pkt_header = 0; in mctp_binding_test_init()
37 test->binding.pkt_trailer = 0; in mctp_binding_test_init()
38 return test; in mctp_binding_test_init()
[all …]
Dtest_seq.c45 struct test { struct
103 static void run_one_test(struct test_ctx *ctx, struct test *test) in run_one_test() argument
120 for (i = 0; i < test->n_packets; i++) { in run_one_test()
124 pktbuf.hdr.flags_seq_tag = test->flags_seq_tags[i]; in run_one_test()
130 assert(ctx->rx_count == test->exp_rx_count); in run_one_test()
131 assert(ctx->rx_len == test->exp_rx_len); in run_one_test()
Dtest-utils.h13 void mctp_binding_test_destroy(struct mctp_binding_test *test);
18 void mctp_binding_test_rx_raw(struct mctp_binding_test *test, void *buf,
Dtest_astlpc.c158 struct astlpc_test *test = data; in astlpc_test_rx_message() local
164 assert(test); in astlpc_test_rx_message()
165 assert(test->msg); in astlpc_test_rx_message()
166 assert(!memcmp(test->msg, msg, len)); in astlpc_test_rx_message()
168 test->count++; in astlpc_test_rx_message()
240 const void *test = ((char *)src->astlpc->lpc_map) + tx_body; in astlpc_assert_tx_packet() local
241 assert(!memcmp(test, expected, len)); in astlpc_assert_tx_packet()
1471 #define TEST_CASE(test) { #test, test } argument
1474 void (*test)(void); member
1534 astlpc_tests[i].test(); in main()
Dtest_core.c606 #define TEST_CASE(test) { #test, test } argument
609 void (*test)(void); member
643 mctp_core_tests[i].test(); in main()
/libmctp-latest/
Dconfigure.ac27 AS_IF([test "x$enable_capture" = "xyes"],
35 AM_CONDITIONAL([HAVE_PCAP], [test "x$enable_capture" = "xyes"])
42 AS_IF([test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"],
44 AS_IF([test "x$def_systemdsystemunitdir" = "x"],
45 [AS_IF([test "x$with_systemdsystemunitdir" = "xyes"],
58 AS_IF([test "x$with_systemdsystemunitdir" != "xno"],
61 AM_CONDITIONAL([HAVE_SYSTEMD], [test "x$with_systemdsystemunitdir" != "xno"])
68 AS_IF([test "x$with_syslog" != "xno"],
94 AS_IF([test "x$with_fileio" = "xcheck"],
97 [AS_IF([test "x$with_fileio" = "xyes"],
[all …]
DCMakeLists.txt33 add_executable (test_eid tests/test_eid.c tests/test-utils.c)
37 add_executable (test_seq tests/test_seq.c tests/test-utils.c)
41 add_executable (test_bridge tests/test_bridge.c tests/test-utils.c)
45 add_executable (test_astlpc tests/test_astlpc.c tests/test-utils.c)
49 add_executable (test_serial tests/test_serial.c tests/test-utils.c)
53 add_executable (test_cmds tests/test_cmds.c tests/test-utils.c)
57 add_executable (test_core tests/test_core.c tests/test-utils.c)
D.gitignore32 test-driver