Home
last modified time | relevance | path

Searched +refs:test +refs:msg (Results 1 – 25 of 125) sorted by relevance

12345

/src/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dcrypto_test.c136 crypto_test_val_t msg; member
226 crypto_test_t *test = NULL; in load_tests() local
236 if (nread < 2 && test != NULL) { in load_tests()
241 if (test->id == 0 || in load_tests()
242 test->iv.val == NULL || in load_tests()
243 test->key.val == NULL || in load_tests()
244 test->msg.val == NULL || in load_tests()
245 test->ct.val == NULL || in load_tests()
246 test->aad.val == NULL || in load_tests()
247 test->tag.val == NULL || in load_tests()
[all …]
/src/sys/contrib/dev/mediatek/mt76/mt7615/
H A Dtestmode.c70 if (mphy->test.state != MT76_TM_STATE_OFF) in mt7615_tm_set_tx_power()
71 tx_power = mphy->test.tx_power; in mt7615_tm_set_tx_power()
101 u32 *b = phy->test.reg_backup; in mt7615_tm_reg_backup_restore()
106 if (phy->mt76->test.state == MT76_TM_STATE_OFF) { in mt7615_tm_reg_backup_restore()
124 phy->test.reg_backup = b; in mt7615_tm_reg_backup_restore()
141 mt7615_mcu_set_sku_en(phy, phy->mt76->test.state == MT76_TM_STATE_OFF); in mt7615_tm_init()
175 struct mt76_testmode_data *td = &phy->mt76->test; in mt7615_tm_set_tx_antenna()
229 struct sk_buff *skb = phy->mt76->test.tx_skb; in mt7615_tm_set_tx_frames()
245 struct mt76_testmode_data *td = &phy->mt76->test; in mt7615_tm_update_params()
246 bool en = phy->mt76->test.state != MT76_TM_STATE_OFF; in mt7615_tm_update_params()
[all …]
/src/sys/contrib/dev/mediatek/mt76/
H A Dtestmode.c33 struct mt76_testmode_data *td = &phy->test; in mt76_testmode_tx_pending()
95 struct mt76_testmode_data *td = &phy->test; in mt76_testmode_free_skb()
106 struct mt76_testmode_data *td = &phy->test; in mt76_testmode_alloc_skb()
180 struct mt76_testmode_data *td = &phy->test; in mt76_testmode_tx_init()
272 struct mt76_testmode_data *td = &phy->test; in mt76_testmode_tx_start()
284 struct mt76_testmode_data *td = &phy->test; in mt76_testmode_tx_stop()
314 struct mt76_testmode_data *td = &phy->test; in mt76_testmode_init_defaults()
332 enum mt76_testmode_state prev_state = phy->test.state; in __mt76_testmode_set_state()
356 memset(&phy->test.rx_stats, 0, sizeof(phy->test.rx_stats)); in __mt76_testmode_set_state()
359 phy->test.state = state; in __mt76_testmode_set_state()
[all …]
/src/contrib/ntp/sntp/libevent/test/
H A Dtinytest_macros.h71 #define tt_abort_printf(msg) TT_DIE(msg) argument
73 #define tt_abort_msg(msg) TT_DIE(("%s", msg)) argument
77 #define tt_failprint_f(msg) TT_FAIL(msg) argument
79 #define tt_fail_msg(msg) TT_FAIL(("%s", msg)) argument
89 #define tt_want_(b, msg, fail) \ argument
93 TT_GRIPE(("%s",msg)); \
96 TT_BLATHER(("%s",msg)); \
101 #define tt_want_msg(b, msg) \ argument
102 tt_want_(b, msg, );
105 #define tt_assert_msg(b, msg) \ argument
[all …]
/src/contrib/libevent/test/
H A Dtinytest_macros.h71 #define tt_abort_printf(msg) TT_DIE(msg) argument
73 #define tt_abort_msg(msg) TT_DIE(("%s", msg)) argument
77 #define tt_failprint_f(msg) TT_FAIL(msg) argument
79 #define tt_fail_msg(msg) TT_FAIL(("%s", msg)) argument
89 #define tt_want_(b, msg, fail) \ argument
93 TT_GRIPE(("%s",msg)); \
96 TT_BLATHER(("%s",msg)); \
101 #define tt_want_msg(b, msg) \ argument
102 tt_want_(b, msg, );
105 #define tt_assert_msg(b, msg) \ argument
[all …]
/src/contrib/libarchive/libarchive/test/
H A Dtest_archive_set_error.c29 test(struct archive *a, int code, const char *msg) in test() argument
31 archive_set_error(a, code, "%s", msg); in test()
34 assertEqualString(msg, archive_error_string(a)); in test()
44 test(a, 12, "abcdefgh"); in DEFINE_TEST()
45 test(a, 0, "123456"); in DEFINE_TEST()
46 test(a, -1, "tuvw"); in DEFINE_TEST()
47 test(a, 34, "XYZ"); in DEFINE_TEST()
H A Dtest_archive_read_open2.c59 test(int formatted, archive_open_callback *o, archive_read_callback *r, in test() function
61 int rv, const char *msg) in test() argument
69 assertEqualString(msg, archive_error_string(a)); in test()
79 test(1, NULL, NULL, NULL, NULL, in DEFINE_TEST()
81 test(1, open_cb, NULL, NULL, NULL, in DEFINE_TEST()
83 test(1, open_cb, read_cb, NULL, NULL, in DEFINE_TEST()
85 test(1, open_cb, read_cb, skip_cb, NULL, in DEFINE_TEST()
87 test(1, open_cb, read_cb, skip_cb, close_cb, in DEFINE_TEST()
89 test(1, NULL, read_cb, skip_cb, close_cb, in DEFINE_TEST()
91 test(1, open_cb, read_cb, skip_cb, NULL, in DEFINE_TEST()
[all …]
/src/contrib/netbsd-tests/net/net/
H A Dt_unix.c64 #define FAIL(msg, ...) err(EXIT_FAILURE, msg, ## __VA_ARGS__) argument
68 #define FAIL(msg, ...) \ argument
70 ATF_CHECK_MSG(0, msg, ## __VA_ARGS__); \
79 print(const char *msg, struct sockaddr_un *addr, socklen_t len) in print() argument
83 printf("%s: client socket length: %zu\n", msg, (size_t)len); in print()
84 printf("%s: client family %d\n", msg, addr->sun_family); in print()
86 printf("%s: client len %d\n", msg, addr->sun_len); in print()
88 printf("%s: socket name: ", msg); in print()
140 test(bool closeit, size_t len) in test() function
274 ATF_REQUIRE_MSG(test(false, 254) == -1, "test(false, 254): %s", in ATF_TC_BODY()
[all …]
/src/contrib/atf/atf-c/
H A Dbuild_test.c155 struct c_o_test *test; in ATF_TC_BODY() local
157 for (test = c_o_tests; test->expargv[0] != NULL; test++) { in ATF_TC_BODY()
158 printf("> Test: %s\n", test->msg); in ATF_TC_BODY()
160 verbose_set_env("ATF_BUILD_CC", test->cc); in ATF_TC_BODY()
161 verbose_set_env("ATF_BUILD_CFLAGS", test->cflags); in ATF_TC_BODY()
162 verbose_set_env("ATF_BUILD_CPPFLAGS", test->cppflags); in ATF_TC_BODY()
166 if (test->hasoptargs) in ATF_TC_BODY()
167 RE(atf_build_c_o(test->sfile, test->ofile, test->optargs, in ATF_TC_BODY()
170 RE(atf_build_c_o(test->sfile, test->ofile, NULL, &argv)); in ATF_TC_BODY()
171 check_equal_array(test->expargv, argv); in ATF_TC_BODY()
[all …]
H A Dmacros_test.c113 #define H_CHECK_MSG(id, condition, msg) \ argument
114 H_DEF(check_msg_ ## id, ATF_CHECK_MSG(condition, msg))
135 #define H_CHECK_EQ_MSG(id, v1, v2, msg) \ argument
136 H_DEF(check_eq_msg_ ## id, ATF_CHECK_EQ_MSG(v1, v2, msg))
142 #define H_CHECK_STREQ_MSG(id, v1, v2, msg) \ argument
143 H_DEF(check_streq_msg_ ## id, ATF_CHECK_STREQ_MSG(v1, v2, msg))
149 #define H_CHECK_MATCH_MSG(id, v1, v2, msg) \ argument
150 H_DEF(check_match_msg_ ## id, ATF_CHECK_MATCH_MSG(v1, v2, msg))
164 #define H_REQUIRE_MSG(id, condition, msg) \ argument
165 H_DEF(require_msg_ ## id, ATF_REQUIRE_MSG(condition, msg))
[all …]
/src/crypto/openssl/test/recipes/
H A D90-test_sslapi.t41 ok(run(test(["sslapitest", srctop_dir("test", "certs"),
61 ok(run(test(["sslapitest", srctop_dir("test", "certs"),
74 run(test(["fips_version_test", "-config", $provconf, ">=3.1.0"]),
85 my $msg;
88 read($in, $msg, 1024);
91 $msg =~ s/$srch/$repl/;
94 print $fh $msg;
141 && run(test(["sslapitest", srctop_dir("test", "certs"),
156 ok(run(test(["ssl_handshake_rtt_test"])),"running ssl_handshake_rtt_test");
H A D03-test_fipsinstall.t78 my $msg;
81 read($in, $msg, 1024);
84 $msg =~ s/$srch/$repl/;
87 print $fh $msg;
170 run(test(["fips_version_test", "-config", $provconf, "<3.1.0"]),
321 run(test(["fips_version_test", "-config", $provconf, ">=3.1.0"]),
339 run(test(["fips_version_test", "-config", $provconf, "<3.1.0"]),
357 run(test(["fips_version_test", "-config", $provconf, ">=3.5.0"]),
419 run(test(["fips_version_test", "-config", $provconf, "<3.1.0"]),
451 run(test(["fips_version_test", "-config", $provconf, "<3.1.0"]),
[all …]
H A D15-test_gendhparam.t133 foreach my $test (@testdata) {
134 my $alg = $test->{algorithm};
135 my $msg = $test->{message};
136 my @testargs = @{ $test->{pkeyopts} };
137 my @expected = @{ $test->{expect} };
154 ok(compareline(\@lines, \@expected), $msg);
H A D80-test_ssl_old.t113 my $msg;
116 read($in, $msg, 1024);
119 $msg =~ s/$srch/$repl/;
122 print $fh $msg;
398 run(test(["fips_version_test", "-config", $configfile, "<3.4.0"]),
428 ok(run(test([@ssltest, "-bio_pair", "-ssl3"])),
430 ok(run(test([@ssltest, "-bio_pair", "-ssl3", "-server_auth", @CA])),
432 ok(run(test([@ssltest, "-bio_pair", "-ssl3", "-client_auth", @CA])),
434 ok(run(test([@ssltest, "-bio_pair", "-ssl3", "-server_auth", "-client_auth", @CA])),
442 ok(run(test([@ssltest, "-bio_pair"])),
[all …]
/src/contrib/atf/atf-c++/
H A Dbuild_test.cpp155 for (struct c_o_test* test = c_o_tests; test->expargv[0] != NULL; in ATF_TEST_CASE_BODY() local
156 test++) { in ATF_TEST_CASE_BODY()
157 std::cout << "> Test: " << test->msg << "\n"; in ATF_TEST_CASE_BODY()
159 verbose_set_env("ATF_BUILD_CC", test->cc); in ATF_TEST_CASE_BODY()
160 verbose_set_env("ATF_BUILD_CFLAGS", test->cflags); in ATF_TEST_CASE_BODY()
161 verbose_set_env("ATF_BUILD_CPPFLAGS", test->cppflags); in ATF_TEST_CASE_BODY()
164 atf::build::c_o(test->sfile, test->ofile, in ATF_TEST_CASE_BODY()
165 atf::process::argv_array(test->optargs)); in ATF_TEST_CASE_BODY()
166 check_equal_argvs(argv, test->expargv); in ATF_TEST_CASE_BODY()
177 for (struct cpp_test* test = cpp_tests; test->expargv[0] != NULL; in ATF_TEST_CASE_BODY() local
[all …]
H A Dmacros_test.cpp334 struct test { in ATF_TEST_CASE_BODY() struct
378 struct test { in ATF_TEST_CASE_BODY() struct
427 struct test { in ATF_TEST_CASE_BODY() struct
472 struct test { in ATF_TEST_CASE_BODY() struct
519 struct test { in ATF_TEST_CASE_BODY() struct
564 struct test { in ATF_TEST_CASE_BODY() struct
567 const char *msg; in ATF_TEST_CASE_BODY() member
593 std::cout << "Checking that message contains '" << t->msg in ATF_TEST_CASE_BODY()
595 std::string exp_result = std::string("^failed: .*") + t->msg; in ATF_TEST_CASE_BODY()
613 struct test { in ATF_TEST_CASE_BODY() struct
[all …]
/src/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dtestmode.c59 if (phy->mt76->test.state != MT76_TM_STATE_OFF) in mt7915_tm_set_tx_power()
60 tx_power = phy->mt76->test.tx_power; in mt7915_tm_set_tx_power()
141 .testmode_en = !(phy->mt76->test.state == MT76_TM_STATE_OFF), in mt7915_tm_set_slot_time()
258 struct mt76_testmode_data *td = &mphy->test; in mt7915_tm_set_tx_len()
339 u32 *b = phy->test.reg_backup; in mt7915_tm_reg_backup_restore()
361 if (phy->mt76->test.state == MT76_TM_STATE_OFF) { in mt7915_tm_reg_backup_restore()
372 phy->test.reg_backup = b; in mt7915_tm_reg_backup_restore()
439 struct mt76_testmode_data *td = &phy->mt76->test; in mt7915_tm_set_tx_frames()
453 phy->test.spe_idx = td->tx_spe_idx; in mt7915_tm_set_tx_frames()
455 phy->test.spe_idx = mt76_connac_spe_idx(td->tx_antenna_mask); in mt7915_tm_set_tx_frames()
[all …]
/src/contrib/wpa/src/crypto/
H A Dcrypto_module_tests.c164 u8 msg[64]; member
225 u8 msg[] = { 0x12, 0x34, 0x56 }; in test_omac1_vector() local
230 if (omac1_aes_128(tv->k, tv->msg, tv->msg_len, result) || in test_omac1_vector()
238 addr[0] = tv->msg; in test_omac1_vector()
240 addr[1] = tv->msg + 1; in test_omac1_vector()
251 addr[0] = tv->msg; in test_omac1_vector()
253 addr[1] = tv->msg + tv->msg_len - 2; in test_omac1_vector()
255 addr[2] = tv->msg + tv->msg_len - 1; in test_omac1_vector()
267 addr[0] = &msg[0]; in test_omac1_vector()
269 addr[1] = &msg[1]; in test_omac1_vector()
[all …]
/src/crypto/krb5/src/lib/crypto/crypto_tests/
H A Dt_encrypt.c53 test(const char *msg, krb5_error_code retval) in test() argument
55 printf("%s: . . . ", msg); in test()
80 display(const char *msg, const krb5_data *d) in display() argument
84 printf("%s:", msg); in display()
110 test ("Seeding random number generator", in main()
132 test ("Initializing a keyblock", in main()
134 test ("Generating random keyblock", in main()
136 test ("Creating opaque key from keyblock", in main()
147 test ("Encrypting (c)", in main()
150 test ("Decrypting", in main()
[all …]
/src/sys/contrib/openzfs/scripts/
H A Dconvert_wycheproof.pl142 for my $test (@{$group->{tests}}) {
143 my ($id, $comment, $iv, $key, $msg, $ct, $aad, $tag, $result) =
144 @$test{qw(tcId comment iv key msg ct aad tag result)};
167 if ($test->{flags}) {
168 $flags = join(' ', sort @{$test->{flags}});
179 [ msg => $msg ],
208 for my $test (@tests) {
224 for my $row (@$test) {
/src/usr.sbin/cron/lib/
H A Dmisc.c123 const char **test; in set_debug_flags()
128 for ( test = DebugFlagNames, mask = 1; in set_debug_flags()
129 *test != NULL && strcmp_until(*test, pc, ','); in set_debug_flags()
130 test++, mask <<= 1 in set_debug_flags()
134 if (!*test) { in set_debug_flags()
378 char *msg; in log_it() local
390 msg = malloc(strlen(username) in log_it()
395 if (msg == NULL) in log_it()
411 sprintf(msg, "%s (%02d/%02d-%02d:%02d:%02d-%d) %s (%s)\n", in log_it()
419 if (LogFD < OK || write(LogFD, msg, strlen(msg)) < OK) { in log_it()
[all …]
/src/tools/regression/sockets/sendfile/
H A Dsendfile.c52 #define FAIL(msg) {printf("# %s\n", msg); \ argument
55 #define FAIL_ERR(msg) {printf("# %s: %s\n", msg, strerror(errno)); \ argument
267 send_test(int connect_socket, struct sendfile_test test) in send_test() argument
284 length = st.st_size - test.offset; in send_test()
285 if (test.length > 0 && test.length < (uint32_t)length) in send_test()
286 length = test.length; in send_test()
288 init_th(&th, test.hdr_length, test.offset, length); in send_test()
294 if (test.hdr_length != 0) { in send_test()
295 header = malloc(test.hdr_length); in send_test()
302 headers.iov_len = test.hdr_length; in send_test()
[all …]
/src/contrib/netbsd-tests/lib/csu/
H A Dh_initfini_common.cxx13 static const char msg[] = "constructor executed\n"; in Test() local
14 write(STDOUT_FILENO, msg, sizeof(msg) - 1); in Test()
25 static const char msg[] = "destructor executed\n"; in ~Test() local
26 write(STDOUT_FILENO, msg, sizeof(msg) - 1); in ~Test()
37 Test test; variable
/src/contrib/expat/tests/
H A Dminicheck.c92 tcase_add_test(TCase *tc, tcase_test_function test) { in tcase_add_test() argument
103 tc->tests[tc->ntests] = test; in tcase_add_test()
247 _fail(const char *file, int line, const char *msg) { in _fail() argument
254 if (msg != NULL) { in _fail()
255 const int has_newline = (msg[strlen(msg) - 1] == '\n'); in _fail()
256 fprintf(stderr, "ERROR: %s%s", msg, has_newline ? "" : "\n"); in _fail()
/src/sys/contrib/openzfs/config/
H A Dpo.m440 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
41 dnl The second test excludes FreeBSD msgfmt.
58 dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
59 dnl The second test excludes FreeBSD xgettext.
97 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
114 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
123 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
125test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
132 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
134 if test -n "$OBSOLETE_ALL_LINGUAS"; then
[all …]

12345