Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 25 of 1107) sorted by relevance

12345678910>>...45

/netbsd-src/tests/usr.bin/printf/
H A Dprintf.sh93 expect() function
230 expect abcd abcd
231 expect % %%
232 expect xxx%yyy xxx%%yyy
233 expect -123 -123
249 expect "${BSL}" '\\'
302 expect abcd %s abcd
303 expect ' a' %3s a
304 expect 'a ' %-3s a
305 expect abcd %3s abcd
[all …]
/netbsd-src/external/public-domain/xz/dist/tests/
H A Dtest_index.c25 expect(i != NULL); in create_empty()
34 expect(i != NULL); in create_small()
35 expect(lzma_index_append(i, NULL, 101, 555) == LZMA_OK); in create_small()
36 expect(lzma_index_append(i, NULL, 602, 777) == LZMA_OK); in create_small()
37 expect(lzma_index_append(i, NULL, 804, 999) == LZMA_OK); in create_small()
46 expect(i != NULL); in create_big()
56 expect(lzma_index_append(i, NULL, t, n) == LZMA_OK); in create_big()
61 expect(lzma_index_block_count(i) == BIG_COUNT); in create_big()
62 expect(lzma_index_total_size(i) == total_size); in create_big()
63 expect(lzma_index_uncompressed_size(i) == uncompressed_size); in create_big()
[all …]
H A Dtest_filter_flags.c82 expect(!encode(2)); in test_bcj()
83 expect(!decode(2)); in test_bcj()
84 expect(decoded_flags.options == NULL); in test_bcj()
90 expect(!encode(2)); in test_bcj()
91 expect(!decode(2)); in test_bcj()
92 expect(decoded_flags.options == NULL); in test_bcj()
97 expect(!encode(6)); in test_bcj()
98 expect(!decode(6)); in test_bcj()
99 expect(decoded_flags.options != NULL); in test_bcj()
102 expect(decoded->start_offset == options.start_offset); in test_bcj()
[all …]
H A Dtest_block_header.c83 expect(lzma_block_header_encode(&known_options, buf) == LZMA_OK); in code()
92 expect(lzma_block_header_decode(&decoded_options, NULL, buf) in code()
95 expect(known_options.compressed_size in code()
97 expect(known_options.uncompressed_size in code()
102 expect(known_options.filters[i].id == filters[i].id); in code()
119 expect(lzma_block_header_size(&known_options) == LZMA_PROG_ERROR); in test1()
122 expect(lzma_block_header_size(&known_options) == LZMA_PROG_ERROR); in test1()
125 expect(lzma_block_header_size(&known_options) == LZMA_PROG_ERROR); in test1()
128 expect(lzma_block_header_size(&known_options) == LZMA_OK); in test1()
131 expect(lzma_block_header_size(&known_options) == LZMA_OK); in test1()
[all …]
H A Dtest_stream_flags.c54 expect(lzma_stream_header_encode(&known_flags, buffer) == LZMA_OK); in test_header()
78 expect(lzma_stream_footer_encode(&known_flags, buffer) == LZMA_OK); in test_footer()
89 expect(lzma_stream_header_encode(&known_flags, buffer) in test_encode_invalid()
92 expect(lzma_stream_footer_encode(&known_flags, buffer) in test_encode_invalid()
97 expect(lzma_stream_header_encode(&known_flags, buffer) in test_encode_invalid()
100 expect(lzma_stream_footer_encode(&known_flags, buffer) in test_encode_invalid()
107 expect(lzma_stream_header_encode(&known_flags, buffer) == LZMA_OK); in test_encode_invalid()
109 expect(lzma_stream_footer_encode(&known_flags, buffer) in test_encode_invalid()
114 expect(lzma_stream_header_encode(&known_flags, buffer) == LZMA_OK); in test_encode_invalid()
116 expect(lzma_stream_footer_encode(&known_flags, buffer) in test_encode_invalid()
[all …]
/netbsd-src/external/lgpl3/mpfr/dist/tests/
H A Dtbeta.c53 mpfr_t z, w, r, expect; in test_beta_special() local
58 mpfr_init2 (expect, prec); in test_beta_special()
62 mpfr_set_zero (expect, 1); in test_beta_special()
63 TEST(prec, r, z, w, expect); in test_beta_special()
67 mpfr_set_nan (expect); in test_beta_special()
68 TEST(prec, r, z, w, expect); in test_beta_special()
72 mpfr_set_nan (expect); in test_beta_special()
73 TEST(prec, r, z, w, expect); in test_beta_special()
77 mpfr_set_inf (expect, 1); in test_beta_special()
78 TEST(prec, r, z, w, expect); in test_beta_special()
[all …]
/netbsd-src/crypto/external/cpl/tpm-tools/dist/test/
H A Dtpm_changeownerauth01.sh68 expect "Enter owner password" {
71 expect "Enter new SRK" {
73 expect "Confirm" {
78 expect "Enter new owner" {
80 expect "Confirm" {
86 expect {
88 expect "Tspi_Context_Close success" {
93 expect "Tspi_Context_Close success" {
106 expect "Enter owner password" {
109 expect "Enter new SRK" {
[all …]
/netbsd-src/external/mpl/bind/dist/bin/tests/system/pending/
H A Dtests.sh54 expect="10 mail.example."
56 test "$ans" = "$expect" || ret=1
57 test $ret = 0 || echo_i "failed, got '$ans', expected '$expect'"
62 expect="10.0.0.2"
64 test "$ans" = "$expect" || ret=1
65 test $ret = 0 || echo_i "failed, got '$ans', expected '$expect'"
74 expect="10 mail.example.com."
76 test "$ans" = "$expect" || ret=1
77 test $ret = 0 || echo_i "failed, got '$ans', expected '$expect'"
92 expect="192.0.2.3"
[all …]
/netbsd-src/tests/lib/libbluetooth/
H A Dt_sdp_put.c61 const uint8_t expect[] = { in ATF_TC_BODY() local
67 ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect)); in ATF_TC_BODY()
68 ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0); in ATF_TC_BODY()
95 const uint8_t expect[] = { in ATF_TC_BODY() local
100 ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect)); in ATF_TC_BODY()
101 ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0); in ATF_TC_BODY()
147 const uint8_t expect[] = { in ATF_TC_BODY() local
158 ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect)); in ATF_TC_BODY()
159 ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0); in ATF_TC_BODY()
179 const uint8_t expect[] = { in ATF_TC_BODY() local
[all …]
H A Dt_sdp_set.c130 const uint8_t expect[] = { in ATF_TC_BODY() local
147 ATF_REQUIRE_EQ(sizeof(data), sizeof(expect)); in ATF_TC_BODY()
148 ATF_CHECK(memcmp(expect, data, sizeof(expect)) == 0); in ATF_TC_BODY()
210 const uint8_t expect[] = { in ATF_TC_BODY() local
227 ATF_REQUIRE_EQ(sizeof(data), sizeof(expect)); in ATF_TC_BODY()
228 ATF_CHECK(memcmp(expect, data, sizeof(expect)) == 0); in ATF_TC_BODY()
275 const uint8_t expect[] = { in ATF_TC_BODY() local
285 ATF_REQUIRE_EQ(sizeof(data), sizeof(expect)); in ATF_TC_BODY()
286 ATF_CHECK(memcmp(expect, data, sizeof(expect)) == 0); in ATF_TC_BODY()
333 const uint8_t expect[] = { in ATF_TC_BODY() local
[all …]
/netbsd-src/external/mit/libuv/dist/test/
H A Dtest-tty-escape-sequence-processing.c302 struct captured_screen* expect) { in compare_screen() argument
308 ASSERT(expect->text); in compare_screen()
309 ASSERT(expect->attributes); in compare_screen()
310 if (actual->si.length != expect->si.length) { in compare_screen()
313 if (actual->si.width != expect->si.width) { in compare_screen()
316 if (actual->si.height != expect->si.height) { in compare_screen()
320 if (*(actual->text + current) != *(expect->text + current)) { in compare_screen()
327 *(expect->text + current), in compare_screen()
331 if (*(actual->attributes + current) != *(expect->attributes + current)) { in compare_screen()
338 *(expect->attributes + current), in compare_screen()
[all …]
/netbsd-src/external/mpl/bind/dist/bin/tests/system/statschannel/
H A Dtests.sh304 echo "${refresh_prefix} ${zsk_id}: 10" >zones.expect
305 echo "${refresh_prefix} ${ksk_id}: 1" >>zones.expect
306 echo "${sign_prefix} ${zsk_id}: 10" >>zones.expect
307 echo "${sign_prefix} ${ksk_id}: 1" >>zones.expect
308 cat zones.expect | sort >zones.expect.$n
309 rm -f zones.expect
314 cmp zones.out.x$n zones.expect.$n || ret=1
318 cmp zones.out.j$n zones.expect.$n || ret=1
334 echo "${refresh_prefix} ${zsk_id}: 10" >zones.expect
[all...]
/netbsd-src/tests/fs/ffs/
H A Dt_quotalimit.sh59 local expect
64 expect=u
68 expect=g
72 expect="u g"
80 for q in ${expect} ; do
91 for q in ${expect} ; do
106 local expect
111 expect=u
115 expect=g
119 expect="u g"
[all …]
H A Dt_miscquota.sh67 local expect
71 expect=u
75 expect=g
87 …nv LD_PRELOAD=/usr/lib/librumphijack.so RUMPHIJACK=vfs=getvfsstat,blanket=/mnt edquota -${expect} \
93 …RELOAD=/usr/lib/librumphijack.so RUMPHIJACK=vfs=getvfsstat,blanket=/mnt repquota -x -${expect} /mnt
102 local expect
106 expect=u
110 expect=g
125 …nv LD_PRELOAD=/usr/lib/librumphijack.so RUMPHIJACK=vfs=getvfsstat,blanket=/mnt edquota -${expect} \
142 local expect
[all …]
H A Dt_setquota.sh53 local expect
58 expect=u
62 expect=g
66 expect="u g"
75 for q in ${expect} ; do
109 local expect
114 expect=u
118 expect=g
122 expect="u g"
131 for q in ${expect} ; do
[all …]
H A Dt_getquota.sh43 local expect
48 expect=u
52 expect=g
56 expect="u g"
65 for q in ${expect} ; do
93 local expect
97 expect=u
101 expect=g
105 expect="u g"
/netbsd-src/crypto/external/bsd/openssl/dist/test/recipes/
H A D15-test_gendhparam.t21 expect => [ 'BEGIN X9.42 DH PARAMETERS', 'gindex:', 'pcounter:', 'SEED:' ],
27 expect => [ 'ERROR' ],
33 expect => [ 'BEGIN X9.42 DH PARAMETERS', 'gindex:', 'pcounter:', 'SEED:' ],
39 expect => [ 'BEGIN X9.42 DH PARAMETERS', 'h:', 'pcounter:', 'SEED:' ],
46 expect => [ "BEGIN X9.42 DH PARAMETERS" ],
52 expect => [ "ERROR" ],
57 expect => [ 'BEGIN DH PARAMETERS', 'GROUP:' ],
63 expect => [ 'BEGIN DH PARAMETERS', 'GROUP:' ],
69 expect => [ 'BEGIN DH PARAMETERS', 'GROUP:' ],
76 expect => [ 'BEGIN DH PARAMETERS', 'GROUP:'],
[all …]
H A D20-test_mac.t140 my ($cmdarray_orig, $type, $input, $expect, $err) = @_;
142 if (defined($expect)) {
143 $expect = uc $expect;
159 if (defined($expect)) {
160 if ($lines[0] =~ m|^\Q${expect}\E\R$|) {
164 print "Exp: $expect\n";
192 my ($cmdarray, $type, $input, $expect) = @_;
193 $expect = uc $expect;
217 if ($line eq $expect) {
221 print "Exp: $expect\n";
/netbsd-src/external/bsd/atf/dist/tools/
H A Dreader.cpp124 tools::parser::token t = parser.expect(text_type, "timestamp"); in read_timeval()
217 (void)p.expect(colon_type, "`:'"); in read_info()
219 tools::parser::token t = p.expect(text_type, "info property name"); in read_info()
220 (void)p.expect(comma_type, "`,'"); in read_info()
223 (void)p.expect(nl_type, "new line"); in read_info()
236 tools::parser::token t = p.expect(tp_start_type, in read_tp()
239 t = p.expect(colon_type, "`:'"); in read_tp()
243 t = p.expect(comma_type, "`,'"); in read_tp()
245 t = p.expect(text_type, "test program name"); in read_tp()
248 t = p.expect(comma_type, "`,'"); in read_tp()
[all …]
/netbsd-src/tests/games/
H A Dt_factor.sh28 expect() { function
43 expect '8675309' '8675309: 8675309'
52 expect '6172538568' '6172538568: 2 2 2 3 7 17 2161253'
62 expect '2147483647111311' '2147483647111311: 3 3 3 131 607148331103'
72 expect '99999999999991' '99999999999991: 7 13 769231 1428571' Need_Crypto
82 expect '-h 8675309' '8675309: 8675309'
91 expect '-h 6172538568' '6172538568: 2^3 3 7 17 2161253'
101 expect '-h 2147483647111311' '2147483647111311: 3^3 131 607148331103'
111 expect '-h 99999999999991' '99999999999991: 7 13 769231 1428571' Need_Crypto
121 expect '-hx 8675309' '0x845FED: 0x845FED'
[all …]
/netbsd-src/tests/lib/libc/string/
H A Dt_stresep.c38 #define expect(a) \ macro
58 expect("foo bar"); in ATF_TC_BODY()
59 expect("baz"); in ATF_TC_BODY()
60 expect("bar foo "); in ATF_TC_BODY()
61 expect("bar foo"); in ATF_TC_BODY()
62 expect(" baz"); in ATF_TC_BODY()
63 expect("bar "); in ATF_TC_BODY()
67 expect("aa"); in ATF_TC_BODY()
68 expect("bb"); in ATF_TC_BODY()
69 expect("cc dd-"); in ATF_TC_BODY()
H A Dt_memmem.c65 #define expect(b) \ macro
81 expect(memmem(b2, lb2, p0, lp0) == b2); in ATF_TC_BODY()
82 expect(memmem(b0, lb0, p0, lp0) == b0); in ATF_TC_BODY()
83 expect(memmem(b0, lb0, p1, lp1) == NULL); in ATF_TC_BODY()
84 expect(memmem(b1, lb1, p1, lp1) == NULL); in ATF_TC_BODY()
86 expect(memmem(b2, lb2, p1, lp1) == b2); in ATF_TC_BODY()
87 expect(memmem(b2, lb2, p2, lp2) == (b2 + 4)); in ATF_TC_BODY()
88 expect(memmem(b2, lb2, p3, lp3) == (b2 + 7)); in ATF_TC_BODY()
90 expect(memmem(b2, lb2, p5, lp5) == b2); in ATF_TC_BODY()
91 expect(memmem(b2, lb2, p6, lp6) == (b2 + 9)); in ATF_TC_BODY()
[all …]
/netbsd-src/external/bsd/libarchive/dist/libarchive/test/
H A Dtest_read_format_gtar_sparse.c178 struct contents expect; in verify_archive_file() local
204 expect = *cts++; in verify_archive_file()
210 if(actual.o < expect.o) { in verify_archive_file()
219 } else if (actual.o == expect.o) { in verify_archive_file()
223 assertEqualInt(c, *expect.d); in verify_archive_file()
224 expect.d++; in verify_archive_file()
225 expect.o++; in verify_archive_file()
226 expect.s--; in verify_archive_file()
228 if (expect.s <= 0) in verify_archive_file()
229 expect = *cts++; in verify_archive_file()
[all …]
/netbsd-src/external/mpl/bind/dist/tests/isc/
H A Dregex_test.c47 int expect; in ISC_RUN_TEST_IMPL()
2301 if (((r != 0 && tests[i].expect != -1) || in ISC_RUN_TEST_IMPL()
2302 (r == 0 && tests[i].expect == -1)) && in ISC_RUN_TEST_IMPL()
2306 preg.re_nsub != (unsigned int)tests[i].expect && in ISC_RUN_TEST_IMPL()
2309 tests[i].expect = preg.re_nsub; in ISC_RUN_TEST_IMPL()
2322 if (r != tests[i].expect) { in ISC_RUN_TEST_IMPL()
2324 tests[i].expression, r, tests[i].expect); in ISC_RUN_TEST_IMPL()
2326 assert_int_equal(r, tests[i].expect); in ISC_RUN_TEST_IMPL()
48 int expect; ISC_RUN_TEST_IMPL() member
/netbsd-src/tests/net/route/
H A Dt_change.sh128 cat >./expect <<-EOF
139 $DEBUG && cat ./expect ./output
141 atf_check -s exit:0 diff ./expect ./output
147 cat >./expect <<-EOF
158 $DEBUG && cat ./expect ./output
160 atf_check -s exit:0 diff ./expect ./output
195 cat >./expect <<-EOF
206 $DEBUG && cat ./expect ./output
208 atf_check -s exit:0 diff ./expect ./output
214 cat >./expect <<-EOF
[all …]

12345678910>>...45