Home
last modified time | relevance | path

Searched refs:tmpfile (Results 1 – 25 of 112) sorted by relevance

12345

/illumos-gate/usr/src/cmd/ast/libshell/common/tests/
H A Dsun_solaris_cr_6807179_shellpattern_uses_getpwnam.sh61 typeset tmpfile
64 rm -f "${tmpfile}"
68 truss -u :: -o "${tmpfile}" ${SHELL} -c '[[ ${hello} == ~(Elr)wo.*ld ]] ; true' || err_exit "truss …
69 [[ "$( < "${tmpfile}")" != *getpwnam* ]] || err_exit "truss log reports the use of getpwnam() for p…
70 rm "${tmpfile}" || err_exit "rm ${tmpfile} failed."
74 truss -u :: -o "${tmpfile}" ${SHELL} -c '[[ ${hello} == ~(Si)wo*ld ]] ; true' || err_exit "truss re…
75 [[ "$( < "${tmpfile}")" != *getpwnam* ]] || err_exit "truss log reports the use of getpwnam() for p…
76 rm "${tmpfile}" || err_exit "rm ${tmpfile} failed."
82 truss -u :: -o "${tmpfile}" ${SHELL} -c '[[ ${hello} == ~root/ ]] ; true' || err_exit "truss return…
83 [[ "$( < "${tmpfile}" )" == *getpwnam* ]] || err_exit "truss log reports the use of getpwnam() for …
[all …]
H A Dsun_solaris_cr_6800929_large_command_substitution_hang.sh100 typeset tmpfile
110 ( name="test1a" cmd="builtin cat ; print -- \"\$(cat \"${tmpfile}\" | cat)\" ; true" )
112 ( name="test1b" cmd="builtin cat ; print -- \"\${ cat \"${tmpfile}\" | cat ; }\" ; true" )
114 ( name="test1c" cmd="builtin cat ; print -- \"\$(cat \"${tmpfile}\" ; true)\" ; true" )
116 ( name="test1d" cmd="builtin cat ; print -- \"\${ cat \"${tmpfile}\" ; true ; }\" ; true" )
119 ( name="test1e" cmd="builtin -d cat /bin/cat ; print -- \"\$(cat \"${tmpfile}\" | cat)\" ; true" )
134 } >"${tmpfile}"
142 ${SHELL} -o errexit -c "${currtst.cmd}" >"${tmpfile}.out" &
157 …cmp -s "${tmpfile}" "${tmpfile}.out" || err_exit "${currtst.name}: ${tmpfile} and ${tmpfile}.out d…
158 rm "${tmpfile}.out"
[all …]
H A Dsun_solaris_command_substitution.sh50 typeset tmpfile
66 ( name="test1a" cmd="builtin cat ; print -- \"\$(cat \"${tmpfile}\" | cat)\" ; true" )
70 ( name="test1c" cmd="builtin cat ; print -- \"\$(cat \"${tmpfile}\" ; true)\" ; true" )
91 } >"${tmpfile}"
99 ${SHELL} -o errexit -c "${currtst.cmd}" >"${tmpfile}.out" &
114 …cmp -s "${tmpfile}" "${tmpfile}.out" || err_exit "${currtst.name}: ${tmpfile} and ${tmpfile}.out d…
115 rm "${tmpfile}.out"
119 rm "${tmpfile}"
269 ${SHELL} -o errexit -c "${currtst.cmd}" >"${tmpfile}.out" &
283 testout="$( < "${tmpfile}.out")"
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Dtst.freopen.ksh30 $dtrace -wq -o $tmpfile -s /dev/stdin $tmpfile <<EOF
56 if [ -f $tmpfile ]; then
57 rm $tmpfile
61 if [ -f $tmpfile.$i ]; then
62 rm $tmpfile.$i
74 tmpfile=/tmp/tst.freopen.$$
82 if [ -f $tmpfile.$iter ]; then
88 mv $tmpfile $tmpfile.$iter
92 if [ ! -f $tmpfile.$i ]; then
98 j=`cat $tmpfile.$i`
[all …]
H A Dtst.badfreopen.ksh30 $dtrace -wq -o $tmpfile -s /dev/stdin 2> $errfile <<EOF
75 tmpfile=/tmp/tst.badfreopen.$$
82 i=`cat $tmpfile`
85 echo "$0: unexpected contents in $tmpfile: " \
100 rm $tmpfile $errfile
H A Dtst.ftruncate.ksh30 $dtrace -q -o $tmpfile -s /dev/stdin <<EOF
56 tmpfile=/tmp/tst.ftruncate.$$
61 cat $tmpfile
62 rm $tmpfile
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_add/
H A Dzpool_add.kshlib40 typeset tmpfile="/tmp/vfstab.tmp"
45 cat $vfstab | grep "^/dev/dsk" >$tmpfile
51 done <$tmpfile
53 rm -f $tmpfile
63 typeset tmpfile="/tmp/mnttab.tmp"
68 cat $mnttab | grep "^/dev/dsk" >$tmpfile
74 done <$tmpfile
76 rm -f $tmpfile
H A Dzpool_add_003_pos.ksh55 [[ -e $tmpfile ]] && \
56 log_must rm -f $tmpfile
64 tmpfile="/var/tmp/zpool_add_003.tmp$$"
69 zpool add -n "$TESTPOOL" ${disk}s${SLICE1} > $tmpfile
74 cat $tmpfile | grep "$str" >/dev/null 2>&1
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_003_pos.ksh49 [[ -e $tmpfile ]] && log_must rm -f $tmpfile
52 tmpfile="/var/tmp/zpool_create_003.tmp$$"
68 create_pool $TESTPOOL ${disk}s${SLICE0} > $tmpfile
71 zpool create -n $TESTPOOL ${disk}s${SLICE0} > $tmpfile
77 cat $tmpfile | grep "$str" >/dev/null 2>&1
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dnss_write.c95 char *tmpfile; in _file_put_printer() local
101 if ((tmpfile = malloc(size)) == NULL) in _file_put_printer()
104 if (snprintf(tmpfile, size, "%sXXXXXX", file) >= size) { in _file_put_printer()
117 free(tmpfile); in _file_put_printer()
127 free(tmpfile); in _file_put_printer()
131 if ((fd = mkstemp(tmpfile)) < 0) { in _file_put_printer()
133 free(tmpfile); in _file_put_printer()
181 (void) rename(tmpfile, file); in _file_put_printer()
184 (void) unlink(tmpfile); in _file_put_printer()
189 (void) free(tmpfile); in _file_put_printer()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zdb/
H A Dzdb_002_pos.ksh35 typeset tmpfile="/var/tmp/zdb-feature-mismatch"
39 grep "$errstr" $tmpfile
40 rm -f $tmpfile
45 log_must eval "zdb $TESTPOOL >$tmpfile"
46 grep -q "$errstr" $tmpfile && \
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/zpool_iostat/
H A Dzpool_iostat_002_pos.ksh46 typeset tmpfile=/var/tmp/zfsiostat.out.$$
51 if [[ -f $tmpfile ]]; then
52 rm -f $tmpfile
63 zpool iostat $TESTPOOL 1 4 > $tmpfile 2>&1 &
65 stat_count=$(grep $TESTPOOL $tmpfile | wc -l)
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/pid/
H A Dtst.manypids.ksh46 tmpfile=/tmp/dtest.$$
58 echo "tick-1sec\n{\n\texit(0);\n}\n" > $tmpfile
61 echo "pid${pids[$i]}::malloc:entry\n{}\n" >> $tmpfile
65 $dtrace -s $tmpfile
68 rm $tmpfile
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/zfs_list/
H A Dzfs_list_003_pos.ksh47 if [[ -f $tmpfile ]]; then
48 rm -f $tmpfile
57 tmpfile=/var/tmp/zfslist.out.$$
67 zfs list -rH -o name $path > $tmpfile
69 grep "^${fs}$" $tmpfile > /dev/null 2>&1
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/
H A Dwhitespace_only.sh45 tmpfile=$(mktemp)
55 mv $before $tmpfile
57 cat $tmpfile >> $before
65 mv $after $tmpfile
67 cat $tmpfile >> $after
89 rm -f $before $after $tmpfile
/illumos-gate/usr/src/cmd/cmd-inet/usr.sadm/scripts/
H A Di.ipsecalgs36 tmpfile=/tmp/$$ipsecalgs
49 sed -e "/$pkg_start/,/$pkg_end/d" $dest > $tmpfile \
52 cp $dest $tmpfile || error=yes
56 echo "$pkg_start" >> $tmpfile || error=yes
57 cat $src >> $tmpfile || error=yes
58 echo "$pkg_end" >> $tmpfile || error=yes
63 mv $tmpfile $dest || error=yes
65 rm -f $tmpfile
/illumos-gate/usr/src/cmd/genmsg/
H A Dmain.c104 char tmpfile[32]; in main() local
297 (void) strlcpy(tmpfile, "/tmp/gensmg.XXXXXX", in main()
298 sizeof (tmpfile)); in main()
300 if ((tmpfd = mkstemp(tmpfile)) == -1) { in main()
302 "cannot create \"%s\""), tmpfile); in main()
310 "cannot create \"%s\""), tmpfile); in main()
315 (void) unlink(tmpfile); in main()
324 (void) unlink(tmpfile); in main()
341 (void) file_copy(tmpfile, newfile); in main()
343 (void) unlink(tmpfile); in main()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rootpool/
H A Drootpool_002_neg.ksh51 typeset tmpfile="/tmp/mounted-datasets.$$"
57 mount -p | awk '{if ($4 == "zfs") print $1}' > $tmpfile
64 done < $tmpfile
65 rm -f $tmpfile
/illumos-gate/usr/src/tools/onbld/Checks/
H A DShellLint.py29 ret, tmpfile = processcheck('shcomp', options, fh, output)
31 if tmpfile:
32 for line in tmpfile:
41 tmpfile.close()
H A DJStyle.py54 ret, tmpfile = processcheck('jstyle', options, fh, output)
56 if tmpfile:
57 for line in tmpfile:
61 tmpfile.close()
H A DCStyle.py55 ret, tmpfile = processcheck('cstyle', options, fh, output)
57 if tmpfile:
58 for line in tmpfile:
62 tmpfile.close()
H A DManLint.py50 ret, tmpfile = processcheck('mandoc', options, fh, output)
52 if tmpfile:
53 for line in tmpfile:
57 tmpfile.close()
H A DProcessCheck.py49 tmpfile = tempfile.TemporaryFile(prefix=command, mode="w+")
56 stdin=subprocess.PIPE, stdout=tmpfile,
68 tmpfile.seek(0)
70 return (ret < 0 and 1 or ret, tmpfile)
/illumos-gate/usr/src/test/libc-tests/tests/random/
H A Dinz_inval.c38 char *tmpfile; in main() local
82 tmpfile = strdup(template); in main()
83 assert(tmpfile != NULL); in main()
84 fd = mkstemp(tmpfile); in main()
109 (void) unlink(tmpfile); in main()
110 free(tmpfile); in main()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/mdb/
H A Dmdb_001_pos.ksh47 rm -f $tmpfile
53 tmpfile=$(mktemp)
104 log_must eval "mdb -ke \"${cmd}\" >$tmpfile 2>&1"
107 log_mustnot grep -q "mdb:" $tmpfile

12345