/freebsd/contrib/one-true-awk/testdir/ |
H A D | T.clv | 12 ' >foo1 15 diff foo1 foo2 || echo 'BAD: T.clv (stdin only)' 21 ' x=1 >foo1 24 diff foo1 foo2 || echo 'BAD: T.clv (x=1 only)' 30 ' x=1 x=2 x=3 >foo1 33 diff foo1 foo2 || echo 'BAD: T.clv (x=3 only)' 40 ' x=1 x=2 x=3 foo >foo1 43 diff foo1 foo2 || echo 'BAD: T.clv (x=3 only)' 46 echo 4 >foo1 48 diff foo1 foo2 || echo 'BAD: T.clv (x=4 /dev/null)' [all …]
|
H A D | T.argv | 5 echo >foo1 15 }' * >foo1 17 diff foo1 foo2 || echo 'BAD: T.argv (echo1 *)' 28 }' * >foo1 30 diff foo1 foo2 || echo 'BAD: T.argv (echo2 *)' 40 ' a bc def gh >foo1 47 diff foo1 foo2 || echo 'BAD: T.argv (argc *)' 52 echo 'foo1 54 foo3' >foo1 56 diff foo1 foo2 || echo 'BAD: T.argv (L=foo <foo1)' [all …]
|
H A D | T.latin1 | 7 ' latin1 >foo1 9 diff latin1 foo1 || echo 'BAD: T.latin1 1' 12 $awk '{ gsub(/�/, "�"); print }' latin1 >foo1 13 diff foo0 foo1 || echo 'BAD: T.latin1 3' 16 $awk '{ gsub(/[^�-�]/, ""); print } ' latin1 >foo1 17 diff foo0 foo1 || echo 'BAD: T.latin1 4' 19 echo '/�/' >foo1 20 $awk -f foo1 foo1 >foo2 22 diff foo1 foo2 || echo 'BAD: T.latin1 5' 25 echo /[��]/ >foo1 [all …]
|
H A D | T.gawk | 8 1' >foo1 17 cmp -s foo1 foo2 || ./echo 'BAD: T.gawk arrayref' 28 1 2 3 a' >foo1 30 cmp -s foo1 foo2 || ./echo 'BAD: T.gawk asgext' 38 xAAy' >foo1 43 cmp -s foo1 foo2 || ./echo 'BAD: T.gawk backgsub' 58 x\\\\y' >foo1 65 cmp -s foo1 foo2 || ./echo 'BAD: T.gawk backgsub2' 82 x\&\&x' >foo1 92 cmp -s foo1 foo2 || ./echo 'BAD: T.gawk backgsub3' [all …]
|
H A D | T.func | 19 ' >foo1 25 diff foo1 foo2 || echo 'BAD: T.func (function return type)' 27 echo 'data: data' >foo1 33 diff foo1 foo2 || echo 'BAD: T.func (array type)' 40 ' /dev/null >foo1 42 diff foo1 foo2 || echo 'BAD: T.func (argument passing)' 57 ' >foo1 60 diff foo1 foo2 || echo 'BAD: T.func (convert arg to array)' 82 cat <<! >foo1 94 diff foo1 foo2 || echo 'BAD: T.func (factorial)' [all …]
|
H A D | T.misc | 16 succeeded' >foo1 23 cmp -s foo1 foo2 || echo 'BAD: T.misc ghosh RE bug' 28 echo '12345678901' >foo1 30 cmp -s foo1 foo2 || echo 'BAD: T.misc last number bug' 33 echo HIJKL >foo1 35 cmp -s foo1 foo2 || echo 'BAD: T.misc hex string cvt' 37 echo 012x45 >foo1 39 cmp -s foo1 foo2 || echo 'BAD: T.misc oct string cvt' 42 echo 3 5 | $awk '{ i = 1; print $i++ ; print $1, i }' >foo1 45 cmp -s foo1 foo2 || echo 'BAD: T.misc bad field increment' [all …]
|
H A D | T.overflow | 9 }' >foo1 10 $awk '{print}' foo1 >foo2 11 cmp -s foo1 foo2 || echo 'BAD: T.overflow record 1' 13 echo 'abcdefghijklmnopqsrtuvwxyz' >foo1 19 cmp -s foo1 foo2 || echo 'BAD: T.overflow abcdef' 29 } ' >foo1 30 $awk '{$1 = " 123456789"; print}' foo1 >foo2 31 cmp -s foo1 foo2 || echo 'BAD: T.overflow -mr -mf set $1' 41 $awk '{print NF}' foo >foo1 44 cmp -s foo1 foo2 || echo 'BAD: T.overflow -mr -mf NF' [all …]
|
H A D | T.nextfile | 14 ' T.* >foo1 16 diff foo0 foo1 || echo 'BAD: T.nextfile 1' 25 ' T.* >foo1 27 diff foo0 foo1 || echo 'BAD: T.nextfile 1f' 37 ' T.* >foo1 39 diff foo0 foo1 || echo 'BAD: T.nextfile 1w' 50 ' T.* >foo1 52 diff foo0 foo1 || echo 'BAD: T.nextfile 1d' 65 ' T.* >foo1 67 diff foo0 foo1 || echo 'BAD: T.nextfile 2' [all …]
|
H A D | T.builtin | 5 $awk 'BEGIN { print index(123, substr(123, 2)) }' >foo1 7 diff foo1 foo2 || echo 'BAD: T.builtin (index/substr)' 13 }' >foo1 15 diff foo1 foo2 || echo 'BAD: T.builtin (sin/cos)' 20 print rand() >"foo1" 25 diff foo1 foo2 || echo 'BAD: T.builtin (rand)' 28 $awk '{ printf("%s|%s|%s\n", tolower($0), toupper($0), $0)}' >foo1 30 diff foo1 foo2 || echo 'BAD: T.builtin (toupper/tolower)' 35 $awk '{ printf("%s|%s|%s\n", tolower($0), toupper($0), $0)}') >foo1 37 diff foo1 foo2 || echo 'BAD: T.builtin (toupper/tolower) for utf-8' [all …]
|
H A D | T.close | 10 tail -1 foo >foo1 12 diff foo1 foo2 || echo 'BAD: T.close (2)' 14 echo 0 >foo1 18 diff foo1 foo2 || echo 'BAD: T.close (3)' 20 echo -1 >foo1 24 diff foo1 foo2 || echo 'BAD: T.close (4)' 26 echo 0 >foo1 30 diff foo1 foo2 || echo 'BAD: T.close (5)' 32 echo 0 >foo1 36 diff foo1 foo2 || echo 'BAD: T.close (6)'
|
H A D | T.main | 11 echo hello | $awk -d '{print}' >foo1 15 $awk -F:: '{print NF}' foo >foo1 17 diff foo1 foo2 || echo 'bad: awk -F::' 20 $awk -F :: '{print NF}' foo >foo1 22 diff foo1 foo2 || echo 'bad: awk -F ::' 25 $awk -F t '{print NF}' foo >foo1 27 diff foo1 foo2 || echo 'bad: awk -F (tab)' 30 $awk -F tab '{print NF}' foo >foo1 32 diff foo1 foo2 || echo 'bad: awk -F tab'
|
H A D | T.getline | 5 who >foo1 6 cat foo1 | $awk ' 13 cmp -s foo1 foo || echo 'BAD: T.getline (bare getline)' 15 who >foo1 16 cat foo1 | $awk ' 23 cmp -s foo1 foo || echo 'BAD: T.getline (getline xxx)' 80 echo '-1' >foo1 81 cmp -s foo foo1 || echo 'BAD: T.getline (non-existent file)' 83 echo 'false false equal' >foo1 93 cmp -s foo1 foo2 || echo 1>&2 'BAD: T.getline bad $0 type in cmd|getline' [all …]
|
H A D | T.-f-f | 8 echo 'BEGIN { print "begin" }' >foo1 10 echo xxx | $awk -f foo1 -f foo2 >foo3 14 echo '/a/' | $awk -f - /etc/passwd >foo1 16 diff foo1 foo2 || echo 'BAD: T.-f-f -f -' 19 cp /etc/passwd foo1 24 diff foo1 foo5 || echo 'BAD: T.-f-f 3 files'
|
H A D | T.redir | 24 2' >foo1 28 diff foo1 foo2 || echo 'BAD: T.redir (buffering)' 31 $awk '{ print >"/dev/stderr" }' /etc/passwd 1>foo1 2>foo2 33 diff foo1 /dev/null || echo 'BAD: T.redir (print >"/dev/stderr")' 36 $awk '{ print >"/dev/stdout" }' /etc/passwd 1>foo1 2>foo2 37 diff foo1 /etc/passwd || echo 'BAD: T.redir (print >"/dev/stdout")'
|
H A D | Compare.t | 10 $oldawk -f $i test.data >foo1 12 if cmp -s foo1 foo2 16 diff -b foo1 foo2 | sed -e 's/^/ /' -e 10q
|
H A D | Compare.p | 10 $oldawk -f $i test.countries test.countries >foo1 12 if cmp -s foo1 foo2 16 diff -b foo1 foo2 | sed -e 's/^/ /' -e 10q
|
H A D | xc | 12 time awk -f $i test.countries >foo1 14 cmp foo1 foo2 || ( echo $i ' ' bad; echo $i ' ' bad >/dev/tty; diff foo1 foo2 )
|
H A D | yc | 12 time awk -f $i test.data >foo1 14 cmp foo1 foo2 || ( echo $i ' ' bad; echo $i ' ' bad >/dev/tty; diff foo1 foo2 )
|
H A D | Compare.drek | 26 time ../drek $td >foo1 2>foo1t 28 cmp foo1 foo2 || ( echo $i ' ' bad; echo $i ' ' bad >/dev/tty; diff foo1 foo2 | sed 20q )
|
H A D | try | 7 time ../a.out -f $i $td >foo1 9 cmp foo1 foo2
|
H A D | T.system | 14 4" >foo1 15 diff foo foo1 || echo 'BAD: T.system (1)'
|
/freebsd/contrib/netbsd-tests/usr.bin/uniq/ |
H A D | d_input.in | 1 #01 foo0 bar0 foo1 bar1 2 #02 bar0 foo1 bar1 foo1 3 #03 foo0 bar0 foo1 bar1 5 #05 foo0 bar0 foo1 bar1 6 #06 foo0 bar0 foo1 bar1 7 #07 bar0 foo1 bar1 foo0
|
H A D | d_counts.out | 1 1 #01 foo0 bar0 foo1 bar1 2 1 #02 bar0 foo1 bar1 foo1 3 1 #03 foo0 bar0 foo1 bar1 5 2 #05 foo0 bar0 foo1 bar1 6 1 #07 bar0 foo1 bar1 foo0
|
H A D | d_show_uniques.out | 1 #01 foo0 bar0 foo1 bar1 2 #02 bar0 foo1 bar1 foo1 3 #03 foo0 bar0 foo1 bar1 5 #07 bar0 foo1 bar1 foo0
|
/freebsd/sbin/gbde/ |
H A D | test.sh |
|