Home
last modified time | relevance | path

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

/illumos-gate/usr/src/test/util-tests/tests/awk/tests/
H A DT.gawk10 TEMP2=$WORKDIR/test.temp.2
32 ' > $TEMP2
33 diff $TEMP1 $TEMP2 || fail 'BAD: T.gawk arrayref'
45 $AWK '{ print $3; $4 = "a"; print }' $TEMP0 > $TEMP2
46 diff $TEMP1 $TEMP2 || fail 'BAD: T.gawk asgext'
58 }' $TEMP0 > $TEMP2
59 diff $TEMP1 $TEMP2 || fail 'BAD: T.gawk backgsub'
80 ' $TEMP0 > $TEMP2
81 diff $TEMP1 $TEMP2 || fail 'BAD: T.gawk backgsub2'
107 ' $TEMP0 > $TEMP2
[all …]
H A DT.clv10 TEMP2=$WORKDIR/test.temp.2
29 0 hello' > $TEMP2
30 diff $TEMP1 $TEMP2 || fail 'BAD: T.clv (stdin only)'
38 1 hello' > $TEMP2
39 diff $TEMP1 $TEMP2 || fail 'BAD: T.clv (x=1 only)'
47 3 hello' > $TEMP2
48 diff $TEMP1 $TEMP2 || fail 'BAD: T.clv (x=3 only)'
57 3 hello' > $TEMP2
58 diff $TEMP1 $TEMP2 || fail 'BAD: T.clv (x=3 only)'
62 $AWK 'BEGIN { getline; print x}' x=4 /dev/null > $TEMP2
[all …]
H A DT.rt10 TEMP2=$WORKDIR/test.temp.2
22 printf 'true\n' > $TEMP2
23 diff $TEMP1 $TEMP2 || fail 'BAD: T.rt RT is set to "" in BEGIN'
27 printf 'true\n' > $TEMP2
28 diff $TEMP1 $TEMP2 || fail 'BAD: T.rt RT is set to "\n"'
32 printf 'true\n' > $TEMP2
33 diff $TEMP1 $TEMP2 || fail 'BAD: T.rt RT is set to ""'
36 printf 'true\n' > $TEMP2
37 diff $TEMP1 $TEMP2 || fail 'BAD: T.rt RT is set to "\n" (getline)'
40 printf 'true\n' > $TEMP2
[all …]
H A DT.argv10 TEMP2=$WORKDIR/test.temp.2
25 echo > $TEMP2
35 echo * > $TEMP2
36 diff $TEMP1 $TEMP2 || fail 'BAD: T.argv (echo1 *)'
48 echo * > $TEMP2
49 diff $TEMP1 $TEMP2 || fail 'BAD: T.argv (echo2 *)'
65 " > $TEMP2
66 diff $TEMP1 $TEMP2 || fail 'BAD: T.argv (argc *)'
74 $AWK '{print L $0}' L=foo <$TEMP0 > $TEMP2
75 diff $TEMP1 $TEMP2 || fail 'BAD: T.argv (L=foo <test.temp.1)'
[all …]
H A DT.split10 TEMP2=$WORKDIR/test.temp.2
35 3 1 4' > $TEMP2
36 diff $TEMP1 $TEMP2 || fail 'BAD: T.split 0.1'
45 echo '- a 3' > $TEMP2
46 diff $TEMP1 $TEMP2 || fail 'BAD: T.split 0.2'
62 4' > $TEMP2
63 diff $TEMP1 $TEMP2 || fail 'BAD: T.split 0.3'
73 echo 'f' > $TEMP2
74 diff $TEMP1 $TEMP2 || fail 'BAD: T.split 0.4'
87 f 5' > $TEMP2
[all …]
H A DT.misc12 TEMP2=$WORKDIR/test.temp.2
39 } ' $TEMP0 > $TEMP2
40 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.misc ghosh RE bug'
46 $AWK 'length($0) > 10' $TEMP0 > $TEMP2
47 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.misc last number bug'
51 echo $TEMP0 | $AWK '{ print "H\x49\x4a\x4BL" }' > $TEMP2
52 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.misc hex string cvt'
55 $AWK 'BEGIN { print "0\061\62x\0645" }' > $TEMP2
56 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.misc oct string cvt'
61 4 1' > $TEMP2
[all …]
H A DT.func9 TEMP2=$WORKDIR/test.temp.2
39 1' > $TEMP2
40 diff $TEMP1 $TEMP2 || fail 'BAD: T.func (function return type)'
47 ' > $TEMP2
48 diff $TEMP1 $TEMP2 || fail 'BAD: T.func (array type)'
56 echo x > $TEMP2
57 diff $TEMP1 $TEMP2 || fail 'BAD: T.func (argument passing)'
74 bar" > $TEMP2
75 diff $TEMP1 $TEMP2 || fail 'BAD: T.func (convert arg to array)'
85 ' > $TEMP2 <<!
[all …]
H A DT.overflow10 TEMP2=$WORKDIR/test.temp.2
26 $AWK '{print}' $TEMP1 > $TEMP2
27 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.overflow record 1'
34 }' > $TEMP2
35 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.overflow abcdef'
46 $AWK '{$1 = " 123456789"; print}' $TEMP1 > $TEMP2
47 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.overflow -mr -mf set $1'
59 500' > $TEMP2
60 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.overflow -mr -mf NF'
79 }' > $TEMP2
[all …]
H A DT.close10 TEMP2=$WORKDIR/test.temp.2
27 $AWK '{ print >"'$TEMP2'"; close("'$TEMP2'") }' $TEMP0
28 diff $TEMP1 $TEMP2 || fail 'BAD: T.close (2)'
33 ' > $TEMP2
34 diff $TEMP1 $TEMP2 || fail 'BAD: T.close (3)'
39 ' > $TEMP2
40 diff $TEMP1 $TEMP2 || fail 'BAD: T.close (4)'
45 ' > $TEMP2
46 diff $TEMP1 $TEMP2 || fail 'BAD: T.close (5)'
51 ' > $TEMP2
[all …]
H A DT.builtin10 TEMP2=$WORKDIR/test.temp.2
22 echo 2 > $TEMP2
23 diff $TEMP1 $TEMP2 || fail 'BAD: T.builtin (index/substr)'
30 echo '3.14159 0.000 0.000 3.14159 10.000' > $TEMP2
31 diff $TEMP1 $TEMP2 || fail 'BAD: T.builtin (sin/cos)'
39 print rand() >"'$TEMP2'"
41 diff $TEMP1 $TEMP2 || fail 'BAD: T.builtin (rand)'
45 echo 'hello, world!|HELLO, WORLD!|hello, WORLD!' > $TEMP2
46 diff $TEMP1 $TEMP2 || fail 'BAD: T.builtin (toupper/tolower)'
79 $AWK '{ n = split($0, x); print length(x) }' < $TEMP0 > $TEMP2
[all …]
H A DT.main10 TEMP2=$WORKDIR/test.temp.2
32 echo '3' > $TEMP2
33 diff $TEMP1 $TEMP2 || fail 'bad: awk -F::'
37 echo '3' > $TEMP2
38 diff $TEMP1 $TEMP2 || fail 'bad: awk -F ::'
42 echo '3' > $TEMP2
43 diff $TEMP1 $TEMP2 || fail 'bad: awk -F (tab)'
47 echo '3' > $TEMP2
48 diff $TEMP1 $TEMP2 || fail 'bad: awk -F (tab 2)'
52 echo '3' > $TEMP2
[all …]
H A DT.getline9 TEMP2=$WORKDIR/test.temp.2
27 ' > $TEMP2
28 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.getline (bare getline)'
37 ' > $TEMP2
38 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.getline (getline xxx)'
95 echo '-1' > $TEMP2
96 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.getline (non-existent file)'
107 }' > $TEMP2
108 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.getline bad $0 type in cmd|getline'
112 echo 'new stuff' > $TEMP2
[all …]
H A DT.errmsg14 TEMP2=$WORKDIR/test.temp.2
232 b' $TEMP0 > $TEMP1 2> $TEMP2
233 grep 'newline in string' $TEMP2 >/dev/null || fail 'BAD: T.errmsg newline in string'
235 $AWK -safe 'BEGIN{"date" | getline}' > $TEMP0 2> $TEMP2
236 grep 'cmd | getline is unsafe' $TEMP2 >/dev/null || fail 'BAD: T.errmsg cmd|getline unsafe'
238 $AWK -safe 'BEGIN{print >"'$TEMP0'"}' > $TEMP0 2> $TEMP2
239 grep 'print > is unsafe' $TEMP2 >/dev/null || fail 'BAD: T.errmsg print > unsafe'
241 $AWK -safe 'BEGIN{print >> "'$TEMP0'"}' > $TEMP0 2> $TEMP2
242 grep 'print >> is unsafe' $TEMP2 >/dev/null || fail 'BAD: T.errmsg print >> unsafe'
244 $AWK -safe 'BEGIN{print | "'$TEMP0'"}' > $TEMP0 2> $TEMP2
[all …]
H A DT.-f-f19 TEMP2=$WORKDIR/test.temp.2
28 echo 'END { print "end" }' > $TEMP2
29 echo xxx | $AWK -f $TEMP1 -f $TEMP2 > $TEMP3
34 $AWK '/a/' /etc/passwd > $TEMP2
35 diff $TEMP1 $TEMP2 || fail 'BAD: T.-f-f -f -'
39 echo '/./ {' > $TEMP2
42 $AWK -f $TEMP2 -f $TEMP3 -f $TEMP4 /etc/passwd > $TEMP5
46 echo '/./ {' > $TEMP2
53 $AWK -f $TEMP2 -f $TEMP3 -f $TEMP4 /etc/passwd > $TEMP5 2> $TEMP6
H A DT.redir9 TEMP2=$WORKDIR/test.temp.2
42 print i | "sort" }' > $TEMP2
43 diff $TEMP1 $TEMP2 || fail 'BAD: T.redir (buffering)'
45 rm -f $TEMP1 $TEMP2
46 $AWK '{ print >"/dev/stderr" }' /etc/passwd 1> $TEMP1 2> $TEMP2
47 diff $TEMP2 /etc/passwd || fail 'BAD: T.redir (print >"/dev/stderr")'
50 rm -f $TEMP1 $TEMP2
51 $AWK '{ print >"/dev/stdout" }' /etc/passwd 1> $TEMP1 2> $TEMP2
53 diff $TEMP2 /dev/null || fail 'BAD: T.redir (print >"/dev/stderr")'
H A DT.latin110 TEMP2=$WORKDIR/test.temp.2
40 $AWK -f $TEMP1 $TEMP1 > $TEMP2
41 diff $TEMP1 $TEMP2 || fail 'BAD: T.latin1 5'
44 $AWK -f $TEMP1 $TEMP1 > $TEMP2
45 diff $TEMP1 $TEMP2 || fail 'BAD: T.latin1 6'
54 $AWK '/[��]/' $TEMP0 > $TEMP2
55 diff $TEMP1 $TEMP2 || fail 'BAD: T.latin1 7'
H A DT.lilly10 TEMP2=$WORKDIR/test.temp.2
41 rm -f $TEMP2
44 print $0 >"'$TEMP2'"
46 system(ENVIRON["AWK"] " -f '$TEMP2' <\"'$TEMP0'\" ")
47 close "'$TEMP2'"
H A DT.system9 TEMP2=$WORKDIR/test.temp.2
20 rm -f $TEMP1 $TEMP2
29 4" > $TEMP2
30 diff $TEMP1 $TEMP2 || fail 'BAD: T.system (1)'
H A DT.recache9 TEMP2=$WORKDIR/test.temp.2
47 ' > $TEMP2
48 diff $TEMP1 $TEMP2 || fail 'BAD: T.recache'
H A DT.exprconv9 TEMP2=$WORKDIR/test.temp.2
35 1' > $TEMP2
36 cmp $TEMP1 $TEMP2 || fail 'BAD: T.exprconv (1 > 0, etc.)'
H A DT.delete10 TEMP2=$WORKDIR/test.temp.2
28 0 0 0' > $TEMP2
37 diff $TEMP1 $TEMP2 || fail 'BAD: T.delete (1)'
H A DT.expr9 TEMP2=$WORKDIR/test.temp.2
40 output = "> '$TEMP2';"
42 output = sprintf("printf %%s\\\\n '"'"'%s'"'"' > '$TEMP2'; ", $NF)
43 run = sprintf("diff '$TEMP1' '$TEMP2'")
H A DT.chem11 TEMP2=$WORKDIR/test.temp.2
/illumos-gate/usr/src/lib/libc/sparc/crt/
H A Dstret.S37 #define TEMP2 %o5 macro
67 sethi %hi(UNIMP),TEMP2
68 or TEMP,TEMP2,TEMP2
69 cmp TEMP2,MEMWORD
/illumos-gate/usr/src/test/util-tests/tests/awk/gnu/
H A Dmessages.sh9 TEMP2=$WORKDIR/test.temp.2
20 }' > $TEMP2 2> $TEMP3
23 && diff out2.ok $TEMP2 \
25 && rm -f $TEMP1 $TEMP2 $TEMP3