Home
last modified time | relevance | path

Searched refs:TESTFILE (Results 1 – 25 of 128) sorted by relevance

123456

/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/xattr/
H A Dxattr_compat.ksh47 rm -f $TESTFILE $TMPFILE
55 TESTFILE=$TESTDIR/testfile.$$
62 log_must touch $TESTFILE
63 log_must set_xattr testattr1 value1 $TESTFILE
64 log_must set_xattr testattr2 value2 $TESTFILE
65 log_must set_xattr testattr3 value3 $TESTFILE
66 log_must ls_xattr $TESTFILE
69 log_must ls_xattr $TESTFILE
70 log_must eval "get_xattr testattr1 $TESTFILE > $TMPFILE"
72 log_must set_xattr testattr2 newvalue2 $TESTFILE
[all …]
/freebsd/tests/sys/cddl/zfs/tests/snapshot/
H A Drollback_003_pos.ksh72 for fs in "$TESTPOOL/$TESTFILE/$TESTFILE.1" "$TESTPOOL/$TESTFILE"
91 log_must $TOUCH /$TESTPOOL/$TESTFILE
94 log_must $ZFS create $TESTPOOL/$TESTFILE
99 log_must $ZFS snapshot $TESTPOOL/$TESTFILE@$TESTSNAP
105 log_must $TOUCH /$TESTPOOL/$TESTFILE/$TESTFILE.1
H A Dsnapshot_001_pos.ksh79 log_must $FILE_WRITE -o create -f $TESTDIR/$TESTFILE -b $BLOCKSZ \
83 FILE_SUM=`$SUM -r $TESTDIR/$TESTFILE | $AWK '{ print $1 }'`
90 log_must $FILE_WRITE -o append -f $TESTDIR/$TESTFILE -b $BLOCKSZ \
93 SNAP_FILE_SUM=`$SUM -r $SNAPDIR/$TESTFILE | $AWK '{ print $1 }'`
H A Dsnapshot_005_pos.ksh78 log_must $FILE_WRITE -o create -f $TESTDIR1/$TESTFILE -b $BLOCKSZ \
82 FILE_SUM=`$SUM -r $TESTDIR1/$TESTFILE | $AWK '{ print $1 }'`
89 log_must $FILE_WRITE -o append -f $TESTDIR1/$TESTFILE -b $BLOCKSZ \
92 SNAP_FILE_SUM=`$SUM -r $SNAPDIR1/$TESTFILE | $AWK '{ print $1 }'`
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/crtime/
H A Dcrtime_001_pos.ksh52 typeset TESTFILE=$TESTDIR/testfile
57 rm -f $TESTFILE
58 log_must touch $TESTFILE
59 typeset -i crtime=$(stat_crtime $TESTFILE)
60 typeset -i ctime=$(stat_ctime $TESTFILE)
64 log_must touch $TESTFILE
65 typeset -i crtime1=$(stat_crtime $TESTFILE)
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/snapshot/
H A Drollback_003_pos.ksh66 for fs in "$TESTPOOL/$TESTFILE/$TESTFILE.1" "$TESTPOOL/$TESTFILE"; do
84 log_must touch /$TESTPOOL/$TESTFILE
88 log_must zfs create $TESTPOOL/$TESTFILE
93 log_must zfs snapshot $TESTPOOL/$TESTFILE@$TESTSNAP
110 log_must touch /$TESTPOOL/$TESTFILE/$TESTFILE.1
H A Dsnapshot_001_pos.ksh65 log_must file_write -o create -f $TESTDIR/$TESTFILE -b $BLOCKSZ \
69 read -r FILE_SUM _ < <(cksum $TESTDIR/$TESTFILE)
76 log_must file_write -o append -f $TESTDIR/$TESTFILE -b $BLOCKSZ \
79 read -r SNAP_FILE_SUM _ < <(cksum $SNAPDIR/$TESTFILE)
H A Dsnapshot_005_pos.ksh68 log_must file_write -o create -f $TESTDIR1/$TESTFILE -b $BLOCKSZ \
72 read -r FILE_SUM _ < <(cksum $TESTDIR1/$TESTFILE)
79 log_must file_write -o append -f $TESTDIR1/$TESTFILE -b $BLOCKSZ \
82 read -r SNAP_FILE_SUM _ < <(cksum $SNAPDIR1/$TESTFILE)
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/stat/
H A Dstat_001_pos.ksh44 rm -f ${TESTFILE}
51 TESTFILE=${TESTDIR}/${TESTFILE0}
53 log_must touch ${TESTFILE}
54 log_must stat_generation ${TESTFILE}
55 log_must test $(stat_generation ${TESTFILE}) -ne 0
/freebsd/contrib/netbsd-tests/lib/libc/gen/posix_spawn/
H A Dt_fileactions.c68 #define TESTFILE "./the_input_data" macro
106 make_testfile(TESTFILE); in ATF_TC_BODY()
111 TESTFILE, O_RDONLY, 0); in ATF_TC_BODY()
124 insize = filesize(TESTFILE); in ATF_TC_BODY()
132 make_testfile(TESTFILE); in ATF_TC_BODY()
137 TESTFILE, O_RDONLY, 0); in ATF_TC_BODY()
150 insize = filesize(TESTFILE); in ATF_TC_BODY()
158 make_testfile(TESTFILE); in ATF_TC_BODY()
163 TESTFILE, O_RDONLY, 0); in ATF_TC_BODY()
176 insize = filesize(TESTFILE); in ATF_TC_BODY()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/scrub_mirror/
H A Dscrub_mirror_common.kshlib40 if [ -f ${TESTDIR}/0/${TESTFILE}.${atfile} ]; then
41 cksums[$atfile]=$($CKSUM ${TESTDIR}/0/${TESTFILE}.${atfile})
61 if [ -f ${TESTDIR}/0/${TESTFILE}.${atfile} ]; then
62 newcksum=$($CKSUM $TESTDIR/0/${TESTFILE}.${atfile})
66 log_note "${TESTFILE}.${atfile} checksums match:"\
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/append/
H A Dthreadsappend_001_pos.ksh56 TESTFILE='testfile-threadsappend'
70 log_must threadsappend ${TESTDIR}/${TESTFILE}
75 SIZE=`ls -l ${TESTDIR}/${TESTFILE} | awk '{print $5}'`
77 log_fail "'The length of ${TESTDIR}/${TESTFILE}' doesn't equal 1310720."
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_swap/
H A Dzvol_swap_003_pos.ksh51 [[ -f $TESTDIR/$TESTFILE ]] && log_must rm -f $TESTDIR/$TESTFILE
85 log_must file_write -o create -f $TESTDIR/$TESTFILE \
88 [[ ! -f $TESTDIR/$TESTFILE ]] &&
91 filesize=`ls -l $TESTDIR/$TESTFILE | awk '{print $5}'`
/freebsd/tests/sys/cddl/zfs/tests/truncate/
H A Dtruncate_002_pos.ksh66 log_note "Copying $srcfilename to $TESTFILE"
67 log_must $CP $srcfilename ${TESTDIR}/${TESTFILE}
69 log_note "Copying /dev/null to $TESTFILE"
70 log_must $CP /dev/null ${TESTDIR}/${TESTFILE}
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_wait/
H A Dzfs_wait_deleteq.ksh41 typeset -r TESTFILE="/$TESTPOOL/testfile"
46 log_must touch $TESTFILE
47 exec 3<> $TESTFILE
48 log_must rm $TESTFILE
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/truncate/
H A Dtruncate_002_pos.ksh59 log_must cp $srcfile $TESTDIR/$TESTFILE
60 log_must cp /dev/null $TESTDIR/$TESTFILE
62 if [[ -s $TESTDIR/$TESTFILE ]]; then
63 log_note "$(ls -l $TESTDIR/$TESTFILE)"
/freebsd/tests/sys/cddl/zfs/tests/zvol/zvol_swap/
H A Dzvol_swap_003_pos.ksh63 if [[ -f $TMPDIR/$TESTFILE ]]; then
64 log_must $RM -rf $TMPDIR/$TESTFILE
147 log_must $FILE_WRITE -o create -f $TMPDIR/$TESTFILE \
150 [[ ! -f $TMPDIR/$TESTFILE ]] &&
153 filesize=`$LS -l $TMPDIR/$TESTFILE | $AWK '{print $5}'`
H A Dzvol_swap_001_pos.ksh59 $RM -rf $TMPDIR/$TESTFILE
77 log_must $FILE_WRITE -o create -f $TMPDIR/$TESTFILE \
80 [[ ! -f $TMPDIR/$TESTFILE ]] &&
83 filesize=`$LS -l $TMPDIR/$TESTFILE | $AWK '{print $5}'`
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/refquota/
H A Drefquota_004_pos.ksh56 TESTFILE='testfile'
64 log_must mkfile 7M $mntpnt/$TESTFILE.$i
66 log_must rm $mntpnt/$TESTFILE.$i
74 log_mustnot mkfile 7M $mntpnt/$TESTFILE
H A Drefquota_005_pos.ksh56 TESTFILE='testfile'
65 log_must mkfile 7M $mntpnt/$TESTFILE.$i
67 log_must rm $mntpnt/$TESTFILE.$i
75 log_mustnot mkfile 7M $mntpnt/$TESTFILE
H A Drefquota_002_pos.ksh58 TESTFILE='testfile'
64 log_mustnot mkfile 20M $mntpnt/$TESTFILE
77 log_must rm $mntpnt/$TESTFILE
81 log_mustnot mkfile 20M $mntpnt/$TESTFILE
/freebsd/tests/sys/cddl/zfs/tests/refquota/
H A Drefquota_002_pos.ksh72 log_mustnot $MKFILE 20M $mntpnt/$TESTFILE
85 [ -f $mntpnt/$TESTFILE ] && log_must $RM $mntpnt/$TESTFILE
89 log_mustnot $MKFILE 20M $mntpnt/$TESTFILE
/freebsd/tests/sys/cddl/zfs/tests/threadsappend/
H A Dthreadsappend_001_pos.ksh80 log_must threadsappend ${TESTDIR}/${TESTFILE}
85 SIZE=`$LS -l ${TESTDIR}/${TESTFILE} | $AWK '{print $5}'`
87 log_fail "'The length of ${TESTDIR}/${TESTFILE}' doesnt equal 1310720."
/freebsd/tests/sys/cddl/zfs/tests/utils_test/
H A Dutils_test_003_pos.ksh64 populate_dir $TESTDIR/$TESTFILE $NUM_FILES $WRITE_COUNT $BLOCKSZ $DATA
65 inode_num=`$LS -li $TESTDIR/$TESTFILE.0 | $AWK '{print $1}'`
67 log_fail "Failed to determine inode of file: $TESTDIR/$TESTFILE.0"
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/atime/
H A Datime_001_pos.ksh63 log_mustnot check_atime_updated $mtpt/$TESTFILE
68 log_must check_atime_updated $mtpt/$TESTFILE
69 log_must check_atime_updated $mtpt/$TESTFILE

123456