Home
last modified time | relevance | path

Searched +full:foo +full:- +full:bar (Results 1 – 25 of 993) sorted by relevance

12345678910>>...40

/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 …]
/freebsd/bin/cp/tests/
H A Dcp_test.sh2 # SPDX-License-Identifier: BSD-2-Clause
33 atf_check -o inline:"$sz\n" stat -f '%z' $file
39 echo "foo" > bar
41 atf_check cp bar baz
48 echo "foo" > bar
49 ln -s bar baz
51 atf_check cp baz foo
52 atf_check test '!' -L foo
54 atf_check cmp foo bar
60 echo "foo" > bar
[all …]
/freebsd/tools/regression/environ/
H A Denvtest.t3 # Copyright (c) 2007-2008 Sean C. Farley <scf@FreeBSD.org>
37 result=`./envctl -t "${@}"`
39 if [ ${?} -ne 0 ]
54 echo "${result}" | sed 's/[ \t]*$//' | grep -q "^${@}$"
55 if [ ${?} -eq 0 ]
59 echo "not ok ${testndx} - '${lasttest}'"
74 readonly BAR="bar"
76 export FOO=${BAR}
80 run_test -g FOO
81 check_result "${FOO}"
[all …]
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/
H A Dtst.basename.d.out3 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 …]
/freebsd/contrib/atf/atf-sh/
H A Datf-check_test.sh26 # The Atf_Check and Atf-Shell variables are set by atf-sh.
32 echo "Running [atf-check $*] against [${cmd}]"
42 atf_fail "atf-check failed"
50 echo "Running [atf-check $*] against [${cmd}]"
60 atf_fail "atf-check succeeded but should fail"
67 atf_set "descr" "Tests for the -s option using the 'eq' and 'ne' qualifiers"
71 h_pass "true" -s eq:0
72 h_pass "false" -s ne:0
73 h_pass "exit 255" -s eq:255
74 h_pass "exit 0" -s ne:255
[all …]
/freebsd/crypto/openssl/test/ssl-tests/
H A D08-npn.cnf.in1 # -*- mode: perl; -*-
2 # Copyright 2016-2024 The OpenSSL Project Authors. All Rights Reserved.
19 name => "npn-simple",
22 "NPNProtocols" => "foo",
27 "NPNProtocols" => "foo",
32 "ExpectedNPNProtocol" => "foo",
36 name => "npn-client-finds-match",
39 "NPNProtocols" => "baz,bar",
44 "NPNProtocols" => "foo,bar",
49 "ExpectedNPNProtocol" => "bar",
[all …]
H A D09-alpn.cnf.in1 # -*- mode: perl; -*-
2 # Copyright 2016-2024 The OpenSSL Project Authors. All Rights Reserved.
20 name => "alpn-simple",
23 "ALPNProtocols" => "foo",
28 "ALPNProtocols" => "foo",
32 "ExpectedALPNProtocol" => "foo",
36 name => "alpn-server-finds-match",
39 "ALPNProtocols" => "baz,bar",
44 "ALPNProtocols" => "foo,bar",
48 "ExpectedALPNProtocol" => "bar",
[all …]
/freebsd/contrib/kyua/utils/text/
H A Dregex_test.cpp31 #include <atf-c++.hpp>
42 "foo.*bar", "this is a string without the searched text", 0); in ATF_TEST_CASE_BODY()
52 "foo.*bar", "this is a string with foo and bar embedded in it", 0); in ATF_TEST_CASE_BODY()
55 ATF_REQUIRE_EQ("foo and bar", matches.get(0)); in ATF_TEST_CASE_BODY()
75 "is ([^ ]*) ([a-z]*) to", "this is another string to parse", 2); in ATF_TEST_CASE_BODY()
88 "is ([^ ]*) ([a-z]*) to", "this is another string to parse", 1); in ATF_TEST_CASE_BODY()
100 "is ([^ ]*) ([a-z]*) to", "this is another string to parse", 10); in ATF_TEST_CASE_BODY()
112 const text::regex regex = text::regex::compile("number is ([0-9]+)", 1); in ATF_TEST_CASE_BODY()
135 const text::regex regex1 = text::regex::compile("foo", 0, false); in ATF_TEST_CASE_BODY()
136 ATF_REQUIRE(!regex1.match("bar Foo bar")); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/contrib/kyua/utils/fs/
H A Dpath_test.cpp37 #include <atf-c++.hpp>
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()
[all …]
/freebsd/usr.bin/touch/tests/
H A Dtouch_test.sh2 # Copyright (c) 2024 Dag-Erling Smørgrav
4 # SPDX-License-Identifier: BSD-2-Clause
12 atf_check -o inline:"$((mtime))\n" stat -f%m "$filename"
22 atf_check -s exit:1 -e match:"^usage" touch
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
[all …]
/freebsd/contrib/googletest/googletest/test/
H A Dgoogletest-filepath-test.cc35 // This file is #included from gtest-internal.h.
41 #include "gtest/internal/gtest-filepath.h"
42 #include "src/gtest-internal-inl.h"
59 int ret = DeleteFile(wpath) ? 0 : -1; in remove()
68 int ret = RemoveDirectory(wpath) ? 0 : -1; in _rmdir()
110 // RemoveDirectoryName "" -> ""
115 // RemoveDirectoryName "afile" -> "afile"
120 // RemoveDirectoryName "/afile" -> "afile"
126 // RemoveDirectoryName "adir/" -> ""
132 // RemoveDirectoryName "adir/afile" -> "afile"
[all …]
/freebsd/bin/chmod/tests/
H A Dchmod_test.sh31 df -T $mountpoint | tail -n 1 | cut -wf 2
37 atf_set "descr" "Verify that setting modes recursively via -R doesn't " \
38 "affect symlinks specified via the arguments when -H " \
43 atf_check mkdir -m 0777 -p A/B
44 atf_check ln -s B A/C
45 atf_check chmod -h 0777 A/C
46 atf_check -o inline:'40755\n40777\n120777\n' stat -f '%p' A A/B A/C
47 atf_check chmod -RH 0700 A
48 atf_check -o inline:'40700\n40700\n120700\n' stat -f '%p' A A/B A/C
49 atf_check chmod -RH 0600 A/C
[all …]
/freebsd/contrib/libarchive/tar/test/
H A Dtest_option_s.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2003-2008 Tim Kientzle
16 assertMakeFile("in/d1/foo", 0644, "foo"); in DEFINE_TEST()
17 assertMakeFile("in/d1/bar", 0644, "bar"); in DEFINE_TEST()
25 /* Does tar support -s option ? */ in DEFINE_TEST()
26 systemf("%s -cf - -s /foo/bar/ in/d1/foo > NUL 2> check.err", in DEFINE_TEST()
30 skipping("%s does not support -s option on this platform", in DEFINE_TEST()
39 systemf("%s -cf test1_1.tar -s /foo/bar/ in/d1/foo", testprog); in DEFINE_TEST()
40 systemf("%s -xf test1_1.tar -C test1", testprog); in DEFINE_TEST()
[all …]
H A Dtest_option_q.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2003-2007 Tim Kientzle
16 * any earlier versions. The -q/--fast-read option will in DEFINE_TEST()
17 * stop early, so we can verify -q/--fast-read by seeing in DEFINE_TEST()
19 * extracted. This also exercises -r mode, since that's in DEFINE_TEST()
23 assertMakeFile("foo", 0644, "foo1"); in DEFINE_TEST()
25 assertEqualInt(0, systemf("%s -cf archive.tar foo", testprog)); in DEFINE_TEST()
27 assertMakeFile("foo", 0644, "foo2"); in DEFINE_TEST()
29 assertEqualInt(0, systemf("%s -rf archive.tar foo", testprog)); in DEFINE_TEST()
[all …]
/freebsd/usr.sbin/chown/tests/
H A Dchown_test.sh31 df -T $mountpoint | tail -n 1 | cut -wf 2
37 atf_set "descr" "Verify that setting ownership recursively via -R doesn't " \
38 "affect symlinks specified via the arguments when -H " \
44 atf_check mkdir -p A/B
45 atf_check ln -s B A/C
46 atf_check chown -h 42:42 A/C
47 atf_check -o inline:'0:0\n0:0\n42:42\n' stat -f '%u:%g' A A/B A/C
48 atf_check chown -RH 84:84 A
49 atf_check -o inline:'84:84\n84:84\n84:84\n' stat -f '%u:%g' A A/B A/C
50 atf_check chown -RH 126:126 A/C
[all …]
/freebsd/usr.sbin/extattr/tests/
H A Dextattr_test.sh33 touch foo
34 atf_check -s not-exit:0 -e match:"Invalid argument" \
35 setextattr badnamespace myattr X foo
36 atf_check -s not-exit:0 -e match:"Invalid argument" \
37 lsextattr -q badnamespace foo
46 touch foo
47 atf_check -s exit:0 -o empty setextattr user myattr XYZ foo
48 atf_check -s exit:0 -o inline:"58 59 5a\n" \
49 getextattr -qx user myattr foo
58 touch foo
[all …]
/freebsd/contrib/pam-krb5/tests/pam-util/
H A Dfakepam-t.c4 * This is not actually a test for the pam-util layer, but rather is a test
6 * test the pam-util layer and PAM modules.
8 * The canonical version of this file is maintained in the rra-c-util package,
9 * which can be found at <https://www.eyrie.org/~eagle/software/rra-c-util/>.
33 * SPDX-License-Identifier: MIT
69 ok(env != NULL, "getenvlist when NULL returns non-NULL"); in main()
78 is_int(PAM_SUCCESS, pam_putenv(pamh, "TEST=foo"), "putenv TEST"); in main()
79 is_string("foo", pam_getenv(pamh, "TEST"), "getenv TEST"); in main()
80 is_int(PAM_SUCCESS, pam_putenv(pamh, "FOO=bar"), "putenv FOO"); in main()
81 is_int(PAM_SUCCESS, pam_putenv(pamh, "BAR=baz"), "putenv BAR"); in main()
[all …]
/freebsd/contrib/atf/atf-c++/detail/
H A Dtext_test.cpp26 #include "atf-c++/detail/text.hpp"
32 #include <atf-c++.hpp>
34 // ------------------------------------------------------------------------
36 // ------------------------------------------------------------------------
47 const char* orig = "foo"; in ATF_TEST_CASE_BODY()
51 ATF_REQUIRE(std::strcmp(copy, "foo") == 0); in ATF_TEST_CASE_BODY()
53 std::strcpy(copy, "bar"); in ATF_TEST_CASE_BODY()
54 ATF_REQUIRE(std::strcmp(copy, "bar") == 0); in ATF_TEST_CASE_BODY()
55 ATF_REQUIRE(std::strcmp(orig, "foo") == 0); in ATF_TEST_CASE_BODY()
67 // First set of tests using a non-sorted collection, std::vector. in ATF_TEST_CASE_BODY()
[all …]
/freebsd/contrib/kyua/utils/format/
H A Dformatter_test.cpp33 #include <atf-c++.hpp>
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()
[all …]
/freebsd/contrib/googletest/googlemock/test/
H A Dgmock_stress_test.cc39 // From gtest-port.h.
51 MOCK_METHOD1(Bar, int(int n)); // NOLINT
58 t->Join(); in JoinAndDelete()
68 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()
[all …]
/freebsd/contrib/libucl/tests/schema/
H A Ddependencies.json5 "dependencies": {"bar": ["foo"]} array
15 "data": {"foo": 1}, number
20 "data": {"foo": 1, "bar": 2}, number
25 "data": {"bar": 2}, number
29 "description": "ignores non-objects",
30 "data": "foo",
38 "dependencies": {"quux": ["foo", "bar"]}
48 "data": {"foo": 1, "bar": 2}, number
53 "data": {"foo": 1, "bar": 2, "quux": 3}, number
58 "data": {"foo": 1, "quux": 2}, number
[all …]
/freebsd/contrib/unifdef/tests/
H A Drecursive.experr1 unifdef: addsym FOO=BAR
2 unifdef: addsym BAR=ZIG
3 unifdef: addsym ZIG=BAR
5 unifdef: findsym BAR=ZIG
6 unifdef: indir... FOO=BAR
7 unifdef: ...ectsym FOO=ZIG
8 unifdef: findsym ZIG=BAR
9 unifdef: indir... BAR=ZIG
10 unifdef: ...ectsym BAR=BAR
11 unifdef: findsym BAR=BAR
[all …]
/freebsd/usr.sbin/pw/tests/
H A Dpw_usermod_test.sh10 atf_check -s exit:67 -e match:"no such user" ${PW} usermod test
11 atf_check -s exit:0 ${PW} useradd test
12 atf_check -s exit:0 ${PW} usermod test
13 atf_check -s exit:0 -o match:"^test:.*" \
17 # Test modifying a user with option -N
22 atf_check -s exit:67 -e match:"no such user" ${PW} usermod test -N
23 atf_check -s exit:0 ${PW} useradd test
24 atf_check -s exit:0 -o match:"^test:.*" ${PW} usermod test -N
25 atf_check -s exit:0 -o match:"^test:.*" \
34 atf_check -s exit:0 ${PW} useradd test -c "Test User,home,123,456"
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/renameat2/
H A Drenameat2_exchange.ksh1 #!/bin/ksh -p
2 # SPDX-License-Identifier: CDDL-1.0
11 # or https://opensource.org/licenses/CDDL-1.0.
35 log_must rm -rf $TESTDIR/*
42 echo "foo" > foo
43 echo "bar" > bar
45 # Self-exchange is a no-op.
46 log_must renameat2 -x foo foo
47 log_must grep '^foo$' foo
50 log_must renameat2 -x foo bar
[all …]

12345678910>>...40