Home
last modified time | relevance | path

Searched refs:check (Results 1 – 25 of 1636) sorted by relevance

12345678910>>...66

/freebsd/contrib/netbsd-tests/bin/sh/
H A Dt_fsplit.sh45 check() function
93 check 'for f in $x; do echo x${f}y; done' ''
104 check 'set -- ${x-a b c}; echo $#' 3
106 check 'set -- ${x-"a b" c}; echo $#' 2
107 check 'set -- ${x-a "b c"}; echo $#' 2
108 check 'set -- ${x-"a b c"}; echo $#' 1
110 check "set -- \${x-'a b' c}; echo \$#" 2
111 check "set -- \${x-a 'b c'}; echo \$#" 2
112 check "set -- \${x-'a b c'}; echo \$#" 1
114 check 'set -- ${x-a\ b c}; echo $#' 2
[all …]
H A Dt_here.sh41 check() function
128 check 'x=`cat <<EOF'$nl'text'${nl}EOF$nl'`; echo $x' 'text' 0
129 check 'x=`cat <<\EOF'$nl'text'${nl}EOF$nl'`; echo $x' 'text' 0
131 check "y=${y};"'x=`cat <<EOF'$nl'te${y}t'${nl}EOF$nl'`; echo $x' \
133 check "y=${y};"'x=`cat <<\EOF'$nl'te${y}t'${nl}EOF$nl'`; echo $x' \
135 check "y=${y};"'x=`cat <<"EOF"'$nl'te${y}t'${nl}EOF$nl'`; echo $x' \
137 check "y=${y};"'x=`cat <<'"'EOF'"$nl'te${y}t'${nl}EOF$nl'`; echo $x' \
141 check "cat <<EOF${nl}te'xt${nl}EOF$nl" "te'xt" 0
142 check "cat <<\EOF${nl}te'xt${nl}EOF$nl" "te'xt" 0
143 check "cat <<'EOF'${nl}te'xt${nl}EOF$nl" "te'xt" 0
[all …]
/freebsd/tools/regression/iscsi/
H A Discsi-test.sh114 check() { function
136 check iscontrol -dt $TARGETIP > $TMPDIR/discovered
140 check cmp $TMPDIR/expected $TMPDIR/discovered
146 check iscsictl -Ad $TARGETIP
150 check cmp $TMPDIR/expected $TMPDIR/discovered
152 check iscsictl -Ra
164 check iscsiadm -m discovery -t sendtargets -p $TARGETIP > $TMPDIR/discovered
168 check cmp $TMPDIR/expected $TMPDIR/discovered
174 check iscsiadm add discovery-address $TARGETIP
175 check iscsiadm modify discovery --sendtargets enable
[all …]
/freebsd/bin/sh/tests/expansion/
H A Darith2.04 check() {
13 check "v=2" 2
14 check "v" 2
15 check "$(($v))" 2
16 check "v+=1" 3
17 check "v" 3
20 check "4611686018427387904" 4611686018427387904
21 check "0x4000000000000000" 4611686018427387904
22 check "0400000000000000000000" 4611686018427387904
23 check "0x4Ab0000000000000" 5381801554707742720
[all …]
H A Dpathname1.08 check() {
28 check '' ''
29 check 'testdir/b' 'testdir/b'
30 check 'testdir/c' 'testdir/c'
31 check '\*' '*'
32 check '\?' '?'
33 check '*' 'testdir testdir2 testf'
34 check '*""' 'testdir testdir2 testf'
35 check '""*' 'testdir testdir2 testf'
36 check '*/' 'testdir/ testdir2/'
[all …]
H A Dcmdsubst1.04 check() {
11 check '"$(echo abcde)" = "abcde"'
12 check '"$(echo abcde; :)" = "abcde"'
14 check '"$(printf abcde)" = "abcde"'
15 check '"$(printf abcde; :)" = "abcde"'
18 check '-n "$(umask)"'
19 check '-n "$(umask; :)"'
20 check '-n "$(umask 2>&1)"'
21 check '-n "$(umask 2>&1; :)"'
24 check '-n "$(times)"'
[all …]
H A Darith10.04 check() {
13 check "0 && 0 / 0" 0
14 check "1 || 0 / 0" 1
15 check "0 && (ro = 2)" 0
16 check "ro" 4
17 check "1 || (ro = -1)" 1
18 check "ro" 4
19 check "0 && (rw += 1)" 0
20 check "rw" 1
21 check "1 || (rw += 1)" 1
[all …]
H A Dcmdsubst2.04 check() {
11 check '`echo /et[c]/` = "/etc/"'
12 check '`printf /var/empty%s /et[c]/` = "/var/empty/etc/"'
13 check '"`echo /et[c]/`" = "/etc/"'
14 check '`echo "/et[c]/"` = "/etc/"'
15 check '`printf /var/empty%s "/et[c]/"` = "/var/empty/et[c]/"'
16 check '`printf /var/empty/%s \"/et[c]/\"` = "/var/empty/\"/et[c]/\""'
17 check '"`echo \"/et[c]/\"`" = "/et[c]/"'
18 check '"`echo "/et[c]/"`" = "/et[c]/"'
19 check '`echo $$` = $$'
[all …]
H A Darith1.04 check() {
11 check "0&&0" 0
12 check "1&&0" 0
13 check "0&&1" 0
14 check "1&&1" 1
15 check "2&&2" 1
16 check "1&&2" 1
17 check "1<<40&&1<<40" 1
18 check "1<<40&&4" 1
20 check "0||0" 0
[all …]
/freebsd/usr.bin/bmake/tests/execution/joberr/
H A Dexpected.stdout.12 *** [do-check-joberr] Error code 1
4 *** [do-check-joberr] Error code 1
6 *** [do-check-joberr] Error code 1
8 *** [do-check-joberr] Error code 1
10 *** [do-check-joberr] Error code 1
12 *** [do-check-joberr] Error code 1
14 *** [do-check-joberr] Error code 1
16 *** [do-check-joberr] Error code 1
18 *** [do-check-joberr] Error code 1
20 *** [do-check-joberr] Error code 1
[all …]
/freebsd/crypto/krb5/src/util/support/
H A Dt_json.c82 check(int pred, const char *str) in check() function
105 check(k5_json_array_length(a) == 3, "array length"); in test_array()
107 check(k5_json_get_tid(v) == K5_JSON_TID_NULL, "array[2] tid"); in test_array()
109 check(k5_json_get_tid(v) == K5_JSON_TID_NUMBER, "array[1] tid"); in test_array()
110 check(k5_json_number_value(v) == 2, "array[1] value"); in test_array()
112 check(k5_json_get_tid(v) == K5_JSON_TID_STRING, "array[0] tid"); in test_array()
113 check(strcmp(k5_json_string_utf8(v), "abc") == 0, "array[0] value"); in test_array()
122 check(k5_json_get_tid(v) == K5_JSON_TID_NULL, "fmt array[0] tid"); in test_array()
124 check(k5_json_get_tid(v) == K5_JSON_TID_NULL, "fmt array[1] tid"); in test_array()
126 check(k5_json_get_tid(v) == K5_JSON_TID_BOOL, "fmt array[2] tid"); in test_array()
[all …]
/freebsd/contrib/ntp/libjsmn/
H A Djsmn_test.c15 #define check(cond) do { if (!(cond)) fail(); } while (0) macro
53 check(r >= 0); in test_empty()
54 check(t[0].type == JSMN_OBJECT); in test_empty()
55 check(t[0].start == 0 && t[0].end == 2); in test_empty()
60 check(r >= 0); in test_empty()
61 check(t[0].type == JSMN_ARRAY); in test_empty()
62 check(t[0].start == 0 && t[0].end == 2); in test_empty()
67 check(r >= 0); in test_empty()
68 check(t[0].type == JSMN_OBJECT && t[0].start == 0 && t[0].end == 8); in test_empty()
69 check(t[1].type == JSMN_STRING && t[1].start == 2 && t[1].end == 3); in test_empty()
[all …]
/freebsd/crypto/krb5/src/lib/krb5/krb/
H A Dt_copy_context.c41 check(int cond) in check() function
50 check((str1 == NULL) == (str2 == NULL)); in compare_string()
52 check(strcmp(str1, str2) == 0); in compare_string()
58 check((list1 == NULL) == (list2 == NULL)); in compare_etypes()
63 check(*list1 == *list2); in compare_etypes()
74 check(c->os_context.time_offset == r->os_context.time_offset); in check_context()
75 check(c->os_context.usec_offset == r->os_context.usec_offset); in check_context()
76 check(c->os_context.os_flags == r->os_context.os_flags); in check_context()
78 check(c->clockskew == r->clockskew); in check_context()
79 check(c->kdc_default_options == r->kdc_default_options); in check_context()
[all …]
H A Dwalktree-tests10 check='echo Running walk_rtree test $1 $2 ... ; ans=`./t_walk_rtree $1 $2 | sed -e s,krbtgt/,,g`; a…
15 eval $check
18 eval $check
21 eval $check
24 eval $check
27 eval $check
30 eval $check
33 eval $check
36 eval $check
39 eval $check
[all …]
H A Dt_ser.c39 check(krb5_error_code code) in check() function
64 check(k5_size_context(ctx, &elen)); in ser_context()
69 check(k5_externalize_context(ctx, &bp, &blen)); in ser_context()
74 check(k5_internalize_context(&ctx2, &bp, &blen)); in ser_context()
77 check(k5_size_context(ctx2, &elen2)); in ser_context()
83 check(k5_externalize_context(ctx2, &bp, &blen)); in ser_context()
99 check(k5_size_auth_context(actx, &elen)); in ser_auth_context()
104 check(k5_externalize_auth_context(actx, &bp, &blen)); in ser_auth_context()
109 check(k5_internalize_auth_context(&actx2, &bp, &blen)); in ser_auth_context()
112 check(k5_size_auth_context(actx2, &elen2)); in ser_auth_context()
[all …]
/freebsd/crypto/krb5/src/util/profile/
H A Dt_profile.c44 check(long code) in check() function
84 check(profile_init_path("test2.ini", &p)); in test_iterate()
87 check(profile_iterator_create(p, names, 0, &iter)); in test_iterate()
89 check(profile_iterator(&iter, &name, &value)); in test_iterate()
103 check(profile_iterator_create(p, names, 0, &iter)); in test_iterate()
105 check(profile_iterator(&iter, NULL, &value)); in test_iterate()
108 check(profile_update_relation(p, names, value, NULL)); in test_iterate()
118 check(profile_init_path("test3.ini", &p)); in test_iterate()
119 check(profile_iterator_create(p, names, 0, &iter)); in test_iterate()
120 check(profile_iterator(&iter, &name, &value)); in test_iterate()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCheckerDocumentation.cpp39 check::ASTCodeBody,
40 check::ASTDecl<FunctionDecl>,
41 check::BeginFunction,
42 check::Bind,
43 check::BranchCondition,
44 check::ConstPointerEscape,
45 check::DeadSymbols,
46 check::EndAnalysis,
47 check::EndFunction,
48 check::EndOfTranslationUnit,
[all …]
H A DAnalysisOrderChecker.cpp32 check::PreStmt<CastExpr>, check::PostStmt<CastExpr>,
33 check::PreStmt<ArraySubscriptExpr>,
34 check::PostStmt<ArraySubscriptExpr>, check::PreStmt<CXXNewExpr>,
35 check::PostStmt<CXXNewExpr>, check::PreStmt<CXXDeleteExpr>,
36 check::PostStmt<CXXDeleteExpr>, check::PreStmt<CXXConstructExpr>,
37 check::PostStmt<CXXConstructExpr>, check::PreStmt<OffsetOfExpr>,
38 check::PostStmt<OffsetOfExpr>, check::PreCall, check::PostCall,
39 check::EndFunction, check::EndAnalysis, check::NewAllocator,
40 check::Bind, check::PointerEscape, check::RegionChanges,
41 check::LiveSymbols, eval::Call> {
/freebsd/bin/sh/tests/builtins/
H A Dbuiltin1.04 check() {
14 check '"$(builtin pwd)" = "$(pwd)"'
15 check '-z "$(builtin :)"'
16 check '-z "$(builtin true)"'
17 check '-z "$( (builtin nosuchtool) 2>/dev/null)"'
18 check '-z "$(builtin nosuchtool 2>/dev/null)"'
19 check '-z "$(builtin nosuchtool 2>/dev/null; :)"'
20 check '-z "$( (builtin ls) 2>/dev/null)"'
21 check '-z "$(builtin ls 2>/dev/null)"'
22 check '-z "$(builtin ls 2>/dev/null; :)"'
[all …]
H A Dlocale1.05 check() {
23 check '$ok -eq 1' $LINENO
30 check '$ok -eq 1' $LINENO
36 check '$ok -eq 1' $LINENO
42 check '$ok -eq 1' $LINENO
48 check '$ok -eq 1' $LINENO
55 check '$ok -eq 1' $LINENO
61 check '$ok -eq 1' $LINENO
67 check '$ok -eq 1' $LINENO
73 check '$ok -eq 1' $LINENO
[all …]
/freebsd/bin/sh/tests/parser/
H A Dheredoc1.04 check() {
11 check '"$(cat <<EOF
16 check '"$(cat <<EOF
22 check '"$(cat <<EOF
27 check '"$(cat <<EOF
34 check '"$(cat <<EOF
39 check '"$(cat <<EOF
44 check '"$(cat <<EOF
49 check '"$(cat <<\EOF
54 check '"$(cat <<\EOF
[all …]
/freebsd/crypto/krb5/src/lib/krb5/ccache/
H A Dt_cccol.c43 check(krb5_error_code code) in check() function
65 check(krb5_cccol_cursor_new(ctx, &cursor)); in get_collection_names()
67 check(krb5_cccol_cursor_next(ctx, cursor, &cache)); in get_collection_names()
70 check(krb5_cc_get_full_name(ctx, cache, &name)); in get_collection_names()
141 check(krb5_cc_get_full_name(ctx, cache, &name)); in check_name()
153 check(krb5_cc_resolve(ctx, collection_name, &cache)); in check_primary_name()
166 check(krb5_cc_resolve(ctx, name, &cache)); in check_princ()
168 check(krb5_cc_get_principal(ctx, cache, &princ)); in check_princ()
185 check(krb5_cc_cache_match(ctx, princ, &cache)); in check_match()
213 check(krb5_init_context(&ctx)); in main()
[all …]
/freebsd/usr.bin/bmake/tests/execution/ellipsis/
H A Dexpected.stdout.11 before do-check-ellipsis-1
2 before do-check-ellipsis-2
3 after do-check-ellipsis-1
4 after do-check-ellipsis-2
5 before do-check-ellipsis-1
6 before do-check-ellipsis-2
7 after do-check-ellipsis-1
8 after do-check-ellipsis-2
9 before do-check-ellipsis-1
10 before do-check-ellipsis-2
[all …]
/freebsd/contrib/nvi/catalog/
H A DMakefile32 CHK= dutch.check english.check french.check german.check \
33 polish.check ru_RU.KOI8-R.check spanish.check swedish.check \
34 tr_TR.ISO8859-9.check tr_TR.UTF-8.check uk_UA.KOI8-U.check \
35 zh_CN.GB2312.check
36 check: ${CHK} target
39 f=`basename $@ .check`; \
77 rm -f dump dump.o ${CAT} english.base *.check __ck1 __ck2
/freebsd/contrib/xz/src/liblzma/check/
H A Dcheck.h99 extern void lzma_check_init(lzma_check_state *check, lzma_check type);
102 extern void lzma_check_update(lzma_check_state *check, lzma_check type,
106 extern void lzma_check_finish(lzma_check_state *check, lzma_check type);
112 extern void lzma_sha256_init(lzma_check_state *check);
116 const uint8_t *buf, size_t size, lzma_check_state *check);
119 extern void lzma_sha256_finish(lzma_check_state *check);
125 lzma_sha256_init(lzma_check_state *check) in lzma_sha256_init() argument
127 LZMA_SHA256FUNC(Init)(&check->state.sha256); in lzma_sha256_init()
132 lzma_sha256_update(const uint8_t *buf, size_t size, lzma_check_state *check) in lzma_sha256_update() argument
138 LZMA_SHA256FUNC(Update)(&check->state.sha256, buf, UINT32_MAX); in lzma_sha256_update()
[all …]

12345678910>>...66