Home
last modified time | relevance | path

Searched refs:ASSERT_STRING_EQ (Results 1 – 15 of 15) sorted by relevance

/freebsd-14.2/crypto/openssh/regress/unittests/misc/
H A Dtest_strdelim.c47 ASSERT_STRING_EQ(str, ""); in test_strdelim()
54 ASSERT_STRING_EQ(cp, "blob"); in test_strdelim()
64 ASSERT_STRING_EQ(cp, "blob"); in test_strdelim()
65 ASSERT_STRING_EQ(str, ""); in test_strdelim()
75 ASSERT_STRING_EQ(cp, "blob1"); in test_strdelim()
78 ASSERT_STRING_EQ(cp, "blob2"); in test_strdelim()
88 ASSERT_STRING_EQ(cp, "blob1"); in test_strdelim()
91 ASSERT_STRING_EQ(cp, "blob2"); in test_strdelim()
117 ASSERT_STRING_EQ(cp, ""); in test_strdelim()
165 ASSERT_STRING_EQ(str, ""); in test_strdelim()
[all …]
H A Dtest_parse.c34 ASSERT_STRING_EQ(user, "someuser"); in test_parse()
35 ASSERT_STRING_EQ(host, "some.host"); in test_parse()
36 ASSERT_STRING_EQ(path, "some/path"); in test_parse()
43 ASSERT_STRING_EQ(user, "someuser"); in test_parse()
45 ASSERT_STRING_EQ(path, "some/path"); in test_parse()
52 ASSERT_STRING_EQ(user, "someuser"); in test_parse()
54 ASSERT_STRING_EQ(path, "some/path"); in test_parse()
61 ASSERT_STRING_EQ(user, "someuser"); in test_parse()
63 ASSERT_STRING_EQ(path, "."); in test_parse()
70 ASSERT_STRING_EQ(user, "someuser"); in test_parse()
[all …]
H A Dtest_argv.c55 ASSERT_STRING_EQ(av[0], "leamas"); in test_argv()
61 ASSERT_STRING_EQ(av[0], "smiley"); in test_argv()
62 ASSERT_STRING_EQ(av[1], "leamas"); in test_argv()
71 ASSERT_STRING_EQ(av[0], "smiley"); in test_argv()
77 ASSERT_STRING_EQ(av[0], "leamas"); in test_argv()
78 ASSERT_STRING_EQ(av[1], " smiley "); in test_argv()
91 ASSERT_STRING_EQ(av[1], "liz"); in test_argv()
112 ASSERT_STRING_EQ(av[0], "smiley's"); in test_argv()
113 ASSERT_STRING_EQ(av[1], "leamas'"); in test_argv()
156 ASSERT_STRING_EQ(av[0], "#"); in test_argv()
[all …]
H A Dtest_expand.c37 ASSERT_STRING_EQ(str, (y)); \ in test_expand()
76 ASSERT_STRING_EQ(percent_expand("%%", "%h", "foo", NULL), "%"); in test_expand()
77 ASSERT_STRING_EQ(percent_expand("%h", "h", "foo", NULL), "foo"); in test_expand()
78 ASSERT_STRING_EQ(percent_expand("%h ", "h", "foo", NULL), "foo "); in test_expand()
79 ASSERT_STRING_EQ(percent_expand(" %h", "h", "foo", NULL), " foo"); in test_expand()
80 ASSERT_STRING_EQ(percent_expand(" %h ", "h", "foo", NULL), " foo "); in test_expand()
81 ASSERT_STRING_EQ(percent_expand(" %a%b ", "a", "foo", "b", "bar", NULL), in test_expand()
86 ASSERT_STRING_EQ(percent_dollar_expand("%h${FOO}", "h", "foo", NULL), in test_expand()
H A Dtest_hpdelim.c37 ASSERT_STRING_EQ(cp, "host"); in test_hpdelim()
45 ASSERT_STRING_EQ(cp, ""); in test_hpdelim()
48 ASSERT_STRING_EQ(port, "1234"); in test_hpdelim()
56 ASSERT_STRING_EQ(cp, "host"); in test_hpdelim()
59 ASSERT_STRING_EQ(port, "1234"); in test_hpdelim()
67 ASSERT_STRING_EQ(cp, "[::1]"); in test_hpdelim()
70 ASSERT_STRING_EQ(port, "1234"); in test_hpdelim()
/freebsd-14.2/crypto/openssh/regress/unittests/sshkey/
H A Dtest_file.c117 ASSERT_STRING_EQ(k2->cert->signature_type, "ssh-rsa"); in sshkey_file_tests()
142 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); in sshkey_file_tests()
151 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); in sshkey_file_tests()
161 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); in sshkey_file_tests()
234 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); in sshkey_file_tests()
243 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); in sshkey_file_tests()
253 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); in sshkey_file_tests()
268 ASSERT_STRING_EQ((const char *)sshbuf_ptr(buf), in sshkey_file_tests()
335 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); in sshkey_file_tests()
344 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf)); in sshkey_file_tests()
[all …]
/freebsd-14.2/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_misc.c58 ASSERT_STRING_EQ(p, "12345678"); in sshbuf_misc_tests()
69 ASSERT_STRING_EQ(p, "EQ=="); in sshbuf_misc_tests()
81 ASSERT_STRING_EQ(p, "ESI="); in sshbuf_misc_tests()
94 ASSERT_STRING_EQ(p, "ESIz"); in sshbuf_misc_tests()
151 ASSERT_STRING_EQ(p, "quad1"); in sshbuf_misc_tests()
158 ASSERT_STRING_EQ(p, "quad1"); in sshbuf_misc_tests()
H A Dtest_sshbuf_getput_basic.c555 ASSERT_STRING_EQ(s2, "a1b2c3d4e5f607180000"); in sshbuf_getput_basic_tests()
563 ASSERT_STRING_EQ(s2, "0000a1b2c3d4e5f60718"); in sshbuf_getput_basic_tests()
577 ASSERT_STRING_EQ(s2, "00000000000000000000"); in sshbuf_getput_basic_tests()
589 ASSERT_STRING_EQ(s2, "a1b2c3d4000000000000"); in sshbuf_getput_basic_tests()
597 ASSERT_STRING_EQ(s2, "000000000000a1b2c3d4"); in sshbuf_getput_basic_tests()
611 ASSERT_STRING_EQ(s2, "00000000000000000000"); in sshbuf_getput_basic_tests()
623 ASSERT_STRING_EQ(s2, "a1b20000000000000000"); in sshbuf_getput_basic_tests()
631 ASSERT_STRING_EQ(s2, "0000000000000000a1b2"); in sshbuf_getput_basic_tests()
645 ASSERT_STRING_EQ(s2, "00000000000000000000"); in sshbuf_getput_basic_tests()
657 ASSERT_STRING_EQ(s2, "a1000000000000000000"); in sshbuf_getput_basic_tests()
[all …]
H A Dtest_sshbuf_fixed.c62 ASSERT_STRING_EQ(s, "hello"); in sshbuf_fixed()
93 ASSERT_STRING_EQ(s, "hello"); in sshbuf_fixed()
/freebsd-14.2/crypto/openssh/regress/unittests/kex/
H A Dtest_proposal.c61 ASSERT_STRING_EQ(result, tests[i].out); in kex_proposal_tests()
67 ASSERT_STRING_EQ(result, out); in kex_proposal_tests()
73 ASSERT_STRING_EQ(result, out); in kex_proposal_tests()
82 ASSERT_STRING_EQ(result, out); in kex_proposal_tests()
/freebsd-14.2/crypto/openssh/regress/unittests/utf8/
H A Dtests.c30 ASSERT_STRING_EQ(buf, ""); in badarg()
51 ASSERT_STRING_EQ(buf, wants); in one()
/freebsd-14.2/crypto/openssh/regress/unittests/authopt/
H A Dtests.c113 ASSERT_STRING_EQ(opts->x, expected->x); \ in compare_opts()
127 ASSERT_STRING_EQ(opts->x[i], expected->x[i]); \ in compare_opts()
151 ASSERT_STRING_EQ(errstr, ""); \ in test_authkeys_parse()
396 ASSERT_STRING_EQ(errstr, ""); \ in test_merge()
416 ASSERT_STRING_EQ(errstr, ""); \ in test_merge()
/freebsd-14.2/crypto/openssh/regress/unittests/hostkeys/
H A Dtest_iterate.c127 ASSERT_STRING_EQ(l->line, expected->l.line); in check()
131 ASSERT_STRING_EQ(l->hosts, expected->l.hosts); in check()
134 ASSERT_STRING_EQ(l->rawkey, expected->l.rawkey); in check()
146 ASSERT_STRING_EQ(l->comment, expected->l.comment); in check()
/freebsd-14.2/crypto/openssh/regress/unittests/match/
H A Dtests.c108 ASSERT_STRING_EQ(result, expected); \ in tests()
/freebsd-14.2/crypto/openssh/regress/unittests/test_helper/
H A Dtest_helper.h110 #define ASSERT_STRING_EQ(a1, a2) \ macro