Home
last modified time | relevance | path

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

123456

/freebsd/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 …]
/freebsd/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 …]
/freebsd/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 …]
/freebsd/crypto/krb5/src/tests/gssapi/
H A Dt_enctypes.py39 def test(msg, ienc, aenc, tktenc='', tktsession='', proto='', isubkey='', argument
45 fail(msg)
47 fail(msg)
53 fail(msg)
58 def test_err(msg, ienc, aenc, expected_err): argument
64 test('noargs', None, None,
73 test('init aes128', 'aes128-cts', None,
81 test('both aes128', 'aes128-cts', 'aes128-cts',
94 test('init des3', 'des3', None,
105 test('upgrade noargs', None, None,
[all …]
H A Dt_invalid.c90 struct test { struct
198 make_fake_context(const struct test *test) in make_fake_context() argument
209 kgctx->sealalg = test->sealalg; in make_fake_context()
210 kgctx->signalg = test->signalg; in make_fake_context()
211 kgctx->cksum_size = test->cksum_size; in make_fake_context()
213 kb.enctype = test->enctype; in make_fake_context()
214 kb.length = test->keylen; in make_fake_context()
215 kb.contents = (unsigned char *)test->keydata; in make_fake_context()
219 kb.enctype = test->encseq_enctype; in make_fake_context()
475 uint8_t msg[] = "message"; in test_cfx_verify_mic() local
[all …]
/freebsd/crypto/krb5/src/tests/
H A Dt_hostrealm.py16 def test(realm, args, expected_realms, msg, env=None): argument
19 fail(msg)
21 def test_error(realm, args, expected_error, msg, env=None): argument
25 def testh(realm, host, expected_realms, msg, env=None): argument
26 test(realm, ['-h', host], expected_realms, msg, env=env)
27 def testf(realm, host, expected_realms, msg, env=None): argument
28 test(realm, ['-f', host], expected_realms, msg, env=env)
29 def testd(realm, expected_realm, msg, env=None): argument
30 test(realm, ['-d'], [expected_realm], msg, env=env)
31 def testh_error(realm, host, expected_error, msg, env=None): argument
[all …]
/freebsd/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 …]
/freebsd/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 …]
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_archive_set_error.c26 #include "test.h"
29 test(struct archive *a, int code, const char *msg)
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()
30 test(struct archive * a,int code,const char * msg) test() argument
H A Dtest_archive_read_open2.c25 #include "test.h"
59 test(int formatted, archive_open_callback *o, archive_read_callback *r,
61 int rv, const char *msg) in test()
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( in DEFINE_TEST()
60 test(int formatted, archive_open_callback *o, archive_read_callback *r, test() function
62 test(int formatted,archive_open_callback * o,archive_read_callback * r,archive_skip_callback * s,archive_close_callback * c,int rv,const char * msg) test() argument
[all...]
/freebsd/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 …]
/freebsd/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 …]
/freebsd/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 …]
/freebsd/crypto/openssl/test/recipes/
H A D90-test_sslapi.t41 ok(run(test(["sslapitest", srctop_dir("test", "certs"),
58 ok(run(test(["sslapitest", srctop_dir("test", "certs"),
68 run(test(["fips_version_test", "-config", $provconf, ">=3.1.0"]),
79 my $msg;
82 read($in, $msg, 1024);
85 $msg =~ s/$srch/$repl/;
88 print $fh $msg;
135 && run(test(["sslapitest", srctop_dir("test", "certs"),
147 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"]),
409 run(test(["fips_version_test", "-config", $provconf, "<3.1.0"]),
441 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 …]
/freebsd/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 …]
/freebsd/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 …]
/freebsd/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 …]
/freebsd/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) {
/freebsd/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 …]
/freebsd/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 …]

123456