Index: projects/zfsd/head/etc/mtree/BSD.tests.dist =================================================================== --- projects/zfsd/head/etc/mtree/BSD.tests.dist (revision 329289) +++ projects/zfsd/head/etc/mtree/BSD.tests.dist (revision 329290) @@ -1,1042 +1,1034 @@ # $FreeBSD$ # # Please see the file src/etc/mtree/README before making changes to this file. # /set type=dir uname=root gname=wheel mode=0755 . bin cat .. chflags .. chmod .. date .. dd .. echo .. expr .. ln .. ls .. mkdir .. mv .. pax .. pkill .. pwait .. rmdir .. sh builtins .. errors .. execution .. expansion .. invocation .. parameters .. parser .. set-e .. .. sleep .. test .. .. cddl lib .. sbin .. usr.bin ctfconvert .. .. usr.sbin dtrace common aggs .. arithmetic .. arrays .. assocs .. begin .. bitfields .. buffering .. builtinvar .. cg .. clauses .. cpc .. decls .. drops .. dtraceUtil .. end .. env .. enum .. error .. exit .. fbtprovider .. funcs .. grammar .. include .. inline .. io .. ip .. java_api .. json .. lexer .. llquantize .. mdb .. mib .. misc .. multiaggs .. offsetof .. operators .. pid .. plockstat .. pointers .. pragma .. predicates .. preprocessor .. print .. printa .. printf .. privs .. probes .. proc .. profile-n .. providers .. raise .. rates .. safety .. scalars .. sched .. scripting .. sdt .. sizeof .. speculation .. stability .. stack .. stackdepth .. stop .. strlen .. strtoll .. struct .. sugar .. syscall .. sysevent .. tick-n .. trace .. tracemem .. translators .. typedef .. types .. uctf .. union .. usdt .. ustack .. vars .. version .. .. .. zfsd .. .. .. etc rc.d .. .. games .. gnu lib .. usr.bin diff .. .. .. lib atf libatf-c detail .. .. libatf-c++ detail .. .. test-programs .. .. libarchive .. libc c063 .. db .. gen execve .. posix_spawn .. .. hash data .. .. iconv .. inet .. locale .. net getaddrinfo data .. .. .. nss .. regex data .. .. resolv .. rpc .. ssp .. setjmp .. stdio .. stdlib .. string .. sys .. time .. tls dso .. .. termios .. ttyio .. .. libcam .. libcasper services cap_dns .. cap_grp .. cap_pwd .. cap_sysctl .. .. .. libcrypt .. libdevdctl .. libkvm .. libmp .. libnv .. libproc .. libregex data .. .. librt .. libsbuf .. libthr dlopen .. .. libutil .. libxo .. msun .. .. libexec atf atf-check .. atf-sh .. .. rtld-elf .. .. sbin dhclient .. devd .. growfs .. ifconfig .. mdconfig .. pfctl files .. .. .. secure lib .. libexec .. usr.bin .. usr.sbin .. .. share examples tests atf .. plain .. tap .. .. .. zoneinfo .. .. sys acl .. aio .. cddl zfs bin .. include .. tests acl cifs .. nontrivial .. trivial .. .. atime .. bootfs .. cache .. cachefile .. clean_mirror .. cli_root zfs_upgrade .. zfs_promote .. zfs_clone .. zfs_property .. zfs_destroy .. zpool_create .. zpool_history .. zpool_expand .. zpool_remove .. zfs_mount .. zfs_unshare .. zdb .. zpool_online .. zpool_get .. zpool_export .. zfs_copies .. zfs_get .. zfs .. zpool_clear .. zpool_import blockfiles .. .. zpool .. zpool_offline .. zpool_replace .. zfs_rollback .. zpool_set .. zfs_send .. zfs_set .. zpool_detach .. zfs_diff .. zpool_scrub .. zfs_inherit .. zfs_snapshot .. zfs_share .. zpool_destroy .. zpool_status .. zfs_unmount .. zfs_receive .. zfs_create .. zpool_upgrade blockfiles .. .. zpool_add .. zfs_rename .. zpool_attach .. zfs_reservation .. .. cli_user misc .. zfs_list .. zpool_iostat .. zpool_list .. .. compression .. ctime .. delegate .. devices .. exec .. grow_pool .. grow_replicas .. history .. hotplug .. hotspare .. inheritance .. interop .. inuse .. iscsi .. large_files .. largest_pool .. link_count .. mdb .. migration .. mmap .. mount .. mv_files .. nestedfs .. no_space .. online_offline .. pool_names .. poolversion .. privilege .. quota .. redundancy .. refquota .. refreserv .. - remote - cross_endian - .. - rebooting - .. - sharing - .. - .. rename_dirs .. replacement .. reservation .. rootpool .. rsend .. scrub_mirror .. slog .. snapshot .. snapused .. sparse .. threadsappend .. truncate .. txg_integrity .. userquota .. utils_test .. write_dirs .. xattr .. zfsd .. zil .. zinject .. zones .. zvol zvol_ENOSPC .. zvol_cli .. zvol_misc .. zvol_swap .. .. zvol_thrash .. .. .. .. dtrace .. fifo .. file .. fs tmpfs .. .. geom class concat .. eli .. gate .. gpt .. mirror .. nop .. part .. raid3 .. shsec .. stripe .. uzip etalon .. .. .. .. kern acct .. execve .. pipe .. .. kqueue libkqueue .. .. mac bsdextended .. portacl .. .. mqueue .. net .. netinet .. netipsec tunnel .. .. netpfil pf .. .. opencrypto .. pjdfstest chflags .. chmod .. chown .. ftruncate .. granular .. link .. mkdir .. mkfifo .. mknod .. open .. rename .. rmdir .. symlink .. truncate .. unlink .. utimensat .. .. posixshm .. sys .. vfs .. vm .. .. usr.bin apply .. awk .. basename .. bmake archives fmt_44bsd .. fmt_44bsd_mod .. fmt_oldbsd .. .. basic t0 .. t1 .. t2 .. t3 .. .. execution ellipsis .. empty .. joberr .. plus .. .. shell builtin .. meta .. path .. path_select .. replace .. select .. .. suffixes basic .. src_wild1 .. src_wild2 .. .. syntax directive-t0 .. enl .. funny-targets .. semi .. .. sysmk t0 2 1 .. .. mk .. .. t1 2 1 .. .. mk .. .. t2 2 1 .. .. mk .. .. .. variables modifier_M .. modifier_t .. opt_V .. t0 .. .. .. bsdcat .. calendar .. cmp .. compress .. cpio .. col .. comm .. csplit .. cut .. dc .. diff .. dirname .. du .. file2c .. find .. fold .. getconf .. grep .. gzip .. head .. hexdump .. ident .. indent .. join .. jot .. lastcomm .. limits .. m4 .. mkimg .. ncal .. opensm .. pr .. printf .. procstat .. rs .. sdiff .. sed regress.multitest.out .. .. soelim .. stat .. tail .. tar .. timeout .. tr .. truncate .. units .. uudecode .. uuencode .. uniq .. vmstat .. xargs .. xinstall .. xo .. yacc yacc .. .. .. usr.sbin chown .. etcupdate .. extattr .. fstyp .. makefs .. newsyslog .. nmtree .. pw .. rpcbind .. sa .. .. .. # vim: set expandtab ts=4 sw=4: Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cleanup.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cleanup.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cleanup.ksh (nonexistent) @@ -1,34 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)cleanup.ksh 1.1 07/05/25 SMI" -# - -. ${STF_SUITE}/include/libtest.kshlib - -if check_iscsi_remote ; then - log_unsupported "iscsi is set as remote" -fi Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/cleanup.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/cleanup.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/cleanup.ksh (nonexistent) @@ -1,47 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)cleanup.ksh 1.3 08/12/17 SMI" -# - -. ${STF_SUITE}/include/libtest.kshlib - -(( ${#RHOSTS} == 0 )) && log_unsupported - -verify_runnable "global" - -prog=$(whence -p $0) -progpath=${prog%/*} -progdirname=${progpath##*/} # test case directory name -relpath=${progpath#$STF_SUITE/} # relative path to the test suite top directory -# Get the test suite package installation directory in the remote host -R_PKGDIR=$(get_remote_pkgpath $RHOST) - -rsh_status "" $RHOST "$R_PKGDIR/$relpath/r_cleanup $RTEST_ROOT" -(( $? != 0 )) && \ - log_fail "Cleanup remote host failed." - -default_cleanup Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/sharing_test.sh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/sharing_test.sh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/sharing_test.sh (nonexistent) @@ -1,54 +0,0 @@ -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2012 Spectra Logic. All rights reserved. -# Use is subject to license terms. -# - - -atf_test_case sharing_001_pos cleanup -sharing_001_pos_head() -{ - atf_set "descr" "Verify .zfs support for NFS version 3 & 4, but not for version 2." - atf_set "require.progs" rcp rsh -} -sharing_001_pos_body() -{ - . $(atf_get_srcdir)/../../../include/default.cfg - . $(atf_get_srcdir)/sharing.cfg - - ksh93 $(atf_get_srcdir)/setup.ksh || atf_fail "Setup failed" - ksh93 $(atf_get_srcdir)/sharing_001_pos.ksh || atf_fail "Testcase failed" -} -sharing_001_pos_cleanup() -{ - . $(atf_get_srcdir)/../../../include/default.cfg - . $(atf_get_srcdir)/sharing.cfg - - ksh93 $(atf_get_srcdir)/cleanup.ksh || atf_fail "Cleanup failed" -} - - -atf_init_test_cases() -{ - - atf_add_test_case sharing_001_pos -} Property changes on: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/sharing_test.sh ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/sharing_001_pos.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/sharing_001_pos.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/sharing_001_pos.ksh (nonexistent) @@ -1,145 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)sharing_001_pos.ksh 1.2 07/01/09 SMI" -# - -. $STF_SUITE/include/libtest.kshlib - -################################################################################ -# -# __stc_assertion_start -# -# ID: sharing_001_pos -# -# DESCRIPTION: -# Verify .zfs support with NFS version 3 & 4, but not support with NFS -# version 2. -# -# STRATEGY: -# 1. Create three zfs filesystems in remote host, populate them with -# snapshot, and share them -# 2. Mount the shared filesystems from remote host to local host with -# with different NFS version: 2, 3 and 4 -# 3. Verify the data in the file system and the snapshot directory -# -# TESTABILITY: explicit -# -# TEST_AUTOMATION_LEVEL: automated -# -# CODING_STATUS: COMPLETED (2006-04-26) -# -# __stc_assertion_end -# -################################################################################ - -verify_runnable "global" - -function cleanup -{ - typeset mntpt - - for mntpt in $NFSMNTPT $NFSMNTPT1 $NFSMNTPT2; do - ismounted $mntpt "nfs" && \ - log_must $UMOUNT -f $mntpt - [[ -d $mntpt ]] && \ - log_must $RM -rf $mntpt - done -} - -# -# Verify the mounting result through different NFS versions -# -# $1 filesystem mountpoint -# $2 snapshot name -# $3 NFS mount version -# - -function verify_mounting # -{ - typeset mntpt=$1 - typeset snap=$2 - typeset ver=$3 - typeset snapdir=$mntpt/$(get_snapdir_name)/$snap - typeset snapfile - typeset fname - typeset origcksum - typeset snapcksum - - if [[ "$ver" == "2" ]]; then - [[ -d $snapdir ]] && \ - log_fail ".zfs should not support via NFS verision $ver" - else - for file in `$FIND $mntpt -type f`; do - fname=${file##$mntpt} - fname=${fname#/} - snapfile=$snapdir/$fname - - [[ ! -e $snapfile ]] && \ - log_fail "The file exists in filesystem" \ - "but not exists in its snapshot directroy" \ - "when mounting with NFS version $ver." - - $DIFF $file $snapfile >/dev/null 2>&1 - (( $? != 0 )) && \ - log_fail "The contents of $file differ with its" \ - "snapshot file $snapfile when mounting with" \ - "NFS version $ver." - - origcksum="`$CKSUM $file | $AWK '{print $1 $2}'`" - snapcksum="`$CKSUM $snapfile | $AWK '{print $1 $2}'`" - [[ "$origcksum" != "$snapcksum" ]] && \ - log_fail "The checksum of $file differs with its" \ - "snapshot file $snapfile when mounting with" \ - "NFS version $ver." - done - fi -} - -log_assert "Verify .zfs support for NFS version 3 & 4, but not for version 2." - -log_onexit cleanup - -for mntpt in $NFSMNTPT $NFSMNTPT1 $NFSMNTPT2; do - [[ ! -d $mntpt ]] && \ - log_must $MKDIR -p -m 0777 $mntpt -done - -for op_objs in "2 $NFSMNTPT $RTESTDIR $SNAP" \ - "3 $NFSMNTPT1 $RTESTDIR1 $SNAP1" \ - "4 $NFSMNTPT2 $RTESTDIR2 $SNAP2"; do - ver=`$ECHO $op_objs | $AWK '{print $1}'` - mntpt=`$ECHO $op_objs | $AWK '{print $2}'` - shdir=`$ECHO $op_objs | $AWK '{print $3}'` - snap=`$ECHO $op_objs | $AWK '{print $4}'` - - log_must $MOUNT -F nfs -o "rw,vers=$ver" \ - $RHOST:$shdir $mntpt - - verify_mounting $mntpt $snap $ver -done - -log_pass Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/setup.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/setup.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/setup.ksh (nonexistent) @@ -1,68 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)setup.ksh 1.3 08/12/17 SMI" -# - -. ${STF_SUITE}/include/libtest.kshlib -. ${STF_SUITE}/tests/remote/remote_common.kshlib - -(( ${#RHOSTS} == 0 )) && log_unsupported - -verify_runnable "global" - -prog=$(whence -p $0) -progpath=${prog%/*} -progdirname=${progpath##*/} # test case directory name -relpath=${progpath#$STF_SUITE/} # relative path to the test suite top directory -# Get the test suite package installation directory in the remote host -R_PKGDIR=$(get_remote_pkgpath $RHOST) -RDISK="$(get_disks $RHOST)" - -rsh_status "" $RHOST "$MKDIR -m 0777 $RTEST_ROOT/$progdirname" -(( $? != 0 )) && \ - log_fail "Create directory in remote host failed." - -#Transfer the parameters to remote host to keep the parameters consistency -rcfgfile=$TMPDIR/rcfg.${TESTCASE_ID} -$ECHO "#!/usr/local/bin/ksh93 -p" >$rcfgfile -for varname in RTESTPOOL RTESTFS RTESTFS1 RTESTFS2 \ - SNAP SNAP1 SNAP2 RTESTDIR RTESTDIR1 \ - RTESTDIR2 SHROPT RHOST RDISK R_PKGDIR; -do - $ECHO "export $varname=$(eval $ECHO \$$varname)" >>$rcfgfile -done -$RCP $rcfgfile $RHOST:$RTEST_ROOT/$progdirname/r_sharing.cfg -$RM -f $rcfgfile - -rsh_status "" $RHOST "$R_PKGDIR/$relpath/r_setup $RTEST_ROOT" -(( $? != 0 )) && \ - log_fail "Setup remote host failed." - -DISK=${DISKS%% *} -default_setup $DISK - -log_pass Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/r_cleanup.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/r_cleanup.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/r_cleanup.ksh (nonexistent) @@ -1,58 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2009 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)r_cleanup.ksh 1.3 09/08/06 SMI" -# -RTEST_ROOT=$1 -prog=`whence -p $0` -progpath=${prog%/*} -progdirname=${progpath##*/} # test case directory name -commlibpath=${progpath%/*} - -. $RTEST_ROOT/stf_config.vars -. $RTEST_ROOT/$progdirname/r_sharing.cfg -. $R_PKGDIR/commands.cfg -. $commlibpath/remote_common.kshlib - -typeset -i ret -$ZFS unshare -a -ret=$? -(( $ret != 0 )) && _err_exit $ret \ - "Unsharing all zfs filesystems failed." -unmount_all_safe > /dev/null 2>&1 - -$ZPOOL list -H $RTESTPOOL >/dev/null 2>&1 -if (( $? == 0 )); then - $ZPOOL destroy -f $RTESTPOOL - ret=$? - (( $ret != 0 )) && _err_exit $ret \ - "Destroy pool $RTESTPOOL failed." -fi - -for dir in $RTESTDIR $RTESTDIR1 $RTEST_ROOT/$progdirname; do - [[ -d $dir ]] && $RM -rf $dir -done - Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/r_setup.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/r_setup.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/r_setup.ksh (nonexistent) @@ -1,98 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)r_setup.ksh 1.2 07/01/09 SMI" -# -export RTEST_ROOT=$1 -prog=`whence -p $0` -progpath=${prog%/*} -progdirname=${progpath##*/} # test case directory name -commlibpath=${progpath%/*} - -. $RTEST_ROOT/stf_config.vars -. $RTEST_ROOT/$progdirname/r_sharing.cfg -. $R_PKGDIR/commands.cfg -. $commlibpath/remote_common.kshlib - -relpath=${progpath#$R_PKGDIR/} # relative path to the test - # suite top directory - -if [[ "$RDISK" == "detect" ]]; then - RDISK="$(detectdisks)" -fi -RDISK=${RDISK%% *} - -typeset -i ret -$ZPOOL list -H $RTESTPOOL >/dev/null 2>&1 -(( $? == 0 )) && \ - $ZPOOL destroy -f $RTESTPOOL - -$ZPOOL create -f $RTESTPOOL $RDISK -ret=$? -(( $ret != 0 )) && _err_exit $ret \ - "Creating pool $RTESTPOOL with disk(s) $RDISK failed." - -for op_objs in "$RTESTFS $RTESTDIR $SNAP" \ - "$RTESTFS1 $RTESTDIR1 $SNAP1" \ - "$RTESTFS2 $RTESTDIR2 $SNAP2"; do - fs=`$ECHO $op_objs | $AWK '{print $1}'` - ds=$RTESTPOOL/$fs - mntpt=`$ECHO $op_objs | $AWK '{print $2}'` - snap=`$ECHO $op_objs | $AWK '{print $3}'` - - $ZFS create $ds - ret=$? - (( $ret != 0 )) && _err_exit $ret \ - "Create filesystem $ds failed." - - [[ ! -d $mntpt ]] && $MKDIR -p $mntpt - $CHMOD 0777 $mntpt - $ZFS set mountpoint=$mntpt $ds - ret=$? - (( $ret != 0 )) && _err_exit $ret \ - "Set mountpont for $ds failed." - - #propagate some data into the filesystem - $CP -rp $R_PKGDIR/bin/* $mntpt - $ZFS snapshot $ds@$snap - ret=$? - (( $ret != 0 )) && _err_exit $ret \ - "Creatint snapshot $ds@$snap failed." - $ZFS set sharenfs=$SHROPT $ds - ret=$? - (( $ret != 0 )) && _err_exit $ret \ - "Set sharenfs=$SHROPT for $ds failed." - - $SHARE | $GREP $mntpt >/dev/null 2>&1 - if (( $? != 0 )); then - $ZFS share $ds - ret=$? - (( $ret != 0 )) && _err_exit $ret \ - "Sharing zfs filesystem $ds failed." - fi -done - -exit 0 Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/Makefile =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/Makefile (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/Makefile (nonexistent) @@ -1,19 +0,0 @@ -# $FreeBSD$ - -.include - -PACKAGE=tests -TESTSDIR=${TESTSBASE}/sys/cddl/zfs/tests/remote/sharing -FILESDIR=${TESTSDIR} - -ATF_TESTS_KSH93+= sharing_test -TEST_METADATA+= required_user="root" - -${PACKAGE}FILES+= r_setup.ksh -${PACKAGE}FILES+= r_cleanup.ksh -${PACKAGE}FILES+= cleanup.ksh -${PACKAGE}FILES+= sharing_001_pos.ksh -${PACKAGE}FILES+= setup.ksh -${PACKAGE}FILES+= sharing.cfg - -.include Property changes on: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/Makefile ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/sharing.cfg =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/sharing.cfg (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/sharing/sharing.cfg (nonexistent) @@ -1,48 +0,0 @@ -# vim: filetype=sh -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2008 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)sharing.cfg 1.4 08/08/15 SMI" -# - -. ${STF_TOOLS}/contrib/include/logapi.kshlib - -export NFSMNTPT=${TESTDIR}/nfsmntpt.${TESTCASE_ID} -export NFSMNTPT1=${TESTDIR}/nfsmntpt1.${TESTCASE_ID} -export NFSMNTPT2=${TESTDIR}/nfsmntpt2.${TESTCASE_ID} - -# Set variables for remote host -export RHOST=`$ECHO $RHOSTS | $AWK '{print $1}'` -export RTESTPOOL=rtestpool.${TESTCASE_ID} -export RTESTFS=rtestfs.${TESTCASE_ID} -export RTESTFS1=rtestfs1.${TESTCASE_ID} -export RTESTFS2=rtestfs2.${TESTCASE_ID} -export SNAP=snap.${TESTCASE_ID} -export SNAP1=snap1.${TESTCASE_ID} -export SNAP2=snap2.${TESTCASE_ID} -export RTESTDIR=${TEST_BASE_DIR%%/}/rtestdir.${TESTCASE_ID} -export RTESTDIR1=${TEST_BASE_DIR%%/}/rtestdir1.${TESTCASE_ID} -export RTESTDIR2=${TEST_BASE_DIR%%/}/rtestdir2.${TESTCASE_ID} -export SHROPT="rw" Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cleanup.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cleanup.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cleanup.ksh (nonexistent) @@ -1,48 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)cleanup.ksh 1.2 07/01/09 SMI" -# - -. ${STF_SUITE}/include/libtest.kshlib - -(( ${#RHOSTS} == 0 )) && log_unsupported - -verify_runnable "global" - -prog=$(whence -p $0) -progpath=${prog%/*} -progdirname=${progpath##*/} # test case directory name -relpath=${progpath#$STF_SUITE/} # relative path to the test suite top directory - -for rhost in $TESTHOSTS; do - R_PKGDIR=$(get_remote_pkgpath $rhost) - rsh_status "" $rhost "$R_PKGDIR/$relpath/r_cleanup $RTEST_ROOT" - (( $? != 0 )) && \ - log_fail "Cleanup remote host failed." -done - -default_cleanup Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cross_endian_test.sh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cross_endian_test.sh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cross_endian_test.sh (nonexistent) @@ -1,82 +0,0 @@ -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2012 Spectra Logic. All rights reserved. -# Use is subject to license terms. -# - - -atf_test_case cross_endian_001_pos cleanup -cross_endian_001_pos_head() -{ - atf_set "descr" "Verify any storage pools can be moved between any architecturesystems." - atf_set "require.progs" zpool rsh zfs rcp -} -cross_endian_001_pos_body() -{ - . $(atf_get_srcdir)/../../../include/default.cfg - . $(atf_get_srcdir)/cross_endian_common.kshlib - . $(atf_get_srcdir)/cross_endian.cfg - - ksh93 $(atf_get_srcdir)/setup.ksh || atf_fail "Setup failed" - ksh93 $(atf_get_srcdir)/cross_endian_001_pos.ksh || atf_fail "Testcase failed" -} -cross_endian_001_pos_cleanup() -{ - . $(atf_get_srcdir)/../../../include/default.cfg - . $(atf_get_srcdir)/cross_endian_common.kshlib - . $(atf_get_srcdir)/cross_endian.cfg - - ksh93 $(atf_get_srcdir)/cleanup.ksh || atf_fail "Cleanup failed" -} - - -atf_test_case cross_endian_002_pos cleanup -cross_endian_002_pos_head() -{ - atf_set "descr" "Verify any storage pools can be moved between any architecturesystems." - atf_set "require.progs" zfs rcp rsh zpool -} -cross_endian_002_pos_body() -{ - . $(atf_get_srcdir)/../../../include/default.cfg - . $(atf_get_srcdir)/cross_endian_common.kshlib - . $(atf_get_srcdir)/cross_endian.cfg - - ksh93 $(atf_get_srcdir)/setup.ksh || atf_fail "Setup failed" - ksh93 $(atf_get_srcdir)/cross_endian_002_pos.ksh || atf_fail "Testcase failed" -} -cross_endian_002_pos_cleanup() -{ - . $(atf_get_srcdir)/../../../include/default.cfg - . $(atf_get_srcdir)/cross_endian_common.kshlib - . $(atf_get_srcdir)/cross_endian.cfg - - ksh93 $(atf_get_srcdir)/cleanup.ksh || atf_fail "Cleanup failed" -} - - -atf_init_test_cases() -{ - - atf_add_test_case cross_endian_001_pos - atf_add_test_case cross_endian_002_pos -} Property changes on: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cross_endian_test.sh ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cross_endian.cfg =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cross_endian.cfg (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cross_endian.cfg (nonexistent) @@ -1,85 +0,0 @@ -# vim: filetype=sh -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2008 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)cross_endian.cfg 1.4 08/08/15 SMI" -# - -. ${STF_TOOLS}/contrib/include/logapi.kshlib - -export TESTSNAP=testsnap.${TESTCASE_ID} -export FILESZ=100m -export TESTFILE1=testfile1.${TESTCASE_ID} -export TESTFILE2=testfile2.${TESTCASE_ID} -export TESTFILE3=testfile3.${TESTCASE_ID} -export TESTFILE4=testfile4.${TESTCASE_ID} -export TESTFILE5=testfile5.${TESTCASE_ID} -export TESTFILE6=testfile6.${TESTCASE_ID} -export TESTFILE7=testfile7.${TESTCASE_ID} -export TESTFILE8=testfile8.${TESTCASE_ID} - -export NORMALPOOL=poolnormal.${TESTCASE_ID} -export MIRRORPOOL=poolmirror.${TESTCASE_ID} -export RAIDZPOOL=poolraidz.${TESTCASE_ID} -export RAIDZ2POOL=poolraidz2.${TESTCASE_ID} -export RTESTPOOL=rtestpool.${TESTCASE_ID} -export RTESTFS=rtestfs.${TESTCASE_ID} -export RTESTFILE=rtestfile.${TESTCASE_ID} - -# Among all given remote hosts, we only select one same arch machine and -# one of each different arch type machines for testing. -TESTHOSTS="" -diff_archs="" -typeset -i same_found=0 -typeset -i diff_found=0 -l_arch=`uname -m` -for rhost in $RHOSTS; do - r_arch=`$RSH -n $rhost "uname -m"` - if [[ "$r_arch" != "$l_arch" ]]; then - if (( ${#diff_archs} == 0 )); then - TESTHOSTS="$TESTHOSTS $rhost" - diff_archs=$r_arch - continue - else - diff_found=0 - for eacharch in $diff_archs; do - if [[ "$r_arch" == "$eacharch" ]]; then - diff_found=1 - break - fi - done - if (( $diff_found == 0 )); then - TESTHOSTS="$TESTHOSTS $rhost" - diff_archs="$diff_archs $r_arch" - fi - fi - elif (( $same_found == 0 )); then - TESTHOSTS="$TESTHOSTS $rhost" - same_found=1 - continue - fi -done -export TESTHOSTS - Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/r_verify_import.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/r_verify_import.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/r_verify_import.ksh (nonexistent) @@ -1,88 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2009 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)r_verify_import.ksh 1.4 09/05/19 SMI" -# -. ${STF_SUITE}/include/libtest.kshlib - -RTEST_ROOT=$1 -prog=`whence -p $0` -progpath=${prog%/*} -progdirname=${progpath##*/} # test case directory name -commlibpath=${progpath%/*} -PKGNAME=$(get_package_name) -PKGDIR=`/bin/echo $(/usr/bin/pkginfo -l $PKGNAME | \ - /usr/bin/grep BASEDIR: | cut -d: -f2)` - -. $RTEST_ROOT/stf_config.vars -. $RTEST_ROOT/$progdirname/cross_endian.cfg -. $PKGDIR/commands.cfg -. $commlibpath/remote_common.kshlib - -# -# Verify the data integrity after pool moving. -# -# $1 data file path -# - -function verify_data # -{ - typeset filepath=$1 - typeset cksumfile="$filepath/file_cksum.list" - typeset cksum_val - typeset -i ret - - [[ ! -e $cksumfile ]] && exit 1 - - for file in `$FIND $filepath -type f`; do - if [[ $file != $cksumfile ]]; then - cksum_val="`$CKSUM $file`" - $GREP "$cksum_val" $cksumfile >/dev/null - ret=$? - (( $ret != 0 )) && _err_exit $ret \ - "No checksum entry in $cksumfile for $file." - fi - done -} - -for pool in $NORMALPOOL $MIRRORPOOL $RAIDZPOOL $RAIDZ2POOL; do - $ZPOOL import -d $RTEST_ROOT/$progdirname $pool - ret=$? - (( $ret != 0 )) && _err_exit $ret \ - "Import $pool failed." - $ZPOOL list -H "$pool" >/dev/null 2>&1 - ret=$? - (( $ret !=0 )) && _err_exit $ret \ - "$pool is not successfully imported." - $ZFS list -H "$pool/$RTESTFS" >/dev/null 2>&1 - ret=$? - (( $ret != 0 )) && _err_exit $ret \ - "Filesystem $pool/$RTESTFS dosen't exit." - - verify_data /$pool/$RTESTFS -done - -exit 0 Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/r_verify_recv.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/r_verify_recv.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/r_verify_recv.ksh (nonexistent) @@ -1,108 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2009 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)r_verify_recv.ksh 1.4 09/05/19 SMI" -# - -. ${STF_SUITE}/include/libtest.kshlib - -RTEST_ROOT=$1 -prog=`whence -p $0` -progpath=${prog%/*} -progdirname=${progpath##*/} # test case directory name -commlibpath=${progpath%/*} -PKGNAME=$(get_package_name) -PKGDIR=`print $(/usr/bin/pkginfo -l $PKGNAME | \ - /usr/bin/grep BASEDIR: | cut -d: -f2)` - -. $RTEST_ROOT/stf_config.vars -. $RTEST_ROOT/$progdirname/cross_endian.cfg -. $PKGDIR/commands.cfg -. $commlibpath/remote_common.kshlib - -# -# Verify the data integrity after wire sending -# -# $1 data file path -# - -function verify_data # -{ - typeset filepath=$1 - typeset snappath=$1/$(get_snapdir_name)/$TESTSNAP - typeset cksumfile="$filepath/file_cksum.list" - typeset orig_val - typeset dest_val - typeset snapfile - typeset fname - typeset orig_sum - typeset dest_sum - typeset orig_size - typeset dest_size - typeset -i ret - - [[ ! -e $cksumfile ]] && exit 1 - - for file in `$FIND $filepath -type f`; do - fname=${file##$filepath} - fname=${fname#/} - snapfile=$snappath/$fname - - [[ ! -e $snapfile ]] && _err_exit 1 \ - "$snapfile doesn't exist." - - $DIFF $file $snapfile >/dev/null 2>&1 - ret=$? - (( $ret != 0 )) && _err_exit $ret \ - "The original $file differs from $snapfile." - - if [[ $file != $cksumfile ]]; then - for data in $file $snapfile; do - cksum_val="`$CKSUM $data`" - orig_val="`$GREP "$fname" $cksumfile`" - orig_sum="`$ECHO $orig_val | $AWK '{print $1}'" - dest_sum="`$ECHO $cksum_val | $AWK '{print $1}'" - orig_size="`$ECHO $orig_val | $AWK '{print $2}'" - dest_size="`$ECHO $cksum_val | $AWK '{print $2}'" - if [[ "$orig_sum" != "$dest_sum" ]] || \ - [[ "$orig_size" != "$dest_size" ]]; then - _err_exit 1 "Checksum changed after wire sending." - fi - done - fi - done -} - -for ds in $RTESTPOOL/$TESTFS $RTESTPOOL/$TESTFS@$TESTSNAP; do - $ZFS list -H "$ds" >/dev/null 2>&1 - ret=$? - (( $ret != 0 )) && _err_exit $ret \ - "The dataset $ds doesn't exist." -done - -verify_data /$RTESTPOOL/$TESTFS - -exit 0 Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cross_endian_001_pos.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cross_endian_001_pos.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cross_endian_001_pos.ksh (nonexistent) @@ -1,147 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)cross_endian_001_pos.ksh 1.2 07/01/09 SMI" -# - -. $STF_SUITE/include/libtest.kshlib -. $STF_SUITE/tests/remote/cross_endian/cross_endian_common.kshlib - -################################################################################ -# -# __stc_assertion_start -# -# ID: cross_endian_001_pos -# -# DESCRIPTION: -# storage pool can be exported and imported between two any architecture -# machines. -# -# STRATEGY: -# 1. Create a bunch of block files and then create different types of -# storage pool with these files, populate some data to the storage pool -# 2. Exported the storage pool and rcp the block files to a remote host -# 3. Imported the pool in the remote host and verify the data integrity -# -# TESTABILITY: explicit -# -# TEST_AUTOMATION_LEVEL: automated -# -# CODING_STATUS: COMPLETED (2006-05-26) -# -# __stc_assertion_end -# -################################################################################ - -verify_runnable "global" - -function cleanup -{ - typeset file - typeset pool - typeset tmpfile=$TMPDIR/import.list.${TESTCASE_ID} - - $ZPOOL import -d $TESTDIR >$tmpfile - for pool in $NORMALPOOL $MIRRORPOOL $RAIDZPOOL $RAIDZ2POOL; do - $GREP $pool $tmpfile >/dev/null 2>&1 - if (( $? == 0 )); then - log_must $ZPOOL import -d $TESTDIR $pool - $ZPOOL destroy -f $pool - elif poolexists $pool; then - log_must $ZPOOL destroy -f $pool - fi - done - - for file in ${poolfile[*]}; do - [[ -e $file ]] && $RM -f $file - done -} - -log_assert "Verify any storage pools can be moved between any architecture \ - systems." -log_onexit cleanup - -set -A pooltype "regular" "mirror" "raidz" "raidz2" -set -A poolfile "$TESTDIR/$TESTFILE1" "$TESTDIR/$TESTFILE2" \ - "$TESTDIR/$TESTFILE3" "$TESTDIR/$TESTFILE4" \ - "$TESTDIR/$TESTFILE5" "$TESTDIR/$TESTFILE6" \ - "$TESTDIR/$TESTFILE7" "$TESTDIR/$TESTFILE8" -l_arch=`uname -m` - -# Setup for testing in local host - -# create bunches of block files to create pools -for file in ${poolfile[*]}; do - log_must $TRUNCATE -s $FILESZ $file -done -for type in ${pooltype[*]}; do - case $type in - "regular") - log_must $ZPOOL create $NORMALPOOL ${poolfile[0]} - ;; - "mirror") - log_must $ZPOOL create $MIRRORPOOL $type ${poolfile[1]} \ - ${poolfile[2]} - ;; - "raidz") - log_must $ZPOOL create $RAIDZPOOL $type ${poolfile[3]} \ - ${poolfile[4]} - ;; - "raidz2") - log_must $ZPOOL create $RAIDZ2POOL $type ${poolfile[5]}\ - ${poolfile[6]} ${poolfile[7]}\ - ;; - esac -done - -for pool in $NORMALPOOL $MIRRORPOOL $RAIDZPOOL $RAIDZ2POOL; do - log_must $ZFS create $pool/$RTESTFS - log_must $CP $STF_SUITE/bin/`$UNAME -p`/* /$pool/$RTESTFS - gen_cksum_file /$pool/$RTESTFS - - log_must $ZPOOL export $pool -done - -# Testing in remote hosts. - -prog=$(whence -p $0) -progpath=${prog%/*} -progdirname=${progpath##*/} # test case directory name -relpath=${progpath#$STF_SUITE/} -for rhost in $TESTHOSTS; do - R_PKGDIR=$(get_remote_pkgpath $rhost) - r_arch=`$RSH $rhost uname -m` - for file in ${poolfile[*]}; do - log_must $RCP -p $file $rhost:$RTEST_ROOT/$progdirname/ - done - rsh_status "" $rhost "$R_PKGDIR/$relpath/r_verify_import $RTEST_ROOT" - (( $? != 0 )) && \ - log_fail "Storage pools move failed between $l_arch and $r_arch." - log_note "All types of storage pools move from $l_arch to $r_arch \ - as expected." -done - -log_pass Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cross_endian_002_pos.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cross_endian_002_pos.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cross_endian_002_pos.ksh (nonexistent) @@ -1,98 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)cross_endian_002_pos.ksh 1.2 07/01/09 SMI" -# - -. $STF_SUITE/include/libtest.kshlib -. $STF_SUITE/tests/remote/cross_endian/cross_endian_common.kshlib - -################################################################################ -# -# __stc_assertion_start -# -# ID: cross_endian_002_pos -# -# DESCRIPTION: -# ZFS filesystem data can be backuped to remote host with any architecture. -# -# STRATEGY: -# 1. Create a zfs filesystem and populate some data in the filesystem -# 2. Backup the data and restore it in a remote host -# 3. verify the data integrity -# -# TESTABILITY: explicit -# -# TEST_AUTOMATION_LEVEL: automated -# -# CODING_STATUS: COMPLETED (2006-05-26) -# -# __stc_assertion_end -# -################################################################################ - -verify_runnable "global" - -function cleanup -{ - snapexists $snap1 && \ - log_must $ZFS destroy $snap1 - - for file in `$LS $TESTDIR`; do - $RM -f $file - done -} - -log_assert "Verify any storage pools can be moved between any architecture \ - systems." -log_onexit cleanup - -l_arch=`uname -m` -snap1=$TESTPOOL/$TESTFS@$TESTSNAP - -# Setup for testing in local host -log_must $CP $STF_SUITE/bin/`$UNAME -p`/* $TESTDIR -gen_cksum_file $TESTDIR -log_must $ZFS snapshot $snap1 - -# Testing in remote hosts. -prog=$(whence -p $0) -progpath=${prog%/*} -progdirname=${progpath##*/} # test case directory name -relpath=${progpath#$STF_SUITE/} - -for rhost in $TESTHOSTS; do - R_PKGDIR=$(get_remote_pkgpath $rhost) - r_arch=`$RSH $rhost uname -m` - - $ZFS send $snap1 | $RSH $rhost $ZFS receive -d $RTESTPOOL - rsh_status "" $rhost "$R_PKGDIR/$relpath/r_verify_recv $RTEST_ROOT" - (( $? != 0 )) && - log_fail " Contents are sent failed between $l_arch and $r_arch." - log_note "Contents are sent from $l_arch to $r_arch as expected." -done - -log_pass Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cross_endian_common.kshlib =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cross_endian_common.kshlib (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/cross_endian_common.kshlib (nonexistent) @@ -1,54 +0,0 @@ -# vim: filetype=sh -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)cross_endian_common.kshlib 1.3 07/03/14 SMI" -# - -. $STF_SUITE/include/libtest.kshlib - -# -# Generate the checksum for each file in -# a given directory and store the checksum -# in a specified file. -# -# $1 the diretory path -# -function gen_cksum_file # -{ - typeset filepath=$1 - typeset file - typeset cksumfile=$TMPDIR/file_cksum.list - - [[ -e $cksumfile ]] && $RM -f $cksumfile - log_must $TOUCH $cksumfile - for file in `$FIND $filepath -type f`; do - $ECHO "`$CKSUM $file`" >>$cksumfile - done - - log_must $CP $cksumfile $filepath - $RM -f $cksumfile -} - Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/setup.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/setup.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/setup.ksh (nonexistent) @@ -1,76 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)setup.ksh 1.2 07/01/09 SMI" -# - -. ${STF_SUITE}/include/libtest.kshlib - -(( ${#RHOSTS} == 0 )) && log_unsupported - -verify_runnable "global" - -prog=$(whence -p $0) -progpath=${prog%/*} -export progpath -progdirname=${progpath##*/} # testcase directory name -export progdirname -relpath=${progpath#$STF_SUITE/} # relative path to suite top directory - -for rhost in $TESTHOSTS; do - rsh_status "" $rhost "$MKDIR -m 0777 $RTEST_ROOT/$progdirname" - (( $? != 0 )) && \ - log_fail "Create directory in remote host failed." - - #Transfer the parameters to remote host - rcfgfile=$TMPDIR/cross_endian.cfg - $ECHO "#!/usr/local/bin/ksh93 -p" >$rcfgfile - for varname in TESTFILE1 TESTFILE2 TESTFILE3 \ - TESTFILE4 TESTFILE5 TESTFILE6 \ - TESTFILE7 TESTFILE8 NORMALPOOL \ - MIRRORPOOL RAIDZPOOL RAIDZ2POOL \ - RTESTPOOL RTESTFS RTESTFILE \ - TESTFS TESTSNAP; - do - $ECHO "export $varname=\"$(eval $ECHO \$$varname)\"" >>$rcfgfile - done - log_must $RCP $rcfgfile $rhost:$RTEST_ROOT/$progdirname - $RM -f $rcfgfile - - #Initially, create a storage pool for zfs send/recv testing. - poolfile=$RTEST_ROOT/$progdirname/$RTESTFILE - rsh_status "" $rhost "$TRUNCATE -s $FILESZ $poolfile" - (( $? != 0 )) && \ - log_fail "Creating $FILESZ file in $rhost failed." - rsh_status "" $rhost "$ZPOOL create $RTESTPOOL $poolfile" - (( $? != 0 )) && \ - log_fail "Creating storage pool in $rhost failed." -done - -DISK=${DISKS%% *} -default_setup $DISK - -log_pass Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/r_cleanup.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/r_cleanup.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/r_cleanup.ksh (nonexistent) @@ -1,60 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2009 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)r_cleanup.ksh 1.4 09/05/19 SMI" -# - -. ${STF_SUITE}/include/libtest.kshlib - -RTEST_ROOT=$1 -prog=`whence -p $0` -progpath=${prog%/*} -progdirname=${progpath##*/} # test case directory name -commlibpath=${progpath%/*} -PKGNAME=$(get_package_name) -PKGDIR=`print $(/usr/bin/pkginfo -l $PKGNAME | \ - /usr/bin/grep BASEDIR: | cut -d: -f2)` - -. $RTEST_ROOT/stf_config.vars -. $RTEST_ROOT/$progdirname/cross_endian.cfg -. $PKGDIR/commands.cfg -. $commlibpath/remote_common.kshlib - -typeset -i ret -for pool in $RTESTPOOL $NORMALPOOL $MIRRORPOOL $RAIDZPOOL $RAIDZ2POOL; do - $ZPOOL list -H $pool >/dev/null 2>&1 - if (( $? == 0 )); then - $ZPOOL destroy -f $pool - ret=$? - (( $ret != 0 )) && _err_exit $ret \ - "Destroying pool $pool failed." - fi -done - -[[ -d $RTEST_ROOT/$progdirname ]] && $RM -rf $RTEST_ROOT/$progdirname - -exit 0 - Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/Makefile =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/Makefile (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/Makefile (nonexistent) @@ -1,22 +0,0 @@ -# $FreeBSD$ - -.include - -PACKAGE=tests -TESTSDIR=${TESTSBASE}/sys/cddl/zfs/tests/remote/cross_endian -FILESDIR=${TESTSDIR} - -ATF_TESTS_KSH93+= cross_endian_test -TEST_METADATA+= required_user="root" - -${PACKAGE}FILES+= setup.ksh -${PACKAGE}FILES+= cross_endian.cfg -${PACKAGE}FILES+= cross_endian_002_pos.ksh -${PACKAGE}FILES+= r_verify_recv.ksh -${PACKAGE}FILES+= cleanup.ksh -${PACKAGE}FILES+= cross_endian_001_pos.ksh -${PACKAGE}FILES+= r_verify_import.ksh -${PACKAGE}FILES+= r_cleanup.ksh -${PACKAGE}FILES+= cross_endian_common.kshlib - -.include Property changes on: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/cross_endian/Makefile ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/setup.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/setup.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/setup.ksh (nonexistent) @@ -1,34 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)setup.ksh 1.1 07/05/25 SMI" -# - -. ${STF_SUITE}/include/libtest.kshlib - -if check_iscsi_remote ; then - log_unsupported "iscsi is set as remote" -fi Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/cleanup.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/cleanup.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/cleanup.ksh (nonexistent) @@ -1,46 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)cleanup.ksh 1.2 07/01/09 SMI" -# - -. ${STF_SUITE}/include/libtest.kshlib - -(( ${#RHOSTS} == 0 )) && log_unsupported - -verify_runnable "global" - -prog=$(whence -p $0) -progpath=${prog%/*} -progdirname=${progpath##*/} # test case directory name -relpath=${progpath#$STF_SUITE/} # relative path to the test suite top directory -R_PKGDIR=$(get_remote_pkgpath $RHOST) - -rsh_status "" $RHOST "$R_PKGDIR/$relpath/r_cleanup $RTEST_ROOT" -(( $? != 0 )) && \ - log_fail "Cleanup remote host failed." - -default_cleanup Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/rebooting.cfg =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/rebooting.cfg (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/rebooting.cfg (nonexistent) @@ -1,39 +0,0 @@ -# vim: filetype=sh -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2008 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)rebooting.cfg 1.4 08/08/15 SMI" -# -. ${STF_TOOLS}/contrib/include/logapi.kshlib - -export STF_TIMEOUT=2400 - -export RTESTPOOL=rtestpool.${TESTCASE_ID} -export RTESTFS=rtestfs.${TESTCASE_ID} -export RTESTDIR=${TEST_BASE_DIR%%/}/rtestdir.${TESTCASE_ID} - -RHOST=`$ECHO $RHOSTS | $AWK '{print $1}'` -export RHOST - Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/rebooting_test.sh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/rebooting_test.sh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/rebooting_test.sh (nonexistent) @@ -1,55 +0,0 @@ -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2012 Spectra Logic. All rights reserved. -# Use is subject to license terms. -# - - -atf_test_case rebooting_001_pos cleanup -rebooting_001_pos_head() -{ - atf_set "descr" "Verify a system can be rebooted normally after mkdir/rm operations." - atf_set "require.progs" rcp rsh - atf_set "timeout" 2400 -} -rebooting_001_pos_body() -{ - . $(atf_get_srcdir)/../../../include/default.cfg - . $(atf_get_srcdir)/rebooting.cfg - - ksh93 $(atf_get_srcdir)/setup.ksh || atf_fail "Setup failed" - ksh93 $(atf_get_srcdir)/rebooting_001_pos.ksh || atf_fail "Testcase failed" -} -rebooting_001_pos_cleanup() -{ - . $(atf_get_srcdir)/../../../include/default.cfg - . $(atf_get_srcdir)/rebooting.cfg - - ksh93 $(atf_get_srcdir)/cleanup.ksh || atf_fail "Cleanup failed" -} - - -atf_init_test_cases() -{ - - atf_add_test_case rebooting_001_pos -} Property changes on: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/rebooting_test.sh ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/r_verify_booting.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/r_verify_booting.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/r_verify_booting.ksh (nonexistent) @@ -1,53 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)r_verify_booting.ksh 1.2 07/01/09 SMI" -# -RTEST_ROOT=$1 -prog=`whence -p $0` -progpath=${prog%/*} -progdirname=${progpath##*/} # test case directory name -commlibpath=${progpath%/*} - -. $RTEST_ROOT/stf_config.vars -. $RTEST_ROOT/$progdirname/rebooting.cfg -. $R_PKGDIR/commands.cfg -. $commlibpath/remote_common.kshlib - -typeset -i ret - -for ds in $RTESTPOOL $RTESTPOOL/$RTESTFS; do - $ZFS list -H $ds >/dev/null 2>&1 - ret=$? - (( $ret != 0 )) && _err_exit $ret \ - "Dataset $ds doesn't exit." -done - -mntpt=`$ZFS get -H -o value mountpoint $RTESTPOOL/$RTESTFS` -[[ "$mntpt" != "$RTESTDIR" ]] && _err_exit 1 \ - "The $RTESTPOOL/$RTESTFS doesn't mount successfully." - -exit 0 Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/setup.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/setup.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/setup.ksh (nonexistent) @@ -1,66 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)setup.ksh 1.2 07/01/09 SMI" -# - -. ${STF_SUITE}/include/libtest.kshlib -. ${STF_SUITE}/tests/remote/remote_common.kshlib - -(( ${#RHOSTS} == 0 )) && log_unsupported - -verify_runnable "global" - -prog=$(whence -p $0) -progpath=${prog%/*} -progdirname=${progpath##*/} # testcase directory name -relpath=${progpath#$STF_SUITE/} # relative path to suite top directory - -rsh_status "" $RHOST "$MKDIR -m 0777 $RTEST_ROOT/$progdirname" -(( $? != 0 )) && \ - log_fail "Create directory in remote host failed." - -RDISK="$(get_disks $RHOST)" -R_PKGDIR=$(get_remote_pkgpath $RHOST) - -#Transfer the parameters to remote host -rcfgfile=$TMPDIR/rebooting.cfg -$ECHO "#!/usr/local/bin/ksh93 -p" >$rcfgfile -for varname in RTESTPOOL RTESTFS RTESTDIR RHOST RDISK R_PKGDIR -do - $ECHO "export $varname=\"$(eval $ECHO \${TESTCASE_ID}varname)\"" >>$rcfgfile -done -log_must $RCP $rcfgfile $RHOST:$RTEST_ROOT/$progdirname/ -$RM -f $rcfgfile - -rsh_status "" $RHOST "$R_PKGDIR/$relpath/r_setup $RTEST_ROOT " -(( $? != 0 )) && \ - log_fail "Set up remote system failed." - -DISK=${DISKS%% *} -default_setup $DISK - -log_pass Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/r_cleanup.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/r_cleanup.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/r_cleanup.ksh (nonexistent) @@ -1,52 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)r_cleanup.ksh 1.2 07/01/09 SMI" -# -RTEST_ROOT=$1 -prog=`whence -p $0` -progpath=${prog%/*} -progdirname=${progpath##*/} # test case directory name -commlibpath=${progpath%/*} - -. $RTEST_ROOT/stf_config.vars -. $RTEST_ROOT/$progdirname/rebooting.cfg -. $R_PKGDIR/commands.cfg -. $commlibpath/remote_common.kshlib - -typeset -i ret -$ZPOOL list -H $RTESTPOOL >/dev/null 2>&1 -if (( $? == 0 )); then - $ZPOOL destroy -f $RTESTPOOL - ret=$? - (( $ret != 0 )) && _err_exit $ret \ - "Destroy pool $RTESTPOOL failed." -fi - -for dir in $RTESTDIR $RTEST_ROOT/$progdirname; do - [[ -d $dir ]] && \ - $RM -rf $dir -done Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/r_dir_ops.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/r_dir_ops.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/r_dir_ops.ksh (nonexistent) @@ -1,105 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)r_dir_ops.ksh 1.2 07/01/09 SMI" -# -RTEST_ROOT=$1 -prog=`whence -p $0` -progpath=${prog%/*} -progdirname=${progpath##*/} # test case directory name -commlibpath=${progpath%/*} - -. $RTEST_ROOT/stf_config.vars -. $RTEST_ROOT/$progdirname/rebooting.cfg -. $R_PKGDIR/commands.cfg -. $commlibpath/remote_common.kshlib - -maindirs="1" -subdirs="A B C D E F G H I J K L M N O P" - -# -# The following is a common functin to make a large amount of empty -# directories if the passed argument is '/bin/mkdir', or to remove -# all created empty directories if the passed argument is '/bin/rm -rf'. -# Note: since unlink is not usable in ZFS filesystem, we use 'rm' instead -# of 'unlink' here. -# -# $1 command used for testing:/bin/mkdir or /bin/rm -rf -# -function make_rm_dir # -{ - typeset cmd="$@" - typeset v0="" - typeset v1="" - typeset v2="" - typeset v3="" - typeset -i ret - - $CD $RTESTDIR - for v0 in $maindirs - do - if [[ "$cmd" == "$MKDIR" ]]; then - $cmd $v0 - ret=$? - (( $ret != 0 )) && _err_exit $ret \ - "$cmd $RTESTDIR/$v0 failed." - fi - - for v1 in $subdirs; do - for v2 in $subdirs; do - for v3 in $subdirs; do - $cmd $v0/$v1$v2$v3 - ret=$? - (( $ret != 0 )) && _err_exit $ret \ - "$cmd $RTESTDIR/$v0/$v1$v2$v3 failed." - done # for v3 - done # for v2 - done # for v1 - if [[ "$cmd" == "$RM -rf" ]]; then - $cmd $v0 - ret=$? - (( $ret != 0 )) && _err_exit $ret \ - "$cmd $RTESTDIR/$v0 failed." - fi - done # for v0 -} - -$ZPOOL iostat -v $RTESTPOOL 2 >/dev/null 2>&1 & - -$ECHO "Creating directory ..." -make_rm_dir $MKDIR - -$ECHO "Removing directory ..." -make_rm_dir "$RM -rf" - -# Verifying the mkdir/rm testing result: -typeset -i dirnum -dirnum=`$FIND $RTESTDIR -type d -print | $WC -l` -(( $dirnum != 1 )) && _err_exit 1 \ - "The directory has not removed cleanly." - -$ECHO "Rebooting the system ..." -$REBOOT Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/r_setup.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/r_setup.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/r_setup.ksh (nonexistent) @@ -1,65 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)r_setup.ksh 1.2 07/01/09 SMI" -# -RTEST_ROOT=$1 -prog=`whence -p $0` -progpath=${prog%/*} -progdirname=${progpath##*/} # test case directory name -commlibpath=${progpath%/*} - -. $RTEST_ROOT/stf_config.vars -. $RTEST_ROOT/$progdirname/rebooting.cfg -. $R_PKGDIR/commands.cfg -. $commlibpath/remote_common.kshlib - -relpath=${progpath#$R_PKGDIR/} - -if [[ "$RDISK" == "detect" ]]; then - RDISK="$(detectdisks)" -fi - -disk=${RDISK%% *} -typeset -i ret - -$ZPOOL create $RTESTPOOL $disk -ret=$? -(( $ret != 0 )) && _err_exit $ret \ - "Creating storage pool in $RHOST failed." - -$ZFS create $RTESTPOOL/$RTESTFS -ret=$? -(( $ret != 0 )) && _err_exit $ret \ - "Creating zfs filesystem in $RHOST failed." - -[[ ! -d $RTESTDIR ]] && $MKDIR -p $RTESTDIR -$ZFS set mountpoint=$RTESTDIR $RTESTPOOL/$RTESTFS -ret=$? -(( $ret != 0 )) && _err_exit $ret \ - "Set mountpoint for $RTESTPOOL/$RTESTFS failed." - -exit 0 Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/Makefile =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/Makefile (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/Makefile (nonexistent) @@ -1,21 +0,0 @@ -# $FreeBSD$ - -.include - -PACKAGE=tests -TESTSDIR=${TESTSBASE}/sys/cddl/zfs/tests/remote/rebooting -FILESDIR=${TESTSDIR} - -ATF_TESTS_KSH93+= rebooting_test -TEST_METADATA+= required_user="root" - -${PACKAGE}FILES+= rebooting.cfg -${PACKAGE}FILES+= r_setup.ksh -${PACKAGE}FILES+= r_dir_ops.ksh -${PACKAGE}FILES+= r_cleanup.ksh -${PACKAGE}FILES+= rebooting_001_pos.ksh -${PACKAGE}FILES+= cleanup.ksh -${PACKAGE}FILES+= setup.ksh -${PACKAGE}FILES+= r_verify_booting.ksh - -.include Property changes on: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/Makefile ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/rebooting_001_pos.ksh =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/rebooting_001_pos.ksh (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/rebooting/rebooting_001_pos.ksh (nonexistent) @@ -1,82 +0,0 @@ -#!/usr/local/bin/ksh93 -p -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)rebooting_001_pos.ksh 1.2 07/01/09 SMI" -# - -. $STF_SUITE/include/libtest.kshlib - -################################################################################ -# -# __stc_assertion_start -# -# ID: rebooting_001_pos -# -# DESCRIPTION: -# Do some I/O work in zfs filesystem in a remote machine, reboot it and -# and verify the system boots up fine. -# -# STRATEGY: -# 1. Create lots of empty directories in remote zfs filesystem and unlink -# these directories. -# 2. Reboot the system -# 3. Verify the system boots up correctly -# -# TESTABILITY: explicit -# -# TEST_AUTOMATION_LEVEL: automated -# -# CODING_STATUS: COMPLETED (2006-05-26) -# -# __stc_assertion_end -# -################################################################################ - -verify_runnable "global" - -log_assert "Verify a system can be rebooted normally after mkdir/rm operations." - -# Testing in remote hosts. - -prog=$(whence -p $0) -progpath=${prog%/*} -progdirname=${progpath##*/} # test case directory name -relpath=${progpath#$STF_SUITE/} -R_PKGDIR=$(get_remote_pkgpath $RHOST) - -rsh_status "" $RHOST "$R_PKGDIR/$relpath/r_dir_ops $RTEST_ROOT" -(( $? != 0 )) && \ - log_fail "Creating directories in remote host -- $RHOST failed." - -#Check the remote host boots up or not -! verify_remote $RHOST && \ - log_fail "Remote host $RHOST rebooting timeout." - -rsh_status "" $rhost "$R_PKGDIR/$relpath/r_verify_booting $RTEST_ROOT" -(( $? != 0 )) && \ - log_fail "The remote system $RHOST boots up unnormally." - -log_pass "The remote system $RHOST boots up normally as expected." Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/Makefile =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/Makefile (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/Makefile (nonexistent) @@ -1,17 +0,0 @@ -# $FreeBSD$ - -.include - -PACKAGE=tests -TESTSDIR=${TESTSBASE}/sys/cddl/zfs/tests/remote -FILESDIR=${TESTSDIR} - -${PACKAGE}FILES+= remote_common.kshlib -${PACKAGE}FILES+= setup.ksh -${PACKAGE}FILES+= cleanup.ksh - -TESTS_SUBDIRS+= cross_endian -TESTS_SUBDIRS+= rebooting -TESTS_SUBDIRS+= sharing - -.include Property changes on: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/Makefile ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/remote_common.kshlib =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/remote_common.kshlib (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/remote/remote_common.kshlib (nonexistent) @@ -1,141 +0,0 @@ -# vim: filetype=sh -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ident "@(#)remote_common.kshlib 1.4 07/05/25 SMI" -# - -# -# Get the disk value from the $RDISKS variable according -# to the hostname -# -# $1 remote host name -# -function get_disks # -{ - typeset rhost=$1 - typeset eachhost - typeset -i i=0 - eval set -A disks $RDISKS - - for eachhost in $RHOSTS; do - if [[ "$eachhost" != "$rhost" ]]; then - (( i = i + 1 )) - continue - else - break - fi - done - - $ECHO ${disks[i]} -} - -# -# print an error and exit -# $1 exit status -# $2... error message -# -function _err_exit -{ - typeset -i status=$1 - shift - print -u2 "$@" - - exit $status -} - - -# -# Detect the available disks for use in a system -# -function detectdisks -{ - typeset sfi=$TMPDIR/swaplist.${TESTCASE_ID} - typeset msi=$TMPDIR/metastat.${TESTCASE_ID} - typeset dmpi=$TMPDIR/dumpdev.${TESTCASE_ID} - - $SWAP -l > $sfi - $METASTAT -c > $msi - $DUMPADM > $dmpi - - # process the output of format - # to produce a list of disks we know about. - # ------------------- - $CAT > $TMPDIR/find_disks.awk </dev/null - (( $? == 0 )) && continue - $GREP "${disk}[sp]" $sfi >/dev/null - (( $? == 0 )) && continue - $GREP "${disk}" $msi >/dev/null - (( $? == 0 )) && continue - $GREP "${disk}[sp]" $dmpi >/dev/null - (( $? == 0 )) && continue - unused_candidates="$unused_candidates $disk" - done - $RM $sfi - $RM $msi - $RM $dmpi - - # now just check to see if those disks do actually exist - # by looking for a device pointing to the first slice in - # each case. - for disk in $unused_candidates - do - if [ -b /dev/dsk/${disk}s0 ] - then - unused="$unused $disk" - fi - done - - $ECHO $unused -} - Index: projects/zfsd/head/tests/sys/cddl/zfs/tests/Makefile =================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/Makefile (revision 329289) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/Makefile (revision 329290) @@ -1,93 +1,91 @@ # $FreeBSD$ .include PACKAGE= tests TESTSDIR= ${TESTSBASE}/sys/cddl/zfs/tests TESTS_SUBDIRS+= acl TESTS_SUBDIRS+= atime TESTS_SUBDIRS+= bootfs TESTS_SUBDIRS+= cache TESTS_SUBDIRS+= cachefile TESTS_SUBDIRS+= clean_mirror TESTS_SUBDIRS+= cli_root TESTS_SUBDIRS+= cli_user TESTS_SUBDIRS+= compression TESTS_SUBDIRS+= ctime TESTS_SUBDIRS+= delegate TESTS_SUBDIRS+= devices TESTS_SUBDIRS+= exec TESTS_SUBDIRS+= grow_pool TESTS_SUBDIRS+= grow_replicas TESTS_SUBDIRS+= history TESTS_SUBDIRS+= hotplug TESTS_SUBDIRS+= hotspare TESTS_SUBDIRS+= inheritance # Not yet ported to FreeBSD # TESTS_SUBDIRS+= interop TESTS_SUBDIRS+= inuse # Not yet ported to FreeBSD # TESTS_SUBDIRS+= iscsi TESTS_SUBDIRS+= large_files # Not yet ported to FreeBSD # TESTS_SUBDIRS+= largest_pool # link_count is not yet ported to FreeBSD. I'm not sure what its purpose is. # The assertion message contradicts with the log_fail message. # TESTS_SUBDIRS+= link_count TESTS_SUBDIRS+= mdb TESTS_SUBDIRS+= migration TESTS_SUBDIRS+= mmap TESTS_SUBDIRS+= mount TESTS_SUBDIRS+= mv_files TESTS_SUBDIRS+= nestedfs TESTS_SUBDIRS+= no_space TESTS_SUBDIRS+= online_offline TESTS_SUBDIRS+= pool_names TESTS_SUBDIRS+= poolversion TESTS_SUBDIRS+= privilege TESTS_SUBDIRS+= quota TESTS_SUBDIRS+= redundancy TESTS_SUBDIRS+= refquota TESTS_SUBDIRS+= refreserv -# Not yet ported to FreeBSD -# TESTS_SUBDIRS+= remote # Broken on every OS # TESTS_SUBDIRS+= rename_dirs TESTS_SUBDIRS+= replacement TESTS_SUBDIRS+= reservation TESTS_SUBDIRS+= rootpool # Not yet ported to FreeBSD # TESTS_SUBDIRS+= rsend TESTS_SUBDIRS+= scrub_mirror TESTS_SUBDIRS+= slog TESTS_SUBDIRS+= snapshot TESTS_SUBDIRS+= snapused TESTS_SUBDIRS+= sparse TESTS_SUBDIRS+= threadsappend TESTS_SUBDIRS+= truncate TESTS_SUBDIRS+= txg_integrity TESTS_SUBDIRS+= userquota TESTS_SUBDIRS+= utils_test TESTS_SUBDIRS+= write_dirs # Not yet ported to FreeBSD # TESTS_SUBDIRS+= xattr TESTS_SUBDIRS+= zfsd TESTS_SUBDIRS+= zil # Not yet ported to FreeBSD # TESTS_SUBDIRS+= zinject # Not yet ported to FreeBSD # TESTS_SUBDIRS+= zones TESTS_SUBDIRS+= zvol TESTS_SUBDIRS+= zvol_thrash # This is primarily useful for identifying which test a testid corresponds to. # Sometimes all you might have is a pool name like 'testpool.1316'. testids: for i in `find ${.CURDIR} -name '*.sh' | xargs grep '^atf_test_case '|awk '{print $$2}'`; do \ echo "$${i}: $$(echo $$i | cksum -o 2 | cut -d" " -f1)"; \ done .PHONY: testids .include