Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

I have reported slog script.

  • Loading branch information...
commit 9cd496350db0c0b123c0235a30974d7ca7305b04 1 parent 5b71eaa
@vikramjadhav vikramjadhav authored
View
1  ZFS-Test_Suite/tests/functional/slog/slog.cfg 100644 → 100755
@@ -39,3 +39,4 @@ export SDEV2="$VDIR2/d"
export LDEV2="$VDIR2/e $VDIR2/f"
export STF_TIMEOUT=1200
+export TESTPOOL2="tank1"
View
7 ZFS-Test_Suite/tests/functional/slog/slog.kshlib 100644 → 100755
@@ -26,10 +26,7 @@
# ident "@(#)slog.kshlib 1.2 08/11/03 SMI"
#
-. $STF_SUITE/include/libtest.kshlib
-. $STF_SUITE/commands.cfg
-. $STF_SUITE/include/default_common_varible.kshlib
-. $STF_SUITE/tests/functional/slog/slog.cfg
+
function cleanup
{
if datasetexists $TESTPOOL ; then
@@ -120,7 +117,6 @@ function verify_slog_device
typeset stat=${dev_stat_tab[((i+1))]}
case $dev in
stripe:$device)
- echo " hi"
if [[ "$type" == 'mirror' ]]; then
log_note "Unexpected type: mirror"
return 1
@@ -134,7 +130,6 @@ function verify_slog_device
fi
;;
mirror:$device)
- echo "hello"
if [[ -z "$type" || $type == 'stripe' ]]; then
log_note "Unexpected type: stripe"
return 1
View
6 ZFS-Test_Suite/tests/functional/slog/slog_001_pos
@@ -27,6 +27,10 @@
# ident "@(#)slog_001_pos.ksh 1.1 07/07/31 SMI"
#
+. $STF_SUITE/commands.cfg
+. $STF_SUITE/include/libtest.kshlib
+. $STF_SUITE/include/default_common_varible.kshlib
+. $STF_SUITE/tests/functional/slog/slog.cfg
. $STF_SUITE/tests/functional/slog/slog.kshlib
#################################################################################
@@ -64,13 +68,11 @@ do
do
for logtype in "" "mirror"
do
- echo " VDEV = $VDEV"
log_must $ZPOOL create $TESTPOOL $type -f $VDEV \
$spare $SDEV log $logtype $LDEV
log_must display_status $TESTPOOL
ldev=$(random_get $LDEV)
- echo "ldev = $ldev"
log_must verify_slog_device \
$TESTPOOL $ldev 'ONLINE' $logtype
View
4 ZFS-Test_Suite/tests/functional/slog/slog_002_pos
@@ -27,6 +27,10 @@
# ident "@(#)slog_002_pos.ksh 1.1 07/07/31 SMI"
#
+. $STF_SUITE/commands.cfg
+. $STF_SUITE/include/libtest.kshlib
+. $STF_SUITE/include/default_common_varible.kshlib
+. $STF_SUITE/tests/functional/slog/slog.cfg
. $STF_SUITE/tests/functional/slog/slog.kshlib
#################################################################################
View
5 ZFS-Test_Suite/tests/functional/slog/slog_003_pos
@@ -26,7 +26,10 @@
#
# ident "@(#)slog_003_pos.ksh 1.1 07/07/31 SMI"
#
-
+. $STF_SUITE/commands.cfg
+. $STF_SUITE/include/libtest.kshlib
+. $STF_SUITE/include/default_common_varible.kshlib
+. $STF_SUITE/tests/functional/slog/slog.cfg
. $STF_SUITE/tests/functional/slog/slog.kshlib
#################################################################################
View
4 ZFS-Test_Suite/tests/functional/slog/slog_004_pos
@@ -27,6 +27,10 @@
# ident "@(#)slog_004_pos.ksh 1.1 07/07/31 SMI"
#
+. $STF_SUITE/commands.cfg
+. $STF_SUITE/include/libtest.kshlib
+. $STF_SUITE/include/default_common_varible.kshlib
+. $STF_SUITE/tests/functional/slog/slog.cfg
. $STF_SUITE/tests/functional/slog/slog.kshlib
#################################################################################
View
5 ZFS-Test_Suite/tests/functional/slog/slog_005_pos
@@ -27,8 +27,13 @@
# ident "@(#)slog_005_pos.ksh 1.1 07/07/31 SMI"
#
+. $STF_SUITE/commands.cfg
+. $STF_SUITE/include/libtest.kshlib
+. $STF_SUITE/include/default_common_varible.kshlib
+. $STF_SUITE/tests/functional/slog/slog.cfg
. $STF_SUITE/tests/functional/slog/slog.kshlib
+
#################################################################################
#
# __stc_assertion_start
View
6 ZFS-Test_Suite/tests/functional/slog/slog_006_pos
@@ -27,8 +27,14 @@
# ident "@(#)slog_006_pos.ksh 1.1 07/07/31 SMI"
#
+
+. $STF_SUITE/commands.cfg
+. $STF_SUITE/include/libtest.kshlib
+. $STF_SUITE/include/default_common_varible.kshlib
+. $STF_SUITE/tests/functional/slog/slog.cfg
. $STF_SUITE/tests/functional/slog/slog.kshlib
+
#################################################################################
#
# __stc_assertion_start
View
4 ZFS-Test_Suite/tests/functional/slog/slog_007_pos
@@ -27,6 +27,10 @@
# ident "@(#)slog_007_pos.ksh 1.1 07/07/31 SMI"
#
+. $STF_SUITE/commands.cfg
+. $STF_SUITE/include/libtest.kshlib
+. $STF_SUITE/include/default_common_varible.kshlib
+. $STF_SUITE/tests/functional/slog/slog.cfg
. $STF_SUITE/tests/functional/slog/slog.kshlib
#################################################################################
View
6 ZFS-Test_Suite/tests/functional/slog/slog_008_neg
@@ -27,8 +27,14 @@
# ident "@(#)slog_008_neg.ksh 1.1 07/07/31 SMI"
#
+
+. $STF_SUITE/commands.cfg
+. $STF_SUITE/include/libtest.kshlib
+. $STF_SUITE/include/default_common_varible.kshlib
+. $STF_SUITE/tests/functional/slog/slog.cfg
. $STF_SUITE/tests/functional/slog/slog.kshlib
+
#################################################################################
#
# __stc_assertion_start
View
6 ZFS-Test_Suite/tests/functional/slog/slog_009_neg
@@ -27,8 +27,14 @@
# ident "@(#)slog_009_neg.ksh 1.1 07/07/31 SMI"
#
+
+. $STF_SUITE/commands.cfg
+. $STF_SUITE/include/libtest.kshlib
+. $STF_SUITE/include/default_common_varible.kshlib
+. $STF_SUITE/tests/functional/slog/slog.cfg
. $STF_SUITE/tests/functional/slog/slog.kshlib
+
#################################################################################
#
# __stc_assertion_start
View
8 ZFS-Test_Suite/tests/functional/slog/slog_010_neg
@@ -27,7 +27,13 @@
# ident "@(#)slog_010_neg.ksh 1.1 07/07/31 SMI"
#
+. $STF_SUITE/commands.cfg
+. $STF_SUITE/include/libtest.kshlib
+. $STF_SUITE/include/default_common_varible.kshlib
+. $STF_SUITE/tests/functional/slog/slog.cfg
. $STF_SUITE/tests/functional/slog/slog.kshlib
+. $STF_SUITE/STF/usr/src/tools/stf/contrib/include/logapi.kshlib
+
#################################################################################
#
@@ -62,7 +68,7 @@ log_onexit cleanup
log_must $ZPOOL create $TESTPOOL $VDEV spare $SDEV log $LDEV
sdev=$(random_get $SDEV)
ldev=$(random_get $LDEV)
-log_mustnot $ZPOOL replace $TESTPOOL $ldev $sdev
+log_mustnot $ZPOOL replace -f $TESTPOOL $sdev $ldev # change made here
log_mustnot verify_slog_device $TESTPOOL $sdev 'ONLINE'
log_must verify_slog_device $TESTPOOL $ldev 'ONLINE'
View
6 ZFS-Test_Suite/tests/functional/slog/slog_011_neg
@@ -27,8 +27,14 @@
# ident "@(#)slog_011_neg.ksh 1.1 07/07/31 SMI"
#
+
+. $STF_SUITE/commands.cfg
+. $STF_SUITE/include/libtest.kshlib
+. $STF_SUITE/include/default_common_varible.kshlib
+. $STF_SUITE/tests/functional/slog/slog.cfg
. $STF_SUITE/tests/functional/slog/slog.kshlib
+
#################################################################################
#
# __stc_assertion_start
View
0  ZFS-Test_Suite/tests/functional/slog/stf_description 100644 → 100755
File mode changed
Please sign in to comment.
Something went wrong with that request. Please try again.