Home
last modified time | relevance | path

Searched refs:testdir (Results 1 – 25 of 60) sorted by relevance

123

/freebsd-13.1/bin/sh/tests/expansion/
H A Dpathname1.025 mkdir testdir testdir2 'testdir/*' 'testdir/?' testdir/a testdir/b testdir2/b
27 touch testf 'testdir/*/1' 'testdir/?/1' testdir/a/1 testdir/b/1 testdir2/b/.a
30 check 'testdir/b' 'testdir/b'
31 check 'testdir/c' 'testdir/c'
38 check 'testdir*/a' 'testdir/a'
43 check 'testdir/*' 'testdir/* testdir/? testdir/a testdir/b'
44 check 'testdir/*/1' 'testdir/*/1 testdir/?/1 testdir/a/1 testdir/b/1'
45 check '"testdir/"*/1' 'testdir/*/1 testdir/?/1 testdir/a/1 testdir/b/1'
53 check 'testdir/\*/' 'testdir/*/'
54 check 'testdir/\?/' 'testdir/?/'
[all …]
H A Dpathname2.025 mkdir testdir testdir2 'testdir/*' 'testdir/?' testdir/a testdir/b testdir2/b
27 touch testf 'testdir/*/1' 'testdir/?/1' testdir/a/1 testdir/b/1 testdir2/b/.a
29 check '*\/' 'testdir/ testdir2/'
30 check '"testdir/"*"/1"' 'testdir/*/1 testdir/?/1 testdir/a/1 testdir/b/1'
31 check '"testdir/"*"/"*' 'testdir/*/1 testdir/?/1 testdir/a/1 testdir/b/1'
32 check '"testdir/"*\/*' 'testdir/*/1 testdir/?/1 testdir/a/1 testdir/b/1'
33 check '"testdir"*"/"*"/"*' 'testdir/*/1 testdir/?/1 testdir/a/1 testdir/b/1'
/freebsd-13.1/contrib/bc/tests/
H A Dall.sh31 testdir=$(dirname "$script")
33 . "$testdir/../scripts/functions.sh"
84 exe="$testdir/../bin/$d"
131 done < "$testdir/$d/all.txt"
135 sh "$testdir/stdin.sh" "$d" "$exe" "$@" &
138 sh "$testdir/stdin.sh" "$d" "$exe" "$@"
153 sh "$testdir/read.sh" "$d" "$exe" "$@" &
156 sh "$testdir/read.sh" "$d" "$exe" "$@"
164 sh "$testdir/errors.sh" "$d" "$exe" "$@"
175 sh "$testdir/error.sh" "$d" "$b" "$@" &
[all …]
H A Dstdin.sh34 testdir=$(dirname "$script")
36 . "$testdir/../scripts/functions.sh"
38 outputdir=${BC_TEST_OUTPUT_DIR:-$testdir}
45 cat "$testdir/all.txt"
57 exe="$testdir/../bin/$d"
88 cat "$testdir/$d/stdin.txt" | "$exe" "$@" "$options" > "$out" 2> /dev/null
89 checktest "$d" "$?" "stdin" "$testdir/$d/stdin_results.txt" "$out"
94 cat "$testdir/$d/stdin1.txt" | "$exe" "$@" "$options" > "$out" 2> /dev/null
95 checktest "$d" "$?" "stdin1" "$testdir/$d/stdin1_results.txt" "$out"
97 cat "$testdir/$d/stdin2.txt" | "$exe" "$@" "$options" > "$out" 2> /dev/null
[all …]
H A Dtest.sh34 testdir=$(dirname "$script")
36 . "$testdir/../scripts/functions.sh"
38 outputdir=${BC_TEST_OUTPUT_DIR:-$testdir}
45 cat "$testdir/all.txt"
54 name="$testdir/$d/$t.txt"
55 results="$testdir/$d/${t}_results.txt"
76 exe="$testdir/../bin/$d"
115 "$d" "$testdir/$d/scripts/$t.$d" > "$name"
H A Dread.sh33 testdir=$(dirname "$script")
35 . "$testdir/../scripts/functions.sh"
37 outputdir=${BC_TEST_OUTPUT_DIR:-$testdir}
44 cat "$testdir/all.txt"
56 exe="$testdir/../bin/$d"
59 name="$testdir/$d/read.txt"
60 results="$testdir/$d/read_results.txt"
61 errors="$testdir/$d/read_errors.txt"
H A Dscript.sh34 testdir=$(dirname "${script}")
36 . "$testdir/../scripts/functions.sh"
38 outputdir=${BC_TEST_OUTPUT_DIR:-$testdir}
84 exe="$testdir/../bin/$d"
103 scriptdir="$testdir/$d/scripts"
146 orig="$testdir/$name.txt"
161 printf '%s\n' "$halt" | "$d" "$s" | sed -n -f "$testdir/script.sed" > "$results"
H A Dhistory.sh32 testdir=$(dirname "$script")
34 . "$testdir/../scripts/functions.sh"
70 exe="$testdir/../bin/$d"
83 idx=$("$py" "$testdir/history.py" "$d" -a)
97 "$py" "$testdir/history.py" "$d" "$i" "$exe" "$@"
H A Derrors.sh33 testdir=$(dirname "$script")
35 . "$testdir/../scripts/functions.sh"
37 outputdir=${BC_TEST_OUTPUT_DIR:-$testdir}
49 exe="$testdir/../bin/$d"
93 printf '%s\n' "$halt" | "$exe" "$@" -e "1+1" -f- -f "$testdir/$d/decimal.txt" 2> "$out" > /dev/null
101 for testfile in $testdir/$d/*errors.txt; do
H A Dscripts.sh32 testdir=$(dirname "${script}")
89 exe="$testdir/../bin/$d"
92 scriptdir="$testdir/$d/scripts"
102 sh "$testdir/script.sh" "$d" "$f" "$run_extra_tests" "$run_stack_tests" \
106 sh "$testdir/script.sh" "$d" "$f" "$run_extra_tests" "$run_stack_tests" \
H A Derror.sh31 testdir=$(dirname "$script")
33 . "$testdir/../scripts/functions.sh"
35 outputdir=${BC_TEST_OUTPUT_DIR:-$testdir}
50 exe="$testdir/../bin/$d"
81 testfile="$testdir/$d/errors/$t"
H A Dother.sh33 testdir=$(dirname "$script")
35 . "$testdir/../scripts/functions.sh"
37 outputdir=${BC_TEST_OUTPUT_DIR:-$testdir}
53 exe="$testdir/../bin/$d"
220 "$testdir/dc/scripts/easter.sh" "$exe" 2021 "$@" | cut -c1-12 > "$easter_out"
268 f="$testdir/$d/add.txt"
270 results=$(cat "$testdir/$d/add_results.txt")
311 printf '%s\n' "$halt" | "$exe" "$@" -lz "$testdir/bc/leadingzero.txt" > "$out2"
313 checktest "$d" "$?" "leading zero script" "$testdir/bc/leadingzero_results.txt" "$out2"
371 "$exe" "$@" "$testdir" > /dev/null 2> "$out2"
/freebsd-13.1/libexec/rtld-elf/tests/
H A Dld_library_pathfds.c36 int testdir; member
91 asprintf(&pathfds, "LD_LIBRARY_PATH_FDS=%d", files.testdir) > 0); in ATF_TC_BODY()
106 files.testdir, files.etc) > 0); in ATF_TC_BODY()
121 files.root, files.testdir, files.usr) > 0); in ATF_TC_BODY()
136 files.root, files.testdir) > 0); in ATF_TC_BODY()
162 dp->testdir = opendir(atf_tc_get_config_var(tc, "srcdir")); in setup()
163 ATF_REQUIRE(dp->testdir >= 0); in setup()
165 (dp->binary = openat(dp->testdir, TARGET_ELF_NAME, O_RDONLY)) >= 0); in setup()
H A Dld_preload_fds.c40 int testdir; in setup() local
42 testdir = opendir(atf_tc_get_config_var(tc, "srcdir")); in setup()
43 ATF_REQUIRE(testdir >= 0); in setup()
45 binaryfd = openat(testdir, TARGET_ELF_NAME, O_RDONLY); in setup()
47 libraryfd = openat(testdir, TARGET_LIBRARY, O_RDONLY); in setup()
50 close(testdir); in setup()
/freebsd-13.1/contrib/bc/scripts/
H A Dkaratsuba.py47 testdir = os.path.dirname(script) variable
49 if testdir == "":
50 testdir = os.getcwd() variable
86 exe = testdir + "/bin/bc"
116 p = run([ "{}/../configure.sh".format(testdir), "-O3" ], flags)
161 p = run([ "{}/../configure.sh".format(testdir), "-O3", "-k{}".format(i) ], config_env)
180 cmd = [ "{}/../tests/test.sh".format(testdir), "bc", test, "0", "0", exe ]
194 cmd = [ "{}/../tests/script.sh".format(testdir), "bc", script + ".bc",
214 cmd = [ exe, "{}/../tests/bc/power.txt".format(testdir) ]
/freebsd-13.1/contrib/byacc/
H A Dmakefile.in41 testdir = $(srcdir)/test
138 - rm -f $(testdir)/yacc/test-* $(testdir)/btyacc/test-*
150 $(SHELL) $(testdir)/run_test.sh $(testdir)
153 $(SHELL) $(testdir)/run_make.sh $(testdir)
156 $(SHELL) $(testdir)/run_lint.sh $(testdir)
/freebsd-13.1/tests/sys/cddl/zfs/tests/acl/trivial/
H A Dzfs_acl_chmod_001_pos.ksh131 log_must usr_exec $MKDIR $testdir
132 log_must test_chmod_mapping $testdir
138 log_must usr_exec $CHMOD A+${acl} $testdir
142 log_must test_chmod_mapping $testdir
148 log_must usr_exec $RM -rf $testdir
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/suid/
H A Dsuid_write_to_file.c60 const char *testdir = getenv("TESTDIR"); in main() local
61 if (!testdir) { in main()
67 if (stat(testdir, &st) == -1 && mkdir(testdir, 0777) == -1) { in main()
73 snprintf(fpath, sizeof (fpath), "%s/%s", testdir, name); in main()
/freebsd-13.1/contrib/one-true-awk/
H A DREGRESS13 if [ -d testdir ]
18 echo extracting testdir
21 echo $0: No testdir directory and no awktest.tar to extract it from! >&2
25 cd testdir
/freebsd-13.1/contrib/bc/tests/bc/
H A Dtimeconst.sh33 testdir=$(dirname "$script")
35 outputdir=${BC_TEST_OUTPUT_DIR:-$testdir/..}
42 timeconst="$testdir/scripts/timeconst.bc"
50 bc="$testdir/../../bin/bc"
/freebsd-13.1/tests/sys/cddl/zfs/tests/acl/nontrivial/
H A Dzfs_acl_tar_002_pos.ksh93 log_note "Create a file: $testfile, and directory: $testdir, in zfs filesystem. " \
103 log_must usr_exec $MKDIR $testdir
106 log_must usr_exec $RUNAT $testdir $CP $MYTESTFILE attr.0
112 log_must usr_exec $CHMOD ${ops[0]} $testdir
122 for obj in $testfile $testdir; do
/freebsd-13.1/contrib/netbsd-tests/usr.sbin/mtree/
H A Dt_mtree.sh379 mkdir testdir
380 cd testdir
422 mkdir testdir
424 touch testdir/bar
425 mtree -c -p testdir > mtree1.spec
431 rm -f testdir/bar
432 ln -s foo testdir/bar
434 chown -h operator testdir/bar
435 mtree -c -p testdir > mtree2.spec
/freebsd-13.1/bin/mv/tests/
H A Dlegacy_test.sh19 rm -rf testdir $TMPDIR/testdir
20 mkdir -p testdir $TMPDIR/testdir
21 cd testdir
35 rm -rf testdir $TMPDIR/testdir
139 for FS in '' $TMPDIR/testdir/
/freebsd-13.1/contrib/serf/build/
H A Dcheck.py34 testdir = sys.argv[1] variable
36 testdir = 'test' variable
54 for case in glob.glob(testdir + "/testcases/*.response"):
/freebsd-13.1/contrib/netbsd-tests/usr.bin/make/
H A Dt_make.sh47 local testdir="$(atf_get_srcdir)/unit-tests"
50 make -f "${testdir}/Makefile" "${makename}.out"
51 atf_check -o file:"${testdir}/${makename}.exp" cat "${makename}.out"

123