/freebsd/contrib/one-true-awk/testdir/ |
H A D | lilly.out | 2 ### 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 D | T.misc | 12 The big brown over the lazy dog' >foo 22 } ' foo >foo2 27 12345678901' >foo 29 $awk 'length($0) > 10' foo >foo2 34 echo foo | $awk '{ print "H\x49\x4a\x4BL" }' >foo2 51 x y z' >foo 55 $awk '{ NF -= 2; $1 = $1; print }' <foo >foo2 82 $awk ' function foo(foo) { 83 foo = 1 84 foo() function [all …]
|
H A D | lilly.ifile | 1 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 …]
|
/freebsd/bin/cp/tests/ |
H A D | cp_test.sh | 39 echo "foo" > bar 48 echo "foo" > bar 51 atf_check cp baz foo 52 atf_check test '!' -L foo 54 atf_check cmp foo bar 60 echo "foo" > bar 74 echo "foo" >foo 75 atf_check cp -l foo bar 76 atf_check -o inline:"foo\n" cat bar 77 atf_check_equal "$(stat -f%d,%i foo)" "$(stat -f%d,%i bar)" [all …]
|
/freebsd/tools/regression/environ/ |
H A D | envtest.t | 76 export FOO=${BAR} 80 run_test -g FOO 81 check_result "${FOO}" 83 run_test -c 3 -g FOO 97 run_test -c 1 -g FOO 100 run_test -c 2 -g FOO 103 run_test -c 3 -g FOO 106 run_test -c 4 -g FOO 111 run_test -c 1 -g FOO -s FOO2 ${NEWBAR} 1 -g FOO -g FOO2 114 run_test -c 2 -g FOO -s FOO2 ${NEWBAR} 1 -g FOO -g FOO2 [all …]
|
/freebsd/usr.bin/touch/tests/ |
H A D | touch_test.sh | 32 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 D | split_test.sh | 34 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/usr.sbin/extattr/tests/ |
H A D | extattr_test.sh | 33 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/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.basename.d.out | 3 if [ `basename "/foo/bar/baz"` != "baz" ]; then 4 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/"`"\" [all …]
|
H A D | tst.index.d.out | 18 if (index("foofoofoo", "foo") != 0) { 19 printf("perl => index(\"foofoofoo\", \"foo\") = %d\n", 20 index("foofoofoo", "foo")); 21 printf(" D => index(\"foofoofoo\", \"foo\") = 0\n"); 25 if (rindex("foofoofoo", "foo") != 6) { 26 printf("perl => rindex(\"foofoofoo\", \"foo\") = %d\n", 27 rindex("foofoofoo", "foo")); 28 printf(" D => rindex(\"foofoofoo\", \"foo\") = 6\n"); 32 if (index("boofoofoo", "foo") != 3) { 33 printf("perl => index(\"boofoofoo\", \"foo\") = %d\n", [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/ |
H A D | LoongArchFixupKinds.h | 26 // 16-bit fixup corresponding to %b16(foo) for instructions like bne. 28 // 21-bit fixup corresponding to %b21(foo) for instructions like bnez. 30 // 26-bit fixup corresponding to %b26(foo)/%plt(foo) for instructions b/bl. 32 // 20-bit fixup corresponding to %abs_hi20(foo) for instruction lu12i.w. 34 // 12-bit fixup corresponding to %abs_lo12(foo) for instruction ori. 36 // 20-bit fixup corresponding to %abs64_lo20(foo) for instruction lu32i.d. 38 // 12-bit fixup corresponding to %abs_hi12(foo) for instruction lu52i.d. 40 // 20-bit fixup corresponding to %le_hi20(foo) for instruction lu12i.w. 42 // 12-bit fixup corresponding to %le_lo12(foo) for instruction ori. 44 // 20-bit fixup corresponding to %le64_lo20(foo) for instruction lu32i.d. [all …]
|
/freebsd/contrib/atf/atf-sh/ |
H A D | atf-check_test.sh | 149 ${Atf_Check} -s ne:0 -o ignore -e ignore "echo foo 2>&1" || \ 152 ${Atf_Check} -e inline:"foo\n" -x "echo foo 1>&2" || \ 155 ${Atf_Check} -o inline:"foo\n" -x echo foo || \ 167 h_fail "echo foo" -o empty 178 h_pass "echo foo" -o ignore 191 echo foo >text 192 h_pass "echo foo" -o file:text 207 h_pass "echo foo bar" -o inline:"foo bar\n" 208 h_pass "printf 'foo bar'" -o inline:"foo bar" 213 h_fail "echo foo bar" -o inline:"foo bar" [all …]
|
/freebsd/usr.sbin/pw/tests/ |
H A D | pw_usermod_test.sh | 85 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 98 atf_check -s exit:0 -o match:"^foo:.*" \ 99 grep "^foo:.*" $HOME/master.passwd 108 atf_check -s exit:0 ${PW} useradd foo -G test1,test2 109 atf_check -o match:"foo" -s exit:0 ${PW} groupshow test1 110 atf_check -o match:"foo" -s exit:0 ${PW} groupshow test2 111 atf_check -s exit:0 ${PW} usermod foo -l bar [all …]
|
H A D | pw_useradd_test.sh | 70 atf_check -s exit:0 ${PW} useradd test -d /foo/bar 71 atf_check -s exit:0 -o match:"^test:\*:.*::0:0:User &:/foo/bar:.*" \ 220 ${PW} useradd foo -e 20-03-2037 221 atf_check -o inline:"foo:*:1001:1001::0:2121120000:User &:/home/foo:/bin/sh\n" \ 222 -s exit:0 grep "^foo" ${HOME}/master.passwd 223 atf_check -s exit:0 ${PW} userdel foo 225 ${PW} useradd foo -e 20-03-37 226 atf_check -o inline:"foo:*:1001:1001::0:2121120000:User &:/home/foo:/bin/sh\n" \ 227 -s exit:0 grep "^foo" ${HOME}/master.passwd 228 atf_check -s exit:0 ${PW} userdel foo [all …]
|
/freebsd/bin/sh/tests/expansion/ |
H A D | set-u1.0 | 2 ${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/crypto/heimdal/lib/krb5/ |
H A D | test_acl.c | 52 ret = krb5_acl_match_string(context, "foo", "s", "foo"); in test_match_string() 54 ret = krb5_acl_match_string(context, "foo foo", "s", "foo"); in test_match_string() 56 ret = krb5_acl_match_string(context, "foo bar", "ss", "foo", "bar"); in test_match_string() 58 ret = krb5_acl_match_string(context, "foo bar", "ss", "foo", "bar"); in test_match_string() 60 ret = krb5_acl_match_string(context, "foo \tbar", "ss", "foo", "bar"); in test_match_string() 62 ret = krb5_acl_match_string(context, "foo", "ss", "foo", "bar"); in test_match_string() 64 ret = krb5_acl_match_string(context, "foo", "ss", "foo", "foo"); in test_match_string() 66 ret = krb5_acl_match_string(context, "foo \t", "s", "foo"); in test_match_string() 69 ret = krb5_acl_match_string(context, "foo/bar", "f", "foo/bar"); in test_match_string() 71 ret = krb5_acl_match_string(context, "foo/bar", "f", "foo/*"); in test_match_string() [all …]
|
/freebsd/contrib/kyua/utils/sqlite/ |
H A D | statement_test.cpp | 51 "CREATE TABLE foo (a INTEGER PRIMARY KEY)"); in ATF_TEST_CASE_BODY() 52 ATF_REQUIRE_THROW(sqlite::error, db.exec("SELECT * FROM foo")); in ATF_TEST_CASE_BODY() 54 db.exec("SELECT * FROM foo"); in ATF_TEST_CASE_BODY() 76 "CREATE TABLE foo (a INTEGER PRIMARY KEY)"); in ATF_TEST_CASE_BODY() 87 "CREATE TABLE foo (a INTEGER PRIMARY KEY)"); in ATF_TEST_CASE_BODY() 88 ATF_REQUIRE_THROW(sqlite::error, db.exec("SELECT * FROM foo")); in ATF_TEST_CASE_BODY() 90 db.exec("SELECT * FROM foo"); in ATF_TEST_CASE_BODY() 98 db.exec("CREATE TABLE foo (a INTEGER PRIMARY KEY)"); in ATF_TEST_CASE_BODY() 99 db.exec("INSERT INTO foo VALUES (3)"); in ATF_TEST_CASE_BODY() 101 "INSERT INTO foo VALUES (3)"); in ATF_TEST_CASE_BODY() [all …]
|
/freebsd/lib/libcam/tests/ |
H A D | cam_test.c | 43 ATF_CHECK_EQ(0, cam_strmatch("foo", "foo", 3)); in ATF_TC_BODY() 44 ATF_CHECK_NE(0, cam_strmatch("foo", "bar", 3)); in ATF_TC_BODY() 45 ATF_CHECK_NE(0, cam_strmatch("foo", "foobar", 3)); in ATF_TC_BODY() 48 ATF_CHECK_EQ(0, cam_strmatch("fooxuehfxeuf", "foo", 3)); in ATF_TC_BODY() 49 ATF_CHECK_NE(0, cam_strmatch("foo\0bar", "foo", 7)); in ATF_TC_BODY() 52 ATF_CHECK_EQ(0, cam_strmatch("foo ", "foo", 16)); in ATF_TC_BODY() 55 ATF_CHECK_EQ(0, cam_strmatch("foobar", "foo*", 6)); in ATF_TC_BODY() 57 ATF_CHECK_NE(0, cam_strmatch("foobar", "foo*x", 6)); in ATF_TC_BODY() 60 ATF_CHECK_EQ(0, cam_strmatch("foo\0bar", "foo*", 7)); in ATF_TC_BODY() 62 ATF_CHECK_EQ(0, cam_strmatch("foo", "foo*", 3)); in ATF_TC_BODY() [all …]
|
/freebsd/usr.bin/gzip/tests/ |
H A D | zdiff_test.sh | 28 specials="foo'bar foo\"bar foo\$bar" 35 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 [all …]
|
/freebsd/crypto/heimdal/lib/sl/ |
H A D | test_sl.c | 42 { 1, "foo", 1, { "foo" } }, 43 { 1, "foo bar", 2, { "foo", "bar" }}, 44 { 1, "foo bar baz", 3, { "foo", "bar", "baz" }}, 46 { 1, " foo", 1, { "foo" } }, 47 { 1, "foo ", 1, { "foo" } }, 48 { 1, " foo ", 1, { "foo" } }, 49 { 1, " foo bar", 2, { "foo", "bar" } }, 50 { 1, "foo\\ bar", 1, { "foo bar" } }, 51 { 1, "\"foo bar\"", 1, { "foo bar" } }, 52 { 1, "\"foo\\ bar\"", 1, { "foo bar" } }, [all …]
|
/freebsd/contrib/libarchive/tar/test/ |
H A D | test_option_s.c | 16 assertMakeFile("in/d1/foo", 0644, "foo"); in DEFINE_TEST() 26 systemf("%s -cf - -s /foo/bar/ in/d1/foo > NUL 2> check.err", in DEFINE_TEST() 39 systemf("%s -cf test1_1.tar -s /foo/bar/ in/d1/foo", testprog); in DEFINE_TEST() 41 assertFileContents("foo", 3, "test1/in/d1/bar"); in DEFINE_TEST() 42 systemf("%s -cf test1_2.tar -s /d1/d2/ in/d1/foo", testprog); in DEFINE_TEST() 44 assertFileContents("foo", 3, "test1/in/d2/foo"); in DEFINE_TEST() 50 systemf("%s -cf test2.tar in/d1/foo", testprog); in DEFINE_TEST() 51 systemf("%s -xf test2.tar -s /foo/bar/ -C test2", testprog); in DEFINE_TEST() 52 assertFileContents("foo", 3, "test2/in/d1/bar"); in DEFINE_TEST() 57 systemf("%s -cf test3.tar -s ,in/d1/foo,, in/d1/foo", testprog); in DEFINE_TEST() [all …]
|
/freebsd/contrib/kyua/utils/fs/ |
H A D | path_test.cpp | 64 ATF_REQUIRE_EQ("foo", path("foo").str()); in ATF_TEST_CASE_BODY() 65 ATF_REQUIRE_EQ("foo/bar", path("foo/bar").str()); in ATF_TEST_CASE_BODY() 66 ATF_REQUIRE_EQ("foo/bar", path("foo/bar/").str()); in ATF_TEST_CASE_BODY() 68 ATF_REQUIRE_EQ("/foo", path("/foo").str()); in ATF_TEST_CASE_BODY() 69 ATF_REQUIRE_EQ("/foo/bar", path("/foo/bar").str()); in ATF_TEST_CASE_BODY() 70 ATF_REQUIRE_EQ("/foo/bar", path("/foo/bar/").str()); in ATF_TEST_CASE_BODY() 72 ATF_REQUIRE_EQ("/foo", path("///foo").str()); in ATF_TEST_CASE_BODY() 73 ATF_REQUIRE_EQ("/foo/bar", path("///foo///bar").str()); in ATF_TEST_CASE_BODY() 74 ATF_REQUIRE_EQ("/foo/bar", path("///foo///bar///").str()); in ATF_TEST_CASE_BODY() 76 ATF_REQUIRE_EQ("./foo/bar", path("./foo/bar").str()); in ATF_TEST_CASE_BODY() [all …]
|
/freebsd/tools/regression/ccd/layout/ |
H A D | ccd0.sh | 7 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/crypto/openssl/test/ssl-tests/ |
H A D | 08-npn.cnf.in | 22 "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 …]
|
/freebsd/contrib/kyua/utils/format/ |
H A D | formatter_test.cpp | 108 EQ("foo", F("%sfoo") % ""); in ATF_TEST_CASE_BODY() 109 EQ(" foo", F("%sfoo") % " "); in ATF_TEST_CASE_BODY() 110 EQ("foo ", F("foo %s") % ""); in ATF_TEST_CASE_BODY() 111 EQ("foo bar", F("foo %s") % "bar"); in ATF_TEST_CASE_BODY() 112 EQ("foo bar baz", F("foo %s baz") % "bar"); in ATF_TEST_CASE_BODY() 113 EQ("foo %s %s", F("foo %s %s") % "%s" % "%s"); in ATF_TEST_CASE_BODY() 121 EQ("foo", F("%s%s%s") % "" % "foo" % ""); in ATF_TEST_CASE_BODY() 134 EQ("foo %", F("foo %%")); in ATF_TEST_CASE_BODY() 135 EQ("foo bar %", F("foo %s %%") % "bar"); in ATF_TEST_CASE_BODY() 136 EQ("foo % bar", F("foo %% %s") % "bar"); in ATF_TEST_CASE_BODY() [all …]
|