/ast/src/cmd/tests/sfio/ |
H A D | twc.c | 40 static char tst[] = "hello-world"; local 48 if (strcmp(tst, str)) 49 terror("swprintf %%ls \"%s\" expected, \"%s\" returned", tst, str); 53 if (strcmp(tst, str)) 54 terror("swprintf %%S \"%s\" expected, \"%s\" returned", tst, str); 63 if (strcmp(tst, str)) 64 terror("swscanf %%ls \"%s\" expected, \"%s\" returned", tst, str); 73 if (strcmp(tst, str)) 74 terror("swscanf %%S \"%s\" expected, \"%s\" returned", tst, str); 81 if (strcmp(tst, st [all...] |
H A D | twchar.c | 40 static char tst[] = "hello-world"; local 48 if (strcmp(tst, str)) 49 terror("swprintf %%ls \"%s\" expected, \"%s\" returned", tst, str); 53 if (strcmp(tst, str)) 54 terror("swprintf %%S \"%s\" expected, \"%s\" returned", tst, str); 62 if (strcmp(tst, str)) 63 terror("swscanf %%ls \"%s\" expected, \"%s\" returned", tst, str); 72 if (strcmp(tst, str)) 73 terror("swscanf %%S \"%s\" expected, \"%s\" returned", tst, str); 79 if (strcmp(tst, st [all...] |
/ast/src/cmd/tests/ |
H A D | base64.c | 36 unsigned char tst[sizeof(dat)]; local 59 t = base64decode(buf, l, NiL, tst, sizeof(tst), NiL); 66 if (memcmp(dat, tst, i)) 82 t = base64decode(buf + l, r, NiL, tst, sizeof(tst), NiL); 89 if (memcmp(dat + i, tst, sizeof(dat) - i)) 95 t = base64decode(buf, l + r, NiL, tst, sizeof(tst), NiL); 102 if (memcmp(dat, tst, sizeo [all...] |
/ast/src/cmd/kshlib/dbm_t/ |
H A D | Makefile | 7 :TEST: dbm_t.tst $$(SHELL)
|
/ast/src/cmd/kshlib/codex/ |
H A D | Makefile | 11 :TEST: codex.tst $$(SHELL)
|
/ast/src/cmd/kshlib/dbm/ |
H A D | Makefile | 9 :TEST: dbm.tst $$(SHELL)
|
/ast/src/cmd/kshlib/dss/ |
H A D | Makefile | 11 :: RELEASE dss.tst
|
/ast/src/cmd/ksh93/tests/ |
H A D | pty.sh | 60 function tst function 83 tst $LINENO <<"!" 106 tst $LINENO <<"!" 129 tst $LINENO <<"!" 152 tst $LINENO <<"!" 168 tst $LINENO <<"!" 184 tst $LINENO <<"!" 198 tst $LINENO <<"!" 227 tst $LINENO <<"!" 239 tst [all...] |
H A D | signal.sh | 85 cat > tst <<'!' 88 # tst control script that calls tst-1, must be run by ksh 89 # tst-1 calls tst-2 90 # tst-2 calls tst-3 91 # tst-3 defaults or handles and discards/propagates SIGINT 99 # x trap, echo on SIGINT, and tst-3 exit 0, tst [all...] |
H A D | math.sh | 112 nameref tst=tests[i] 114 cmd="${tst.cmd//@@TYPE@@/${ty}}" 162 [[ "${out.stdout}" == ${tst.stdoutpattern} ]] || err_exit "${testname}: Expected stdout to match $(printf '%q\n' "${tst.stdoutpattern}"), got $(printf '%q\n' "${out.stdout}")"
|
H A D | locale.sh | 240 do for cmd in "($lc=$locale;cd $dir)" "$lc=$locale;cd $dir;unset $lc" "function tst { typeset $lc=$locale;cd $dir; }; tst" 241 do tst="$lc=C;cd $dir;$cmd;cd $dir;:" 242 $SHELL -c "unset LANG \${!LC_*}; $SHELL -c '$tst'" > out 2>&1 || 243 err_exit "'$tst' failed -- exit status $?" 255 [[ $got == $exp ]] || err_exit "'$tst' failed -- expected '$exp', got '$got'"
|
H A D | arrays2.sh | 197 nameref tst=tests[i] 200 out.stderr="${ { out.stdout="${ ${SHELL} -o nounset -o errexit -c "${tst.cmd}" ; (( out.res=$? )) ; }" ; } 2>&1 ; }" 202 [[ "${out.stdout}" == ${tst.stdoutpattern} ]] || err_exit "${testname}: Expected stdout to match $(printf '%q\n' "${tst.stdoutpattern}"), got $(printf '%q\n' "${out.stdout}")"
|
H A D | heredoc.sh | 285 function tst function 289 tst $line $LINENO <<"!" # this comment affects LINENO #
|
H A D | types.sh | 216 Tst_t tst 218 got=${ tst.f;} 312 nameref tst=b 314 (( num_iterations= int(tst.num_iterations * 1.0) ))
|
/ast/src/lib/libast/sfio/ |
H A D | sfpkrd.c | 230 char tst[2]; local 232 tst[0] = 'a'; tst[1] = 'z'; 238 if(recv_peek_pipe == 1 && write(fds[1], tst, 2) != 2) 242 tst[0] = tst[1] = 0; 243 if(recv_peek_pipe == 1 && (r = recv(fds[0], tst, 1, MSG_PEEK)) != 1) 245 if(recv_peek_pipe == 1 && tst[0] != 'a') 249 tst[0] = tst[ [all...] |
/ast/src/cmd/cs/ |
H A D | Makefile | 25 tst-old tcp :SERVICE: CCFLAGS=-g tst-old.c 27 tst tcp :SERVICE: CCFLAGS=-g tst.c
|
/ast/src/cmd/INIT/ |
H A D | TEST.mk | 14 * $(REGRESS) $(REGRESSFLAGS) xxx.tst 15 * $(REGRESS) $(REGRESSFLAGS) yyy.tst 17 * :TEST: xxx.tst yyy ... 19 * $(REGRESS) $(REGRESSFLAGS) xxx.tst yyy ... 38 if "$(P:N=*.tst)" && ! "$(@:V)" 45 test.$$(T) : $$(B).tst 47 :SAVE: $$(B).tst 123 test.$(B) : $(T) - $(B).tst 124 $(REGRESS) $(REGRESSFLAGS) $(*:N=*.tst) $(*:N!=*.tst) [all...] |
H A D | iffe.sh | 1011 [+tst \aname\a?A user defined test on name. A source block must be 1324 tst= 1684 '') tst= ;; 1685 *) tst="#include \"$arg\"" ;; 1899 tst:*) arg=$1 3325 tst|var);; 3330 tst|var)m=${v} ;; 3337 tst|var)case $m in 3375 *) EXT="$tst 3387 is tst " [all...] |
/ast/src/lib/libcs/ |
H A D | cspath.c | 54 struct stat tst; local 71 if (stat(path, &tst)) 73 if (!subp && S_ISDIR(tst.st_mode) && !streq(path, "/dev/fd")) 89 if (n && tst.st_ino != st->st_ino) 92 if (idevice(&tst) == idevice(st) && ((t = S_ISBLK(tst.st_mode)) || S_ISCHR(tst.st_mode)) && t == blk && (!n || tst.st_dev == st->st_dev && tst.st_ino == st->st_ino))
|
/ast/src/cmd/vczip/tests/ |
H A D | tvcrdb.c | 79 Vcrdtable_t *tbl, *tst; local 144 if(!(tst = vcrdparse(&info, 0, 0, 0)) ) 149 if((n = vcrdfield(tst, k, tbl->fld[k].maxz, buff[k], r)) != r) 151 vcrdattrs(tst, k, VCRD_PAD, 1); 155 for(n = 0, k = 0; k < tst->fldn; ++k) 156 n += tst->fld[k].maxz*N_RECORDS; 157 r = vcrdextract(tst, -1, test, sizeof(test), VCRD_RECORD); 162 vcrdattrs(tst, -1, VCRD_PAD, 0); /* turn off full mode */ 163 r = vcrdextract(tst, -1, test, sizeof(test), VCRD_RECORD);
|
/ast/src/cmd/re/ |
H A D | Makefile | 17 :: README RELEASE ed.tst grep.tst sed.tst
|
/ast/src/cmd/html/ |
H A D | Makefile | 35 :: RELEASE tst test.tr \
|
/ast/src/cmd/nmake/ |
H A D | expand.c | 2343 int tst; local 2391 tst = !!getrule(s); 2394 tst = isoption(s); 2397 tst = (!dobind || getrule(s)) && !(nametype(s, NiL) & (NAME_altstate|NAME_staterule|NAME_statevar)); 2403 tst = NAME_altstate|NAME_staterule|NAME_statevar; 2406 tst = NAME_altstate; 2409 tst = NAME_staterule; 2412 tst = NAME_statevar; 2415 tst = 0; 2418 tst [all...] |
/ast/src/cmd/ksh93/features/ |
H A D | math.sh | 41 eval `iffe $iffeflags -F ast_standards.h -c "$cc" - tst use_ast_standards -lm 'note{' 'math.h needs ast_standards.h' '}end' 'link{' '#include <math.h>' '#ifndef isgreater' '#define isgreater(a,b) 0' '#endif' 'int main() { return isgreater(0.0,1.0); }' '}end'` 45 eval `iffe $iffeflags -c "$cc" - tst use_ieeefp -lm 'note{' 'ieeefp.h plays nice' '}end' 'link{' '#include <math.h>' '#include <ieeefp.h>' 'int main() { return 0; }' '}end'` 229 eval `iffe $iffeflags -c "$cc" - tst it_links_ note{ $F function links }end link{ "static $L $F($ta)$td${body}int main(){return $F($tc)!=0;}" }end sfio.h $iffehdrs $iffelibs 2>&$stderr`
|
/ast/src/cmd/ksh93/include/ |
H A D | shnodes.h | 146 /* tst is same as lst, but with extra field for line number */ 207 struct tstnod tst; member in union:Shnode_u
|