Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/test/util-tests/tests/awk/tests/
H A DT.gawk9 TEMP1=$WORKDIR/test.temp.1
24 1' > $TEMP1
33 diff $TEMP1 $TEMP2 || fail 'BAD: T.gawk arrayref'
44 1 2 3 a' > $TEMP1
46 diff $TEMP1 $TEMP2 || fail 'BAD: T.gawk asgext'
54 xAAy' > $TEMP1
59 diff $TEMP1 $TEMP2 || fail 'BAD: T.gawk backgsub'
74 x\\\\y' > $TEMP1
81 diff $TEMP1 $TEMP2 || fail 'BAD: T.gawk backgsub2'
98 x\&\&x' > $TEMP1
[all …]
H A DT.clv9 TEMP1=$WORKDIR/test.temp.1
27 ' > $TEMP1
30 diff $TEMP1 $TEMP2 || fail 'BAD: T.clv (stdin only)'
36 ' x=1 > $TEMP1
39 diff $TEMP1 $TEMP2 || fail 'BAD: T.clv (x=1 only)'
45 ' x=1 x=2 x=3 > $TEMP1
48 diff $TEMP1 $TEMP2 || fail 'BAD: T.clv (x=3 only)'
55 ' x=1 x=2 x=3 $TEMP0 > $TEMP1
58 diff $TEMP1 $TEMP2 || fail 'BAD: T.clv (x=3 only)'
61 echo 4 > $TEMP1
[all …]
H A DT.rt9 TEMP1=$WORKDIR/test.temp.1
21 $AWK 'BEGIN { print (RT == "" ? "true" : "false"); }' > $TEMP1
23 diff $TEMP1 $TEMP2 || fail 'BAD: T.rt RT is set to "" in BEGIN'
26 $AWK '{ print (RT == "\n" ? "true" : "false"); }' $TEMP0 > $TEMP1
28 diff $TEMP1 $TEMP2 || fail 'BAD: T.rt RT is set to "\n"'
31 $AWK '{ print (RT == "" ? "true" : "false"); }' $TEMP0 > $TEMP1
33 diff $TEMP1 $TEMP2 || fail 'BAD: T.rt RT is set to ""'
35 $AWK 'BEGIN { "echo hello" | getline; print (RT == "\n" ? "true" : "false"); }' > $TEMP1
37 diff $TEMP1 $TEMP2 || fail 'BAD: T.rt RT is set to "\n" (getline)'
39 $AWK 'BEGIN { "printf a" | getline; print (RT == "" ? "true" : "false"); }' > $TEMP1
[all …]
H A DT.getline8 TEMP1=$WORKDIR/test.temp.1
20 who > $TEMP1
21 cat $TEMP1 | $AWK '
28 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.getline (bare getline)'
30 who > $TEMP1
31 cat $TEMP1 | $AWK '
38 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.getline (getline xxx)'
46 ' > $TEMP1
47 cmp -s /etc/passwd $TEMP1 || fail 'BAD: T.getline (getline <file)'
55 ' > $TEMP1
[all …]
H A DT.argv9 TEMP1=$WORKDIR/test.temp.1
24 echo > $TEMP1
34 }' * > $TEMP1
36 diff $TEMP1 $TEMP2 || fail 'BAD: T.argv (echo1 *)'
47 }' * > $TEMP1
49 diff $TEMP1 $TEMP2 || fail 'BAD: T.argv (echo2 *)'
59 ' a bc def gh > $TEMP1
66 diff $TEMP1 $TEMP2 || fail 'BAD: T.argv (argc *)'
73 foo3' > $TEMP1
75 diff $TEMP1 $TEMP2 || fail 'BAD: T.argv (L=foo <test.temp.1)'
[all …]
H A DT.func8 TEMP1=$WORKDIR/test.temp.1
34 ' > $TEMP1
40 diff $TEMP1 $TEMP2 || fail 'BAD: T.func (function return type)'
42 echo 'data: data' > $TEMP1
48 diff $TEMP1 $TEMP2 || fail 'BAD: T.func (array type)'
55 ' /dev/null > $TEMP1
57 diff $TEMP1 $TEMP2 || fail 'BAD: T.func (argument passing)'
72 ' > $TEMP1
75 diff $TEMP1 $TEMP2 || fail 'BAD: T.func (convert arg to array)'
97 cat > $TEMP1 <<!
[all …]
H A DT.split9 TEMP1=$WORKDIR/test.temp.1
33 }' > $TEMP1
36 diff $TEMP1 $TEMP2 || fail 'BAD: T.split 0.1'
44 }' > $TEMP1
46 diff $TEMP1 $TEMP2 || fail 'BAD: T.split 0.2'
57 }' > $TEMP1
63 diff $TEMP1 $TEMP2 || fail 'BAD: T.split 0.3'
72 }' $TEMP0 > $TEMP1
74 diff $TEMP1 $TEMP2 || fail 'BAD: T.split 0.4'
85 }' $TEMP0 > $TEMP1
[all …]
H A DT.misc11 TEMP1=$WORKDIR/test.temp.1
33 succeeded' > $TEMP1
40 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.misc ghosh RE bug'
45 echo '12345678901' > $TEMP1
47 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.misc last number bug'
50 echo HIJKL > $TEMP1
52 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.misc hex string cvt'
54 echo 012x45 > $TEMP1
56 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.misc oct string cvt'
59 echo 3 5 | $AWK '{ i = 1; print $i++ ; print $1, i }' > $TEMP1
[all …]
H A DT.redir8 TEMP1=$WORKDIR/test.temp.1
20 $AWK '{ print >"'$TEMP1'" }' /etc/passwd
21 diff $TEMP1 /etc/passwd || fail 'BAD: T.redir (print >"test.temp.1")'
23 rm -f $TEMP1
24 $AWK '{ print >>"'$TEMP1'" }' /etc/passwd
25 diff $TEMP1 /etc/passwd || fail 'BAD: T.redir (print >>"test.temp.1")'
27 rm -f $TEMP1
28 $AWK 'NR%2 == 1 { print >>"'$TEMP1'" }
29 NR%2 == 0 { print >"'$TEMP1'" }' /etc/passwd
30 diff $TEMP1 /etc/passwd || fail 'BAD: T.redir (print > and >>"test.temp.1")'
[all …]
H A DT.latin19 TEMP1=$WORKDIR/test.temp.1
23 ' latin1 > $TEMP1
25 diff latin1 $TEMP1 || fail 'BAD: T.latin1 1'
28 $AWK '/[�-�]/' latin1 > $TEMP1
29 diff $TEMP0 $TEMP1 || fail 'BAD: T.latin1 2'
32 $AWK '{ gsub(/�/, "�"); print }' latin1 > $TEMP1
33 diff $TEMP0 $TEMP1 || fail 'BAD: T.latin1 3'
36 $AWK '{ gsub(/[^�-�]/, ""); print } ' latin1 > $TEMP1
37 diff $TEMP0 $TEMP1 || fail 'BAD: T.latin1 4'
39 echo '/�/' > $TEMP1
[all …]
H A DT.overflow9 TEMP1=$WORKDIR/test.temp.1
25 }' > $TEMP1
26 $AWK '{print}' $TEMP1 > $TEMP2
27 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.overflow record 1'
29 echo 'abcdefghijklmnopqsrtuvwxyz' > $TEMP1
35 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.overflow abcdef'
45 } ' > $TEMP1
46 $AWK '{$1 = " 123456789"; print}' $TEMP1 > $TEMP2
47 cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.overflow -mr -mf set $1'
57 $AWK '{print NF}' $TEMP0 > $TEMP1
[all …]
H A DT.nextfile9 TEMP1=$WORKDIR/test.temp.1
29 ' T.* > $TEMP1
31 diff $TEMP0 $TEMP1 || fail 'BAD: T.nextfile 1'
40 ' T.* > $TEMP1
42 diff $TEMP0 $TEMP1 || fail 'BAD: T.nextfile 1f'
52 ' T.* > $TEMP1
54 diff $TEMP0 $TEMP1 || fail 'BAD: T.nextfile 1w'
65 ' T.* > $TEMP1
67 diff $TEMP0 $TEMP1 || fail 'BAD: T.nextfile 1d'
80 ' T.* > $TEMP1
[all …]
H A DT.flags8 TEMP1=$WORKDIR/test.temp.1
19 $AWK > $TEMP1 2>&1
20 grep '[Uu]sage' $TEMP1 >/dev/null || fail 'T.flags: bad usage'
22 $AWK -f > $TEMP1 2>&1
23 grep 'no program' $TEMP1 >/dev/null || fail 'T.flags: bad no program'
25 $AWK -f glop/glop > $TEMP1 2>&1
26 grep 'can.t open' $TEMP1 >/dev/null || fail 'T.flags: bad can.t open program'
28 $AWK -fglop/glop > $TEMP1 2>&1
29 grep 'can.t open' $TEMP1 >/dev/null || fail 'T.flags: bad can.t open program 2'
31 $AWK -zz 'BEGIN{}' > $TEMP1 2>&1
[all …]
H A DT.builtin9 TEMP1=$WORKDIR/test.temp.1
21 $AWK 'BEGIN { print index(123, substr(123, 2)) }' > $TEMP1
23 diff $TEMP1 $TEMP2 || fail 'BAD: T.builtin (index/substr)'
29 }' > $TEMP1
31 diff $TEMP1 $TEMP2 || fail 'BAD: T.builtin (sin/cos)'
36 print rand() >"'$TEMP1'"
41 diff $TEMP1 $TEMP2 || fail 'BAD: T.builtin (rand)'
44 $AWK '{ printf("%s|%s|%s\n", tolower($0), toupper($0), $0)}' > $TEMP1
46 diff $TEMP1 $TEMP2 || fail 'BAD: T.builtin (toupper/tolower)'
70 }' 2> $TEMP1
[all …]
H A DT.main9 TEMP1=$WORKDIR/test.temp.1
27 echo hello | $AWK -d '{print}' > $TEMP1
31 $AWK -F:: '{print NF}' $TEMP0 > $TEMP1
33 diff $TEMP1 $TEMP2 || fail 'bad: awk -F::'
36 $AWK -F :: '{print NF}' $TEMP0 > $TEMP1
38 diff $TEMP1 $TEMP2 || fail 'bad: awk -F ::'
41 $AWK -F t '{print NF}' $TEMP0 > $TEMP1
43 diff $TEMP1 $TEMP2 || fail 'bad: awk -F (tab)'
46 $AWK -Ft '{print NF}' $TEMP0 > $TEMP1
48 diff $TEMP1 $TEMP2 || fail 'bad: awk -F (tab 2)'
[all …]
H A DT.close9 TEMP1=$WORKDIR/test.temp.1
26 tail -1 $TEMP0 > $TEMP1
28 diff $TEMP1 $TEMP2 || fail 'BAD: T.close (2)'
30 echo 0 > $TEMP1
34 diff $TEMP1 $TEMP2 || fail 'BAD: T.close (3)'
36 echo -1 > $TEMP1
40 diff $TEMP1 $TEMP2 || fail 'BAD: T.close (4)'
42 echo 0 > $TEMP1
46 diff $TEMP1 $TEMP2 || fail 'BAD: T.close (5)'
48 echo 0 > $TEMP1
[all …]
H A DT.-f-f18 TEMP1=$WORKDIR/test.temp.1
27 echo 'BEGIN { print "begin" }' > $TEMP1
29 echo xxx | $AWK -f $TEMP1 -f $TEMP2 > $TEMP3
33 echo '/a/' | $AWK -f - /etc/passwd > $TEMP1
35 diff $TEMP1 $TEMP2 || fail 'BAD: T.-f-f -f -'
38 cp /etc/passwd $TEMP1
43 diff $TEMP1 $TEMP5 || fail 'BAD: T.-f-f 3 files'
H A DT.system8 TEMP1=$WORKDIR/test.temp.1
20 rm -f $TEMP1 $TEMP2
26 ' > $TEMP1
27 echo $? >> $TEMP1
30 diff $TEMP1 $TEMP2 || fail 'BAD: T.system (1)'
H A DT.recache8 TEMP1=$WORKDIR/test.temp.1
21 echo b > $TEMP1
48 diff $TEMP1 $TEMP2 || fail 'BAD: T.recache'
H A DT.exprconv8 TEMP1=$WORKDIR/test.temp.1
29 }' > $TEMP1
36 cmp $TEMP1 $TEMP2 || fail 'BAD: T.exprconv (1 > 0, etc.)'
H A DT.delete9 TEMP1=$WORKDIR/test.temp.1
36 }' $TEMP0 > $TEMP1
37 diff $TEMP1 $TEMP2 || fail 'BAD: T.delete (1)'
H A DT.chem10 TEMP1=$WORKDIR/test.temp.1
24 $AWK -f chem.awk $i > $TEMP1
25 diff $TEMP1 ${i/.p/.ok} || fail "BAD: T.chem on $i"
H A DT.lilly9 TEMP1=$WORKDIR/test.temp.1
48 }' < lilly.progs > $TEMP1 2>&1
52 diff $TEMP1 lilly.ok > $WORKDIR/lilly.diff || fail 'bad: T.lilly is different'
H A DT.expr8 TEMP1=$WORKDIR/test.temp.1
35 test = sprintf("printf %%s\\\\n '"'"'%s'"'"' | %s > '$TEMP1'; ",
43 run = sprintf("diff '$TEMP1' '$TEMP2'")
/illumos-gate/usr/src/test/util-tests/tests/awk/gnu/
H A Dmessages.sh8 TEMP1=$WORKDIR/test.temp.1
16 print "Goes to a file out1" > "'$TEMP1'"
22 diff out1.ok $TEMP1 \
25 && rm -f $TEMP1 $TEMP2 $TEMP3

12