Home
last modified time | relevance | path

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

12345678910>>...34

/freebsd/contrib/one-true-awk/testdir/
H A Dlilly.out2 ### BEGIN{foo=6;print foo/2}:
5 ### BEGIN{foo=10;foo/=2;print foo}:
9 foo=bar
10 foo==bar
11 foo+=bar
12 foo-=bar
13 foo*=bar
14 foo/=bar
15 foo^=bar
16 foo%=bar
[all …]
H A Dlilly.ifile1 foo=bar
2 foo==bar
3 foo+bar
4 foo+=bar
5 foo-=bar
6 foo*=bar
7 foo/=bar
8 foo^=bar
9 foo%=bar
10 foo!=bar
[all …]
H A DT.redir5 $awk '{ print >"foo" }' /etc/passwd
6 diff foo /etc/passwd || echo 'BAD: T.redir (print >"foo")'
8 rm -f foo
9 $awk '{ print >>"foo" }' /etc/passwd
10 diff foo /etc/passwd || echo 'BAD: T.redir (print >>"foo")'
12 rm -f foo
13 $awk 'NR%2 == 1 { print >>"foo" }
14 NR%2 == 0 { print >"foo" }' /etc/passwd
15 diff foo /etc/passwd || echo 'BAD: T.redir (print > and >>"foo")'
17 rm -f foo
[all …]
H A Dt.sub02 {sub(/[aeiou]/, "foo"); print}
3 {sub("[aeiou]", "foo"); print}
5 {gsub(/[aeiou]/, "foo"); print}
6 {gsub("[aeiou]", "foo"); print}
8 {sub(/[aeiou]/, "&foo"); print}
9 {sub("[aeiou]", "&foo"); print}
11 {gsub(/[aeiou]/, "&foo"); print}
12 {gsub("[aeiou]", "&foo"); print}
14 {sub(/[aeiou]/, "\&foo"); print}
15 {sub("[aeiou]", "\&foo"); print}
[all …]
H A DT.flags5 $awk >foo 2>&1
6 grep '[Uu]sage' foo >/dev/null || echo 'T.flags: bad usage'
8 $awk -f >foo 2>&1
9 grep 'no program' foo >/dev/null || echo 'T.flags: bad no program'
11 $awk -f glop/glop >foo 2>&1
12 grep 'can.t open' foo >/dev/null || echo 'T.flags: bad can.t open program'
14 $awk -fglop/glop >foo 2>&1
15 grep 'can.t open' foo >/dev/null || echo 'T.flags: bad can.t open program 2'
17 $awk -zz 'BEGIN{}' >foo 2>&1
18 grep 'unknown option' foo >/dev/null || echo 'T.flags: bad unknown option'
[all …]
/freebsd/bin/cp/tests/
H A Dcp_test.sh51 atf_check cp baz foo
52 atf_check test '!' -L foo
54 atf_check cmp foo bar
74 echo "foo" >foo
75 atf_check cp -l foo bar
83 echo "foo" >foo
85 atf_check -s not-exit:0 -e match:exists cp -l foo bar
93 echo "foo" >foo
95 atf_check cp -fl foo bar
106 mkdir foo
[all …]
/freebsd/usr.bin/touch/tests/
H A Dtouch_test.sh32 atf_check touch foo
33 atf_check test -f foo
43 atf_check touch foo bar baz
44 atf_check test -f foo -a -f bar -a -f baz
54 atf_check touch -t 7001010101 foo
55 atf_check_mtime 3660 foo
56 atf_check rm foo
58 atf_check touch -t 7001010101.01 foo
59 atf_check_mtime 3661 foo
60 atf_check rm foo
[all …]
/freebsd/usr.bin/split/tests/
H A Dsplit_test.sh34 printf "aaaa" > foo-aa
35 printf "bb\nc" > foo-ab
36 printf "ccc\n" > foo-ac
38 cat foo-* > foo
39 atf_check split -b 4 foo split-
40 atf_check -o file:foo-aa cat split-aa
41 atf_check -o file:foo-ab cat split-ab
42 atf_check -o file:foo-ac cat split-ac
48 rm foo-* foo
49 jot -ns "" -b "a" ${bsize} > foo-aa
[all …]
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/
H A Dtst.basename.d.out4 echo "basename(\"/foo/bar/baz\") is \"baz\"; expected \"`basename "/foo/bar/baz"`"\"
7 if [ `dirname "/foo/bar/baz"` != "/foo/bar" ]; then
8 echo "dirname(\"/foo/bar/baz\") is \"/foo/bar\"; expected \"`dirname "/foo/bar/baz"`"\"
11 if [ `basename "/foo/bar///baz/"` != "baz" ]; then
12 echo "basename(\"/foo/bar///baz/\") is \"baz\"; expected \"`basename "/foo/bar///baz/"`"\"
15 if [ `dirname "/foo/bar///baz/"` != "/foo/bar" ]; then
16 echo "dirname(\"/foo/bar///baz/\") is \"/foo/bar\"; expected \"`dirname "/foo/bar///baz/"`"\"
19 if [ `basename "/foo/bar/baz/"` != "baz" ]; then
20 echo "basename(\"/foo/bar/baz/\") is \"baz\"; expected \"`basename "/foo/bar/baz/"`"\"
23 if [ `dirname "/foo/bar/baz/"` != "/foo/bar" ]; then
[all …]
H A Dtst.cleanpath.d.out1 cleanpath("/foo/bar/baz") = "/foo/bar/baz"
2 cleanpath("/foo/bar///baz/") = "/foo/bar/baz/"
3 cleanpath("/foo/bar/baz/") = "/foo/bar/baz/"
4 cleanpath("/foo/bar/baz//") = "/foo/bar/baz/"
5 cleanpath("/foo/bar/baz/.") = "/foo/bar/baz/."
6 cleanpath("/foo/bar/baz/./") = "/foo/bar/baz/"
7 cleanpath("/foo/bar/../../baz/.//") = "/baz/"
8 cleanpath("foo/bar/./././././baz/") = "foo/bar/baz/"
9 cleanpath("/foo/bar/baz/../../../../../../") = "/"
12 cleanpath("/foo/bar/baz/../../bop/bang/../../bar/baz/") = "/foo/bar/baz/"
/freebsd/usr.sbin/extattr/tests/
H A Dextattr_test.sh33 touch foo
35 setextattr badnamespace myattr X foo
37 lsextattr -q badnamespace foo
46 touch foo
47 atf_check -s exit:0 -o empty setextattr user myattr XYZ foo
49 getextattr -qx user myattr foo
58 touch foo
60 atf_check -s exit:0 -o empty setextattr user myattr "$BINSTUFF" foo
61 getextattr user myattr foo
63 getextattr -qx user myattr foo
[all …]
/freebsd/bin/sh/tests/expansion/
H A Dset-u1.02 ${SH} -uc 'unset foo; echo $foo' 2>/dev/null && exit 1
3 ${SH} -uc 'foo=; echo $foo' >/dev/null || exit 1
4 ${SH} -uc 'foo=1; echo $foo' >/dev/null || exit 1
6 ${SH} -uc 'unset foo; echo ${foo-}' >/dev/null || exit 1
7 ${SH} -uc 'unset foo; echo ${foo+}' >/dev/null || exit 1
8 ${SH} -uc 'unset foo; echo ${foo=}' >/dev/null || exit 1
10 ${SH} -uc 'unset foo; echo ${#foo}' 2>/dev/null && exit 1
11 ${SH} -uc 'foo=; echo ${#foo}' >/dev/null || exit 1
12 ${SH} -uc 'unset foo; echo ${foo#?}' 2>/dev/null && exit 1
13 ${SH} -uc 'foo=1; echo ${foo#?}' >/dev/null || exit 1
[all …]
/freebsd/contrib/googletest/googlemock/test/
H A Dgmock_stress_test.cc68 MockFoo foo; in TestConcurrentMockObjects() local
69 ON_CALL(foo, Bar(_)).WillByDefault(Return(1)); in TestConcurrentMockObjects()
70 ON_CALL(foo, Baz(_, _)).WillByDefault(Return('b')); in TestConcurrentMockObjects()
71 ON_CALL(foo, Baz(_, "you")).WillByDefault(Return('a')); in TestConcurrentMockObjects()
73 EXPECT_CALL(foo, Bar(0)).Times(AtMost(3)); in TestConcurrentMockObjects()
74 EXPECT_CALL(foo, Baz(_, _)); in TestConcurrentMockObjects()
75 EXPECT_CALL(foo, Baz("hi", "you")) in TestConcurrentMockObjects()
79 EXPECT_EQ(1, foo.Bar(0)); in TestConcurrentMockObjects()
80 EXPECT_EQ(1, foo.Bar(0)); in TestConcurrentMockObjects()
81 EXPECT_EQ('z', foo.Baz("hi", "you")); in TestConcurrentMockObjects()
[all …]
/freebsd/usr.bin/gzip/tests/
H A Dzdiff_test.sh35 echo "foo" > foo
37 for f in $specials foo; do
38 [ "$f" == "foo" ] || cp foo "$f"
55 cp foo.gz foo.Z
57 for f in foo $specials; do
58 atf_check -s exit:1 -o file:"$(atf_get_srcdir)"/foo.diff \
62 atf_check -s exit:1 -o file:"$(atf_get_srcdir)"/foo.diff zdiff foo.Z
64 for f in foo $specials; do
74 cp foo.bz2 foo.bz
76 for f in foo $specials; do
[all …]
/freebsd/tools/regression/ccd/layout/
H A Dccd0.sh7 foo() { function
16 foo 128k 128k 128k 128k 0 0
17 foo 128k 128k 128k 128k 0 4
18 foo 128k 128k 128k 128k 4 0
19 foo 128k 128k 128k 128k 4 2
20 foo 128k 128k 128k 128k 4 4
22 foo 256k 128k 128k 128k 0 0
23 foo 256k 128k 128k 128k 0 4
24 foo 256k 128k 128k 128k 4 0
25 foo 256k 128k 128k 128k 4 2
[all …]
/freebsd/usr.sbin/pw/tests/
H A Dpw_usermod_test.sh85 atf_check -s exit:0 ${PW} useradd foo
86 atf_check -s exit:0 ${PW} usermod foo -l "bar"
96 atf_check -s exit:0 ${PW} useradd foo
97 atf_check -s exit:0 -o match:"^bar:.*" ${PW} usermod foo -l "bar" -N
108 atf_check -s exit:0 ${PW} useradd foo -G test1,test2
111 atf_check -s exit:0 ${PW} usermod foo -l bar
124 atf_check -s exit:0 ${PW} useradd foo -G test1,test2
127 atf_check -s exit:0 ${PW} usermod foo -G test3,test4
130 atf_check -s exit:0 ${PW} usermod foo -G ""
139 atf_check -s exit:0 ${PW} useradd foo
[all …]
H A Dpw_useradd_test.sh70 atf_check -s exit:0 ${PW} useradd test -d /foo/bar
220 ${PW} useradd foo -e 20-03-2037
223 atf_check -s exit:0 ${PW} userdel foo
225 ${PW} useradd foo -e 20-03-37
228 atf_check -s exit:0 ${PW} userdel foo
230 ${PW} useradd foo -e 20-Mar-2037
233 atf_check -s exit:0 ${PW} userdel foo
235 ${PW} useradd foo -e 20-Foo-2037
237 ${PW} useradd foo -e 20-13-2037
238 atf_check -s exit:0 ${PW} useradd foo -e "12:00 20-03-2037"
[all …]
/freebsd/usr.bin/wc/tests/
H A Dwc_test.sh72 printf "a b\n" >foo
73 atf_check_wc foo 1 2 4
83 printf "\n\n\n" >foo
84 atf_check_wc foo 3 0 3
94 printf "" >foo
95 atf_check_wc foo 0 0 0
105 printf "a\377b\n" >foo
109 wc -m foo
119 printf "%s\n" "$tv" >foo
120 atf_check_wc foo $tvl $tvw $tvc $tvm
[all …]
/freebsd/crypto/openssl/test/ssl-tests/
H A D08-npn.cnf.in22 "NPNProtocols" => "foo",
27 "NPNProtocols" => "foo",
32 "ExpectedNPNProtocol" => "foo",
44 "NPNProtocols" => "foo,bar",
56 "NPNProtocols" => "bar,foo",
61 "NPNProtocols" => "foo,bar",
78 "NPNProtocols" => "foo,bar",
83 "ExpectedNPNProtocol" => "foo",
91 "NPNProtocols" => "foo",
103 "NPNProtocols" => "foo",
[all …]
H A D09-alpn.cnf.in23 "ALPNProtocols" => "foo",
28 "ALPNProtocols" => "foo",
32 "ExpectedALPNProtocol" => "foo",
44 "ALPNProtocols" => "foo,bar",
55 "ALPNProtocols" => "bar,foo",
60 "ALPNProtocols" => "foo,bar",
76 "ALPNProtocols" => "foo,bar",
89 "ALPNProtocols" => "foo",
100 "ALPNProtocols" => "foo",
112 "ALPNProtocols" => "foo",
[all …]
/freebsd/usr.bin/patch/tests/
H A Dunified_patch_test.sh92 echo "x" > foo
93 diff -u /dev/null foo > foo.diff
94 rm foo
97 atf_check -o ignore stat foo
113 echo "x" > foo
114 diff -u /dev/null foo > foo.diff
116 atf_check -o inline:"2\n" stat -f "%z" foo
118 atf_check -o inline:"2\n" stat -f "%z" foo
120 atf_check -o inline:"2\n" stat -f "%z" foo
127 echo "x" > foo
[all …]
/freebsd/tools/test/malloc/
H A Dmain.c10 char **foo; variable
21 foo = malloc(sizeof(*foo) * NBUCKETS); in main()
22 memset(foo, 0, sizeof(*foo) * NBUCKETS); in main()
25 foo[j] = malloc(i); in main()
28 free(foo[j]); in main()
29 foo[j] = NULL; in main()
36 foo[j] = realloc(foo[j], k & 1 ? 0 : k); in main()
42 foo[j] = NULL; in main()
44 if (foo[j]) in main()
45 foo[j][0] = 1; in main()
[all …]
/freebsd/bin/chmod/tests/
H A Dchmod_test.sh101 atf_check truncate -s 0 foo bar
102 atf_check chmod 0750 foo bar
108 atf_check chflags uchg foo
109 atf_check -e not-empty -s not-exit:0 chmod 0700 foo bar
110 atf_check -o inline:'100750\n100700\n' stat -f '%p' foo bar
111 atf_check -s exit:0 chmod -f 0600 foo bar
112 atf_check -o inline:'100750\n100600\n' stat -f '%p' foo bar
117 chflags 0 foo || :
130 atf_check truncate -s 0 foo
131 atf_check chmod 0600 foo
[all …]
/freebsd/contrib/netbsd-tests/bin/sh/
H A Dt_varquote.sh58 foo='${a:-foo}'
59 check "$foo" '${a:-foo}'
61 foo="${a:-foo}"
62 check "$foo" "foo"
64 foo=${a:-"'{}'"}
65 check "$foo" "'{}'"
67 foo=${a:-${b:-"'{}'"}}
68 check "$foo" "'{}'"
71 foo="${a-'}'}"
72 check "$foo" "''}"
[all …]
/freebsd/usr.sbin/chown/tests/
H A Dchown_test.sh105 atf_check truncate -s 0 foo bar
106 atf_check chown 0:0 foo bar
112 atf_check chflags uchg foo
113 atf_check -e not-empty -s not-exit:0 chown 42:42 foo bar
114 atf_check -o inline:'0:0\n42:42\n' stat -f '%u:%g' foo bar
115 atf_check -s exit:0 chown -f 84:84 foo bar
116 atf_check -o inline:'0:0\n84:84\n' stat -f '%u:%g' foo bar
121 chflags 0 foo || :
135 atf_check truncate -s 0 foo
136 atf_check -o inline:'0:0\n' stat -f '%u:%g' foo
[all …]

12345678910>>...34