100+ results results for 'test lang:BourneShell' (114 ms)
1#!/bin/ksh -p 2# Uncomment next line for testing 3# set -xregress_defs.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 323 lines
41if [ $OPENESB_BUILD -eq 1 ]; then 42 UI_REGRESS_DIST_DIR=$JV_SVC_TEST_CLASSES/testdata 43else 52if [ "$FORTE_PORT" = "cygwin" -o "$FORTE_PORT" = "nt" ]; then 53 TEST_ASADMIN=${JV_SVC_BLD}/regress/test_asadmin.bat 54fi 214 echo "-------------------------------------------------------------------" 215 echo " Start Test : $TEST_NAME" 216 echo " Description: $TEST_DESCRIPTION" 221#---------------------------------------------------------------------------------- 222# Perform the test initialization, which consist of echoing the test description, 223# building the test artifacts and creating the temporary output file. 235# the vairable output too. This is mostly used when setting up the 236# test environment before running the test. 237#-------------------------------------------------------------------------tzselect.ksh https://gitlab.com/gbenson/glibc | Korn Shell | 559 lines
133 *) 134 if test 1 -le $select_i && test $select_i -le $#; then 135 shift `expr $select_i - 1` 155 location_limit=$OPTARG ;; 156 t*) # Undocumented option, used for developer testing. 157 zonetabtype=$OPTARG ;;zpool_import_missing_003_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 239 lines
191 "" ${vdevs[i]} 192 log_must $CP $MYTESTFILE $TESTDIR1/$TESTFILE0 193 log_must $ZFS umount $TESTDIR1 196 197 setup_filesystem "$vdev2" $TESTPOOL2 $TESTFS $TESTDIR2 \ 198 "" ${vdevs[j]} 198 "" ${vdevs[j]} 199 log_must $CP $MYTESTFILE $TESTDIR2/$TESTFILE0 200 log_must $ZFS umount $TESTDIR2 219 if [[ $action == log_must ]]; then 220 verify "$TESTPOOL1" "$TESTFS" "$TESTDIR1" \ 221 "DEGRADED" "$TESTFILE0" "$checksum1" 223 224 verify "$TESTPOOL2" "$TESTFS" "$TESTDIR2" \ 225 "ONLINE" "$TESTFILE0" "$checksum1"jbi-admin-cli00008.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 179 lines
32#---------------------------------------------------------------------------------- 33# Main function called that will run the test 34#---------------------------------------------------------------------------------- 34#---------------------------------------------------------------------------------- 35run_test() 36{ 36{ 37 initilize_test 38 39 #-------------------------------------------------------------------------------- 40 # Test setting and showing the runtime configuration values 41 #-------------------------------------------------------------------------------- 172TEST_NAME="jbi-admin-cli00008" 173TEST_DESCRIPTION="Test the set and show commands for Runtime Configuration and Runtime Loggers" 174. ./regress_defs.kshtst.localsctpstate.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 175 lines
27# 28# Test sctp:::state-change and sctp:::{send,receive} by connecting to 29# the local discard service. 35# 1. A change to the ip stack breaking expected probe behavior, 36# which is the reason we are testing. 37# 2. The lo0 interface missing or not up. 40# 41# This test performs a SCTP connection and checks that at least the 42# following packet counts were traced: 48# 49# The actual count tested is 7 each way, since we are tracing both 50# source and destination events. 59local=127.0.0.1 60DIR=/var/tmp/dtest.$$ 61zfs_unmount_009_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 141 lines
69 70 for fs in $TESTPOOL/$TESTFS $TESTPOOL ; do 71 typeset snap=$fs@$TESTSNAP 82 log_must $ZFS create $TESTPOOL/$TESTFS 83 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS 84 fi 90 log_must $ZFS create $TESTPOOL/$TESTFS 91 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS 92 log_must cd $TESTDIR 93 $ECHO hello > world 94 log_must $ZFS snapshot $TESTPOOL/$TESTFS@$TESTSNAP 95 log_must cd $(get_snapdir_name)/$TESTSNAP 102 103for fs in $TESTPOOL/$TESTFS $TESTPOOL ; do 104 typeset snap=$fs@$TESTSNAPzfs_destroy_005_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 227 lines
55# 56# TEST_AUTOMATION_LEVEL: automated 57# 75# 76function negative_test 77{ 98# created from within this file 99$ZFS destroy -f $TESTPOOL/$TESTFS 100 125# 126# Checking the outcome of the test above is tricky, because the order in 127# which datasets are destroyed is not deterministic. Both $FS and $VOL are 152# 153setup_testenv clone 154negative_test "-R -rR" $FSzfs_clone_001_neg.ksh https://github.com/freebsd/freebsd.git | Korn Shell | 143 lines
70typeset target1=$TESTPOOL/$TESTFS1 71typeset target2=$TESTPOOL/$TESTCTR1/$TESTFS1 72typeset targets="$target1 $target2 $NONEXISTPOOLNAME/$TESTFS" 74set -A args "" \ 75 "$TESTPOOL/$TESTFS@blah $target1" "$TESTPOOL/$TESTVOL@blah $target1" \ 76 "$TESTPOOL/$TESTFS@blah* $target1" "$TESTPOOL/$TESTVOL@blah* $target1" \ 78 "$SNAPFS /$target1" "$SNAPFS1 /$target1" \ 79 "$SNAPFS $TESTPOOL//$TESTFS1" "$SNAPFS1 $TESTPOOL//$TESTFS1" \ 80 "$SNAPFS $NONEXISTPOOLNAME/$TESTFS" "$SNAPFS1 $NONEXISTPOOLNAME/$TESTFS" \ 90set -A moreargs "$SNAPFS $target2" "$SNAPFS1 $target2" \ 91 "$SNAPFS $TESTPOOL" "$SNAPFS1 $TESTPOOL" \ 92 "$SNAPFS $TESTPOOL/$TESTCTR" "$SNAPFS $TESTPOOL/$TESTFS" \ 92 "$SNAPFS $TESTPOOL/$TESTCTR" "$SNAPFS $TESTPOOL/$TESTFS" \ 93 "$SNAPFS1 $TESTPOOL/$TESTCTR" "$SNAPFS1 $TESTPOOL/$TESTFS" 94zinject_003_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 144 lines
84 85 unmounted $TESTPOOL/$TESTFS || \ 86 log_fail "$TESTPOOL/$TESTFS mount unexpected." 87 88 log_must check_status $TESTPOOL "$TESTPOOL/$TESTFS:<0x0>" 89 133 log_must $ZFS create $TESTPOOL/$TESTFS 134 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS 135 135 136 populate_test_env $TESTDIR/bad_dir $maxnumber 137 137 138 test_zinject $TESTDIR/bad_dir $type 139zfs_get_002_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 116 lines
31 32. $STF_SUITE/tests/cli_root/zfs_get/zfs_get_common.kshlib 33. $STF_SUITE/tests/userquota/userquota_common.kshlib 50# 51# TESTABILITY: explicit 52# 52# 53# TEST_AUTOMATION_LEVEL: automated 54# 83 84set -A dataset $TESTPOOL/$TESTCTR $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL \ 85 $TESTPOOL/$TESTFS@$TESTSNAP $TESTPOOL/$TESTVOL@$TESTSNAP 91# Create volume and filesystem's snapshot 92create_snapshot $TESTPOOL/$TESTFS $TESTSNAP 93create_snapshot $TESTPOOL/$TESTVOL $TESTSNAPjbi-admin-cli00004.ksh https://bitbucket.org/ssteinmetz/openesb-core.git | Korn Shell | 364 lines
34#---------------------------------------------------------------------------------- 35test_cleanup() 36{ 42#---------------------------------------------------------------------------------- 43# Main function called that will run the test 44#---------------------------------------------------------------------------------- 44#---------------------------------------------------------------------------------- 45run_test() 46{ 46{ 47 initilize_test 48 48 49 # Clean up the (Remove uninstall everything so this regression test will work 50 test_cleanupjbi-admin-cli00010.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 195 lines
33#---------------------------------------------------------------------------------- 34test_cleanup() 35{ 40#---------------------------------------------------------------------------------- 41# Main function called that will run the test 42#---------------------------------------------------------------------------------- 42#---------------------------------------------------------------------------------- 43run_test() 44{ 44{ 45 initilize_test 46 build_test_application_artifacts 188TEST_NAME="jbi-admin-cli00010" 189TEST_DESCRIPTION="Test Application Variable Commands" 190. ./regress_defs.kshhotplug_008_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 74 lines
31 32. $STF_SUITE/tests/hotplug/hotplug.kshlib 33 50# 51# TESTABILITY: explicit 52# 52# 53# TEST_AUTOMATION_LEVEL: automated 54# 63for type in "mirror" "raidz" "raidz2"; do 64 log_must $ZPOOL create -f $TESTPOOL $type $DISK0.nop $DISK1.nop $DISK2.nop spare $DISK3.nop 65 70 log_must create_gnop $DISK3 71 cleanup_testenv $TESTPOOL 72donezfs_create_003_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 81 lines
30# 31. $STF_SUITE/include/libtest.kshlib 32 46# 47# TESTABILITY: explicit 48# 48# 49# TEST_AUTOMATION_LEVEL: automated 50# 68set -A options "" "-b 1k" "-b 1K" "-b 1024" "-b 1024b" 69vol=$TESTPOOL/$TESTVOL 70zfs_create_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 84 lines
30# 31. $STF_SUITE/include/libtest.kshlib 32 45# 46# TESTABILITY: explicit 47# 47# 48# TEST_AUTOMATION_LEVEL: automated 49# 70 71set -A datasets "$TESTPOOL/$TESTFS1" "$TESTPOOL/$LONGFSNAME" "$TESTPOOL/..." \ 72 "$TESTPOOL/_1234_"tst.static2.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 108 lines
28# Rebuilding an object file containing DOF changes slightly when the object 29# files containing the probes have already been modified. This tests that 30# case by generating the DOF object, removing it, and building it again. 49{ 50 DTRACE_PROBE(test_prov, probe1); 51 DTRACE_PROBE(test_prov, probe2); 57 DTRACE_PROBE(test_prov, probe1); 58 DTRACE_PROBE(test_prov, probe2); 59 foo(); 69 70cc -c test.c 71if [ $? -ne 0 ]; then 85fi 86cc -o test test.o prov.o 87if [ $? -ne 0 ]; thenzpool_set_001_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 85 lines
31 32. $STF_SUITE/include/libtest.kshlib 33. $STF_SUITE/tests/cli_user/cli_user.kshlib 49# 50# TESTABILITY: explicit 51# 51# 52# TEST_AUTOMATION_LEVEL: automated 53# 72 NEW=${prop_new[$i]} 73 log_mustnot run_unprivileged "$ZPOOL set $PROP=$NEW $TESTPOOL" 74 75 # Now verify that the above command did nothing 76 ACTUAL=$( $ZPOOL get $PROP $TESTPOOL | $GREP $PROP | $AWK '{print $1}' ) 77 if [ "$ACTUAL" != "$EXPECTED" ]zfs_acl_chmod_rwx_002_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 261 lines
150# 151function check_test_result #init_mode node acl_flag acl_access a_type 152{ 184 185function test_chmod_map #<node> 186{ 207 typeset orig_ace=$TMPDIR/orig_ace.${TESTCASE_ID} 208 typeset cur_ace=$TMPDIR/cur_ace.${TESTCASE_ID} 209 248 log_must usr_exec $TOUCH $testfile 249 test_chmod_map $testfile 250 log_must $RM -f $testfile 252 log_must usr_exec $MKDIR $testdir 253 test_chmod_map $testdir 254 log_must $RM -rf $testdirhotspare_import_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 167 lines
69{ 70 poolexists $TESTPOOL && \ 71 destroy_pool $TESTPOOL 117 # 118 log_must $ZPOOL replace $TESTPOOL $odev $dev 119 while ! is_pool_resilvered $TESTPOOL ; do 130 log_must $ZPOOL offline $TESTPOOL $odev 131 verify_export_import $TESTPOOL \ 132 $mtpt/$TESTFILE0 $checksum1 152 mtpt=$(get_prop mountpoint $TESTPOOL) 153 log_must $CP $MYTESTFILE $mtpt/$TESTFILE0 154 158 verify_export_import $TESTPOOL \ 159 $mtpt/$TESTFILE0 $checksum1 160zpool_import_012_pos.ksh https://github.com/freebsd/freebsd.git | Korn Shell | 194 lines
102 log_must $ZFS create $TESTPOOL/$TESTFS 103 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS 104 118 log_must $ZFS set canmount=off $pool/$TESTFS/$TESTCTR 119 log_must $ZFS set canmount=off $pool/$TESTFS/$TESTCTR/$TESTCTR1 120 log_must $ZFS create $pool/$TESTFS/$TESTCTR/$TESTFS1 120 log_must $ZFS create $pool/$TESTFS/$TESTCTR/$TESTFS1 121 log_must $ZFS create $pool/$TESTFS/$TESTCTR/$TESTCTR1/$TESTFS1 122 log_must $ZFS create $pool/$TESTFS/$TESTFS1 123 log_must $ZFS snapshot $pool/$TESTFS/$TESTFS1@snap 124 log_must $ZFS clone $pool/$TESTFS/$TESTFS1@snap $pool/$TESTCLONE1 125done 127typeset mount_fs="$TESTFS $TESTFS/$TESTFS1 $TESTCLONE1 \ 128 $TESTFS/$TESTCTR/$TESTFS1 $TESTFS/$TESTCTR/$TESTCTR1/$TESTFS1" 129typeset nomount_fs="$TESTFS/$TESTCTR $TESTFS/$TESTCTR/$TESTCTR1"zfs_acl_chmod_inherit_002_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 415 lines
31 32. $STF_SUITE/tests/acl/acl_common.kshlib 33. $STF_SUITE/tests/acl/cifs/cifs.kshlib 45# STRATEGY: 46# 1. Loop super user and non-super user to run the test case. 47# 2. Create basedir and a set of subdirectores and files within it. 109# Defile the based directory and file 110basedir=$TESTDIR/basedir; ofile=$TESTDIR/ofile; odir=$TESTDIR/odir 111 345 346log_must $ZFS set aclmode=passthrough $TESTPOOL/$TESTFS 347 353 354 log_must $ZFS set aclinherit=$inherit $TESTPOOL/$TESTFS 355jbiadmin01602.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 99 lines
42INCORRECT_NEW_APP_CONFIG_FILE=$JV_SVC_REGRESS/deploytest/incorrect-new-app-config.properties 43UPDATED_APP_CONFIG_FILE=$JV_SVC_REGRESS/deploytest/updated-app-config.properties 44PARTIALLY_UPDATED_APP_CONFIG_FILE=$JV_SVC_REGRESS/deploytest/partially-updated-app-config.properties 48 49# Test : Test the application configuration operations for a component which is not installed - should get back an error. 50$JBI_ANT_CMD list-application-configurations 57 58# Test : Test the application configuration for a component which is not started - should get back an error. 59$JBI_ANT_CMD list-application-configurations 59$JBI_ANT_CMD list-application-configurations 60$JBI_ANT_CMD -Djbi.app.config.name=testConfig -Djbi.app.config.params.file=$NEW_APP_CONFIG_FILE create-application-configuration 61$JBI_ANT_CMD -Djbi.app.config.name=testConfig -Djbi.app.config.params.file=$UPDATED_APP_CONFIG_FILE update-application-configuration 61$JBI_ANT_CMD -Djbi.app.config.name=testConfig -Djbi.app.config.params.file=$UPDATED_APP_CONFIG_FILE update-application-configuration 62$JBI_ANT_CMD -Djbi.app.config.name=testConfig delete-application-configuration 63jbiadmin00135.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 96 lines
33############################################################################################# 34# Tests starting a service assembly which has a service unit in the Stopped state # 35# and start fails, the service unit state should be rolled back to Stopped # 37# # 38# A test component used throws an exception on start and shutDown of a service unit # 39# # 39# # 40# The test : # 41# (a) Package, install and start the test components # 51 52COMPONENT_ARCHIVE_1=$JV_SVC_TEST_CLASSES/dist/component-binding-1.jar 53COMPONENT_NAME_1=manage-binding-1 75 76# Test (c) : Deploy and start the test service assembly 77$JBI_ANT -Djbi.deploy.file=$SA_ARCHIVE deploy-service-assemblyjbi-admin-cli00013.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 251 lines
45 initilize_test 46 build_test_engine_with_endpoints_artifacts 47 test_cleanup 63 install_component server ${JV_SVC_BLD}/regress/dist/simpletestengine.jar 64 start_component server SimpleTestEngine 65 140 echo "start-jbi-component SimpleTestEngine" 141 $AS8BASE/bin/asadmin start-jbi-component --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS SimpleTestEngine 142 147 echo "show-jbi-statistics --component=SimpleTestEngine" 148 $AS8BASE/bin/asadmin show-jbi-statistics --component=SimpleTestEngine --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS 149 244TEST_NAME="jbi-admin-cli00013" 245TEST_DESCRIPTION="Test Show Statistics" 246. ./regress_defs.kshzfs_acl_chmod_inherit_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 193 lines
31 32. $STF_SUITE/tests/acl/acl_common.kshlib 33 44# STRATEGY: 45# 1. Loop super user and non-super user to run the test case. 46# 2. Create basedir and a set of subdirectores and files within it. 67# 68# TESTABILITY: explicit 69# 69# 70# TEST_AUTOMATION_LEVEL: automated 71# 98# Defile the based directory and file 99basedir=$TESTDIR/basedir; basefile=$TESTDIR/basefile 100zfs_acl_chmod_aclmode_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 490 lines
31 32. $STF_SUITE/tests/acl/acl_common.kshlib 33 44# STRATEGY: 45# 1. Loop super user and non-super user to run the test case. 46# 2. Create basedir and a set of subdirectores and files within it. 52# 53# TESTABILITY: explicit 54# 54# 55# TEST_AUTOMATION_LEVEL: automated 56# 429 430 log_must $ZFS set aclmode=$mode $TESTPOOL/$TESTFS 431jbi-admin-cli00016.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 199 lines
32#---------------------------------------------------------------------------------- 33# Main function called that will run the test 34#---------------------------------------------------------------------------------- 34#---------------------------------------------------------------------------------- 35run_test() 36{ 105 echo "upgrade-jbi-component fred" 106 $TEST_ASADMIN upgrade-jbi-component --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS --upgradefile=fred cli_test_engine4 ; echo $? 107 141 echo "delete-jbi-application-configuration FirstName,LastName" 142 $TEST_ASADMIN delete-jbi-application-configuration --port $ADMIN_PORT --target server --user $ADMIN_USER $ASADMIN_PW_OPTS --component=sun-http-binding testConfigBad ; echo $? 143 192TEST_NAME="jbi-admin-cli00016" 193TEST_DESCRIPTION="Test exit code" 194. ./regress_defs.kshcifs_attr_002_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 280 lines
31 32. $STF_SUITE/tests/acl/acl_common.kshlib 33. $STF_SUITE/tests/acl/cifs/cifs.kshlib 46# STRATEGY: 47# 1. Loop super user and non-super user to run the test case. 48# 2. Create basedir and a set of subdirectores and files within it. 51# 52# TESTABILITY: explicit 53# 75 76 for fs in $TESTPOOL/$TESTFS $TESTPOOL ; do 77 mtpt=$(get_prop mountpoint $fs) 245typeset gobject 246for fs in $TESTPOOL $TESTPOOL/$TESTFS ; do 247 mtpt=$(get_prop mountpoint $fs)tst.remotesctpstate.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 149 lines
27# 28# Test sctp:::state-change and sctp:::{send,receive} by connecting to 29# the remote http service. 35# 1. A change to the ip stack breaking expected probe behavior, 36# which is the reason we are testing. 37# 2. The lo0 interface missing or not up. 41# 42# This test performs a SCTP association to the http service (port 80) and 43# checks that at least the following packet counts were traced: 58sctpport=80 59DIR=/var/tmp/dtest.$$ 60 72 73cat > test.pl <<-EOPERL 74 use IO::Socket;tst.exitcore.ksh https://github.com/okuoku/freebsd-head.git | Korn Shell | 92 lines
28# 29# This script tests that the proc:::exit probe fires with the correct argument 30# when the process core dumps. The problematic bit here is making sure that 31# a process _can_ dump core -- if core dumps are disabled on both a global 32# and per-process basis, this test will fail. Rather than having this test 33# muck with coreadm(1M) settings, it will fail explicitly in this case andrun_juicer.ksh https://github.com/ikeji/openjdk7-jdk.git | Korn Shell | 79 lines
25# 26# Script to build and launch the juicer test as part of 27# the RMI reliability test. This script is used to run 27# the RMI reliability test. This script is used to run 28# the juicer test for a certain number of hours. This 29# script is NOT used when running the juicer test as part 75 76echo " Juicer test finished with exit value ${RETVAL}" 77jbiadmin02001.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 212 lines
29# 30#jbiadmin02001 - Synchronization test cluster component configuration 31 34 35my_test_domain=CAS 36. $SRCROOT/antbld/regress/common_defs.ksh 50# Install a component 51$JBI_ANT_NEG -Djbi.install.file=$JV_SVC_TEST_CLASSES/dist/component-with-custom-mbean.jar -Djbi.target="sccfg-cluster" install-component 52installComponentDelay 135# Add an application configuration 136$JBI_ANT_NEG -Djbi.app.config.name=testConfig -Djbi.app.config.params.file=$JV_SVC_REGRESS/deploytest/new-app-config.properties -Djbi.component.name=manage-binding-1 -Djbi.target="sccfg-cluster" create-application-configuration 137 158#Update application configuration 159$JBI_ANT_NEG -Djbi.app.config.name=testConfig -Djbi.app.config.params.file=$JV_SVC_REGRESS/deploytest/updated-app-config.properties -Djbi.component.name=manage-binding-1 -Djbi.target="sccfg-cluster" update-application-configuration 160jbiadmin00136.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 88 lines
30 31echo "jbiadmin00136 : Test partial service assembly deployment ( Fix for CR 6514320 )" 32 33############################################################################################# 34# Tests deploying a service assembly. One component fails deploy, the # 35# deployment result should show the error for the failed deployment. # 36# # 37# A test component used throws an exception on deploy of a service unit # 38# # 38# # 39# The test : # 40# (a) Package, install and start the test components # 48 49COMPONENT_ARCHIVE_1=$JV_SVC_TEST_CLASSES/dist/component-binding-1.jar 50COMPONENT_NAME_1=manage-binding-1jbi-admin-cli00009.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 186 lines
32#---------------------------------------------------------------------------------- 33# Main function called that will run the test 34#---------------------------------------------------------------------------------- 34#---------------------------------------------------------------------------------- 35run_test() 36{ 36{ 37 initilize_test 38 44 #-------------------------------------------------------------------------------- 45 # Test setting and showing the component configuration values 46 #-------------------------------------------------------------------------------- 179TEST_NAME="jbi-admin-cli00009" 180TEST_DESCRIPTION="Test Show and Set for Component configuration and loggers" 181. ./regress_defs.kshhotplug_011_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 84 lines
31 32. $STF_SUITE/tests/hotplug/hotplug.kshlib 33 52# 53# TESTABILITY: explicit 54# 54# 55# TEST_AUTOMATION_LEVEL: automated 56# 66for type in "mirror" "raidz" "raidz2"; do 67 setup_testenv $type 68 79 log_must create_gnop $DISK0 80 cleanup_testenv $TESTPOOL 81doneuser_property_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 83 lines
31 32. $STF_SUITE/tests/cli_root/zfs_set/zfs_set_common.kshlib 33 50# 51# TESTABILITY: explicit 52# 52# 53# TEST_AUTOMATION_LEVEL: automated 54# 64 "dataset." 65log_onexit cleanup_user_prop $TESTPOOL 66 74 75 for dtst in $TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL; do 76 log_must eval "$ZFS set $user_prop='$value' $dtst"zfs_list_003_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 91 lines
30# 31. $STF_SUITE/include/libtest.kshlib 32. $STF_SUITE/tests/cli_user/cli_user.kshlib 48# 49# TESTABILITY: explicit 50# 71tmpfile=$TMPDIR/zfslist.out.${TESTCASE_ID} 72children="$TESTPOOL/$TESTFS" 73 74for fs in $DATASETS ; do 75 children="$children $TESTPOOL/$TESTFS/$fs" 76done 79 80for path in $TESTPOOL/$TESTFS $TESTDIR ./../$TESTDIR ; do 81 run_unprivileged $ZFS list -rH -o name $path > $tmpfilezfs_share_008_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 88 lines
31 32. $STF_SUITE/include/libtest.kshlib 33 47# 48# TESTABILITY: explicit 49# 49# 50# TEST_AUTOMATION_LEVEL: automated 51# 61 set -A datasets \ 62 "$TESTPOOL/$TESTVOL" "$TESTDIR" 63fitst.noreapring.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 124 lines
48cat > prov.d <<EOF 49provider test_prov { 50 probe probe1(); 53 54cc -c test.c 55if [ $? -ne 0 ]; then 58fi 59$dtrace -G -s prov.d test.o 60if [ $? -ne 0 ]; then 63fi 64cc -o test test.o prov.o 65if [ $? -ne 0 ]; then 72 $dtrace -Zwqs /dev/stdin <<EOF 73 test_prov*::: 74 {zfs_002_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 127 lines
30# 31. $STF_SUITE/include/libtest.kshlib 32. $STF_SUITE/tests/userquota/userquota_common.kshlib 47# 48# TESTABILITY: explicit 49# 49# 50# TEST_AUTOMATION_LEVEL: automated 51# 76 77#preparation work for testing 78corepath=$TESTDIR/core 83 84ctr=$TESTPOOL/$TESTCTR 85log_must $ZFS create $ctrzpool_add_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 127 lines
30# 31. $STF_SUITE/include/libtest.kshlib 32. $STF_SUITE/tests/cli_root/zpool_add/zpool_add.kshlib 48# 49# TESTABILITY: explicit 50# 50# 51# TEST_AUTOMATION_LEVEL: automated 52# 88 for vdev in "${poolarray[@]}"; do 89 create_pool "$TESTPOOL" "${diskname3}" 90 log_must poolexists "$TESTPOOL" 90 log_must poolexists "$TESTPOOL" 91 log_must $ZPOOL add -f "$TESTPOOL" ${keywords[i]} \ 92 $vdevzpool_export_001_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 79 lines
31 32. $STF_SUITE/include/libtest.kshlib 33. $STF_SUITE/tests/cli_user/cli_user.kshlib 48# 49# TESTABILITY: explicit 50# 50# 51# TEST_AUTOMATION_LEVEL: automated 52# 60{ 61 RESULT=$($ZPOOL list | $GREP $TESTPOOL.virt ) 62 if [ -z "$RESULT" ] 72 73log_mustnot run_unprivileged "$ZPOOL export $TESTPOOL.virt" 74check_for_exportzpool_get_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 75 lines
31 32. $STF_SUITE/include/libtest.kshlib 33 48# 49# TESTABILITY: explicit 50# 50# 51# TEST_AUTOMATION_LEVEL: automated 52#clean_mirror_002_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 67 lines
31 32. $STF_SUITE/include/libtest.kshlib 33. $STF_SUITE/tests/clean_mirror/clean_mirror_common.kshlib 49# 50# TESTABILITY: explicit 51# 51# 52# TEST_AUTOMATION_LEVEL: automated 53#zpool_create_001_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 75 lines
30# 31. $STF_SUITE/include/libtest.kshlib 32 46# 47# TESTABILITY: explicit 48# 48# 49# TEST_AUTOMATION_LEVEL: automated 50# 64 65set -A args "create $TESTPOOL $ADD_DISK" "create -f $TESTPOOL $ADD_DISK" 66reservation_004_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 131 lines
71 72log_must $ZFS create $TESTPOOL/$TESTFS2 73 79 OBJ_LIST="$TESTPOOL/$TESTFS2 \ 80 $TESTPOOL/$TESTVOL $TESTPOOL/$TESTVOL2" 81 86 87 log_must $ZFS create -V $vol_set_size $TESTPOOL/$TESTVOL 88 if fs_prop_exist refreserv; then 88 if fs_prop_exist refreserv; then 89 log_must $ZFS set refreservation=none $TESTPOOL/$TESTVOL 90 fi 91 log_must $ZFS set reservation=none $TESTPOOL/$TESTVOL 92 log_must $ZFS create -s -V $sparse_vol_set_size $TESTPOOL/$TESTVOL2 93fireservation_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 132 lines
76else 77 OBJ_LIST="$TESTPOOL/$TESTVOL $TESTPOOL/$TESTVOL2" 78 88 # 89 log_must $ZFS create -V $vol_set_size $TESTPOOL/$TESTVOL 90 log_must $ZFS set reservation=none $TESTPOOL/$TESTVOL 91 if fs_prop_exist refreserv; then 92 log_must $ZFS set refreservation=none $TESTPOOL/$TESTVOL 93 fi 93 fi 94 log_must $ZFS create -s -V $sparse_vol_set_size $TESTPOOL/$TESTVOL2 95fi 97 98for obj in $TESTPOOL/$TESTFS $OBJ_LIST; do 99zfs_acl_chmod_delete_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 321 lines
89 if [[ ! -e $target ]]; then 90 log_must $TAR xpf $TESTDIR/$ARCHIVEFILE 91 fi 93 (( ${#cwd} != 0 )) && cd $cwd 94 cleanup_test_files $TESTDIR/basedir 95 log_must $RM -f $TESTDIR/$ARCHIVEFILE 251 252function setup_test_files #base_node user group 253{ 257 258 cleanup_test_files $base_node 259 301while (( i < ${#users[@]} )); do 302 setup_test_files $TESTDIR/basedir ${users[i]} ${users[((i+1))]} 303jbi-admin-cli00012.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 98 lines
52 echo "verify-jbi-application-environment sa1.jar" 53 $AS8BASE/bin/asadmin verify-jbi-application-environment --templatedir=${JV_SVC_BLD}/regress/testdata/tmp --includedeploy --target server --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS ${JV_SVC_BLD}/regress/sa1.jar 54 70 echo "-------------------------------------------------------------------" 71 echo " Install test components test-component and test-component1" 72 echo "-------------------------------------------------------------------" 75 $AS8BASE/bin/asadmin install-jbi-component --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS ${JV_SVC_BLD}/regress/test-component.jar 76 $AS8BASE/bin/asadmin install-jbi-component --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS ${JV_SVC_BLD}/regress/test-component1.jar 77 82 echo "verify-jbi-application-environment test-sa.jar" 83 $AS8BASE/bin/asadmin verify-jbi-application-environment --templatedir=${JV_SVC_BLD}/regress/testdata/tmp --includedeploy --target server --port $ADMIN_PORT --user $ADMIN_USER $ASADMIN_PW_OPTS ${JV_SVC_BLD}/regress/test-sa.jar 84 91TEST_NAME="jbi-admin-cli00012" 92TEST_DESCRIPTION="Test Verify Command" 93. ./regress_defs.kshzfs_copies_006_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 91 lines
31 32. $STF_SUITE/tests/cli_root/zfs_copies/zfs_copies.kshlib 33 49# 50# TESTABILITY: explicit 51# 51# 52# TEST_AUTOMATION_LEVEL: automated 53# 80mntp=$UFS_MNTPOINT 81vol=$TESTPOOL/$TESTVOL1 82 87for val in 1 2 3; do 88 do_vol_test ufs $val $mntp 89donejbiadmin01604.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 123 lines
40NEW_APP_VAR_FILE=$JV_SVC_REGRESS/deploytest/new-app-var.properties 41UPDATED_APP_VAR_FILE=$JV_SVC_REGRESS/deploytest/updated-app-var.properties 42INCORRECT_APP_VAR_FILE=$JV_SVC_REGRESS/deploytest/non-existant-app-var.properties 46 47# Test : Test the application configuration operations for a component which is not installed - should get back an error. 48$JBI_ANT_CMD list-application-variables 55 56# Test : Test the application configuration for a component which is not started - should get back an error. 57$JBI_ANT_CMD list-application-variables 77 78# Test deleting a non-existing application configuration 79$JBI_ANT_CMD -Djbi.app.variable.name=xyz delete-application-variable 85 86# Test adding a application variable with the type not specified / empty ( test fix for issue 148 ) 87$JBI_ANT_CMD -Djbi.app.variable.name=FirstName -Djbi.app.variable.value=John create-application-variablezpool_import_missing_005_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 124 lines
29 30. $STF_SUITE/include/libtest.kshlib 31 39# Verify that a pool can still be imported even if its devices' names 40# have changed, for all types of devices. This is a test of vdev_geom's 41# import_by_guid functionality. 48# 49# TESTABILITY: explicit 50# 50# 51# TEST_AUTOMATION_LEVEL: automated 52# 79{ 80 destroy_pool $TESTPOOL 81 $MDCONFIG -d -u $REGULAR_U 2>/dev/nullzpool_import_missing_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 171 lines
30# 31. $STF_SUITE/include/libtest.kshlib 32. $STF_SUITE/tests/cli_root/zfs_mount/zfs_mount.kshlib 100 log_fail "ERROR: $TESTPOOL1: Incorrect health '$health'" 101 log_must ismounted $TESTPOOL1/$TESTFS 102 102 103 basedir=$TESTDIR1 104 [[ -n "${import_opts}" ]] && basedir=$ALTER_ROOT/$TESTDIR1 157 log_note "Testing import by name; ${count} removed." 158 perform_inner_test $action "${opts}" $TESTPOOL1 159 160 log_note "Testing import by GUID; ${count} removed." 161 perform_inner_test $action "${opts}" $guid 162 donejbiadmin01255.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 82 lines
36#jbiadmin01255 - Test fix for 6536737 - Sync. in clustered instance 37#this test covers the use case of adding a new instance to a cluster with existing deployments 38#start/stop operations are performed after the new instance is added and started and verified that 47 48asadmin create-instance --port $ASADMIN_PORT --user $AS_ADMIN_USER $ASADMIN_PW_OPTS --cluster testcluster1 --nodeagent agent1 testins1 1>&2 49createInstanceDelay 55 56asadmin deploy-jbi-service-assembly -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT --target=testcluster1 $JV_SVC_TEST_CLASSES/dist/system-comps-sa.jar 2>&1 57deploySaDelay 57deploySaDelay 58asadmin start-jbi-service-assembly -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT --target=testcluster1 system-comps-sa 2>&1 59startSaDelay 62 63asadmin create-instance --port $ASADMIN_PORT --user $AS_ADMIN_USER $ASADMIN_PW_OPTS --cluster testcluster1 --nodeagent agent1 testins2 1>&2 64createInstanceDelayui00016.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 96 lines
31#### 32# Test for list-statistics 33#### 43SA_NAME=PingApp 44COMPONENT_ARCHIVE=${JV_SVC_BLD}/regress/dist/simpletestengine.jar 45COMPONENT_NAME=SimpleTestEngine 46 47run_test_against_server() 48{ 66 67run_test() 68{ 87 88run_test_against_server 89zpool_destroy_004_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 146 lines
47 create_pool "$TESTPOOL" "$DISK0" 48 log_must $ZFS create $TESTPOOL/$TESTFS 49 log_must $MKDIR -p $TESTDIR 49 log_must $MKDIR -p $TESTDIR 50 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS 51 log_must dd if=/dev/zero of=$TESTDIR/f0 bs=1024k count=$datasz 69 # 70 ( $ZFS send -RP $TESTPOOL/$TESTFS@snap1 | $ZFS receive -Fu $recv/d1 ) & 71 sndrcv_start=$(date '+%s') 117 create_sender_and_receiver 118 send_recv_destroy $sleeptime $TESTPOOL1 $TESTPOOL SENDER 119 121 create_sender_and_receiver 122 send_recv_destroy $sleeptime $TESTPOOL1 $TESTPOOL1 RECEIVER 123}zfsd_hotspare_004_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 108 lines
30# 31. $STF_SUITE/tests/hotspare/hotspare.kshlib 32. $STF_SUITE/tests/zfsd/zfsd.kshlib 52# 53# TESTABILITY: explicit 54# 54# 55# TEST_AUTOMATION_LEVEL: automated 56# 74 wait_for_pool_dev_state_change 20 $spare_dev INUSE 75 log_must $ZPOOL status $TESTPOOL 76 100for keyword in "${MY_KEYWORDS[@]}" ; do 101 log_must create_pool $TESTPOOL $keyword $REMOVAL_NOP $OTHER_NOPS spare $SPARE_NOP 102 log_must $ZPOOL set autoreplace=on $TESTPOOLzpool_import_008_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 112 lines
63{ 64 destroy_pool $TESTPOOL2 65 destroy_pool $TESTPOOL1 74 75function perform_test 76{ 85 86 log_must $ZPOOL destroy $TESTPOOL2 87 log_must $RM -rf $VDEV0 $VDEV1 104log_must $ZPOOL create $TESTPOOL1 raidz2 $VDEV0 $VDEV1 $VDEV2 $VDEV3 105perform_test $TESTPOOL1 106 107log_note "Testing import by GUID." 108log_must $ZPOOL create $TESTPOOL1 raidz2 $VDEV0 $VDEV1 $VDEV2 $VDEV3 109typeset guid=$(get_config $TESTPOOL1 pool_guid)mountpoint_002_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 110 lines
62 63set -A dataset "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTCTR" 64 64 65set -A values "$TESTDIR2" "$TESTDIR_NOTEXISTING" 66 71 log_must $ZFS mount -a 72 [[ -d $TESTDIR2 ]] && log_must $RM -r $TESTDIR2 73 [[ -d $TESTDIR_NOTEXISTING ]] && log_must $RM -r $TESTDIR_NOTEXISTING 82 log_fail "Unable to get the mountpoint property for $TESTPOOL/$TESTFS" 83old_ctr_mpt=$(get_prop mountpoint $TESTPOOL/$TESTCTR) 84[[ $? != 0 ]] && \ 84[[ $? != 0 ]] && \ 85 log_fail "Unable to get the mountpoint property for $TESTPOOL/$TESTCTR" 86zfs_receive_003_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 107 lines
31 32. $STF_SUITE/include/libtest.kshlib 33 50# 51# TESTABILITY: explicit 52# 52# 53# TEST_AUTOMATION_LEVEL: automated 54# 76ibackup=$TMPDIR/ibackup.${TESTCASE_ID} 77fs=$TESTPOOL/$TESTFS; snap1=$fs@snap1; snap2=$fs@snap2 78zfs_get_009_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 105 lines
31 32. $STF_SUITE/tests/cli_root/zfs_get/zfs_get_common.kshlib 33. $STF_SUITE/tests/cli_root/zfs_get/zfs_get_list_d.kshlib 49# 50# TESTABILITY: explicit 51# 51# 52# TEST_AUTOMATION_LEVEL: automated 53#ui00011.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 111 lines
34# 35# test runtime and components 36# 37 38test_configuration_tasks() 39{ 81 82run_test() 83{ 83{ 84build_test_artifacts 85$JBI_ANT -Djbi.component.name="sun-http-binding" start-component 90 91test_configuration_tasks 92zinject_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 147 lines
97 98function test_zinject 99{ 118 119 for object in $basedir/testfile.$maxnumber \ 120 $basedir/testdir.$maxnumber ; do 121 122 test_zinject_unit $etype $object \ 123 ${errset[i]} "${errset[((i+1))]}" 138 log_must $ZFS create $TESTPOOL/$TESTFS 139 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS 140 141 populate_test_env $TESTDIR $maxnumber 142 test_zinject $TESTDIR $type 143zpool_import_corrupt_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 130 lines
29 30. $STF_SUITE/include/libtest.kshlib 31 47# 48# TESTABILITY: explicit 49# 49# 50# TEST_AUTOMATION_LEVEL: automated 51# 102for ((i=0; $i<$N_VDEV_LABELS; i=$i+1 )); do 103 log_must $ZPOOL create -f $TESTPOOL $DISK 104 log_must $ZPOOL export $TESTPOOL 125 126 log_must $ZPOOL import $TESTPOOL 127 destroy_pool $TESTPOOLzfs_unmount_all_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 209 lines
64set -A fs "$TESTFS" "$TESTFS1" 65set -A ctr "" "$TESTCTR" "$TESTCTR1" "$TESTCTR/$TESTCTR1" 66set -A vol "$TESTVOL" "$TESTVOL1" 75 76 path=${TEST_BASE_DIR%%/}/testroot${TESTCASE_ID}/$TESTPOOL 77 if [[ -n ${ctr[i]} ]]; then 79 80 setup_filesystem "$DISKS" "$TESTPOOL" \ 81 "${ctr[i]}" "$path" \ 139 [[ -d ${TEST_BASE_DIR%%/}/testroot${TESTCASE_ID} ]] && \ 140 $RM -rf ${TEST_BASE_DIR%%/}/testroot${TESTCASE_ID} 141} 189 if [[ $opt == "-fa" ]]; then 190 mntpnt=$(get_prop mountpoint ${TESTPOOL}/${TESTCTR}/${TESTFS}) 191 cd $mntpnttst.func.ksh https://github.com/okuoku/freebsd-head.git | Korn Shell | 74 lines
65# platform does not support arbitrary resolution interval timers -- but 66# the above script was stress-tested down to 100 hertz and still ran 67# successfully on all platforms, so one is hopeful that this test will passzfsd_fault_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 163 lines
28 29. $STF_SUITE/include/libtest.kshlib 30 47# 48# TESTABILITY: explicit 49# 70 $ZPOOL clear $TESTPOOL 71 destroy_pool $TESTPOOL 72 fi 103 create_pool $TESTPOOL $type $DISKS 104 log_must $ZFS create $TESTPOOL/$TESTFS 105 116 /$TESTPOOL/$TESTFS/$TESTFILE 2> /dev/null 117 $FSYNC /$TESTPOOL/$TESTFS/$TESTFILE 118 dones10_boot.ksh https://github.com/richlowe/illumos-gate.git | Korn Shell | 338 lines
217if [ -n "$ARCH32" ]; then 218 replace_with_native /usr/lib/ipf/$ARCH32/ipftest 0555 root:bin 219 replace_with_native /usr/sbin/$ARCH32/ipf 0555 root:bin 226if [ -n "$ARCH64" ]; then 227 replace_with_native /usr/lib/ipf/$ARCH64/ipftest 0555 root:bin 228 replace_with_native /usr/sbin/$ARCH64/ipf 0555 root:binzfs_destroy_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 215 lines
45# STRATEGY: 46# 1. Create test environment according to options. There are three test 47# models can be created. Only ctr, fs & vol; with snap; with clone. 51# 52# TESTABILITY: explicit 53# 64# 65# According to parameters, 1st, create suitable testing environment. 2nd, 66# run 'zfs destroy $opt <dataset>'. 3rd, check the system status. 95 96 # According to option create test compatible environment. 97 case $opt in 98 -r|-rf) setup_testenv snap ;; 99 -R|-Rf) setup_testenv clone ;; 100 -f) setup_testenv ;;zfs_unmount_007_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 124 lines
63 64multifs="$TESTFS $TESTFS1" 65datasets="" 70 71set -A args "$unmountall $TESTPOOL/$TESTFS" \ 72 "$unmountcmd $datasets" 80 "$fs" \ 81 "${TEST_BASE_DIR%%/}/testroot${TESTCASE_ID}/$TESTPOOL/$fs" 82 done 90 cleanup_filesystem "$TESTPOOL" "$TESTFS1" 91 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS 92 93 [[ -d ${TEST_BASE_DIR%%/}/testroot${TESTCASE_ID} ]] && \ 94 $RM -rf ${TEST_BASE_DIR%%/}/testroot${TESTCASE_ID} 95tst.unpriv_funcs.ksh https://github.com/blacklion/GEOM-Events.git | Korn Shell | 79 lines
28# 29# Affirmative test of less privileged user operation. We do so by running 30# this test case as root, then as a less privileged user. The output shouldzpool_import_002_pos.ksh https://github.com/freebsd/freebsd.git | Korn Shell | 166 lines
65 66set -A pools "$TESTPOOL" "$TESTPOOL1" 67set -A devs "" "-d $DEVICE_DIR" 68set -A options "" "-R $ALTER_ROOT" 69set -A mtpts "$TESTDIR" "$TESTDIR1" 70 90 91 cleanup_filesystem $TESTPOOL1 $TESTFS 92 102 103setup_filesystem "$DEVICE_FILES" $TESTPOOL1 $TESTFS $TESTDIR1 104 136while (( i < ${#pools[*]} )); do 137 log_must $CP $MYTESTFILE ${mtpts[i]}/$TESTFILE0 138jbiadmin03001.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 98 lines
31#### 32#test to verify that event listeners for create registers the ComponentFacadeMBeans 33#start domain 38 39echo "jbiadmin03001 : Test fix for CR 6532519 - not able to start system components in standalone instance" 40 40 41my_test_domain=ESBTest 42. ./regress_defs.ksh 42. ./regress_defs.ksh 43. $AS8BASE/ESBTest_port.sh 44 70echo Deleting instance esbinst1 71cmd="asadmin delete-instance --port $ESBTest_admin_port $ASADMIN_PW_OPTS esbinst1" 721>&2 eval $cmdframework00002.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 52 lines
33 34echo testing private library invocation for engines/bindings 35 39# install engine 40$JBI_ANT -Djbi.install.file=$JV_FRAMEWORK_BLD_DIR/dist/PrivateLibraryTestEngine.jar install-component 41 42# start engine (this invokes the private lib API) 43$JBI_ANT -Djbi.component.name="PrivateLibraryTestEngine" start-component 44 45# shutdown engine 46$JBI_ANT -Djbi.component.name="PrivateLibraryTestEngine" shut-down-component 47 51echo Private Library Invocation 52grep "SUN'S STOCK VALUE = 25.0" $JBI_DOMAIN_ROOT/logs/classloaderregresstests.privatelibtest.engine.rt.log | wc -l 53rsend_008_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 142 lines
31 32. $STF_SUITE/tests/rsend/rsend.kshlib 33 47# 48# TESTABILITY: explicit 49# 49# 50# TEST_AUTOMATION_LEVEL: automated 51#zfs_acl_cp_002_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 121 lines
67 if datasetexists $TESTPOOL/$TESTFS1; then 68 log_must $ZFS destroy -f $TESTPOOL/$TESTFS1 69 fi 69 fi 70 [[ -d $TESTDIR1 ]] && log_must $RM -rf $TESTDIR1 71 [[ -d $TESTDIR ]] && log_must $RM -rf $TESTDIR/* 80log_must $ZFS create $TESTPOOL/$TESTFS1 81log_must $ZFS set mountpoint=$TESTDIR1 $TESTPOOL/$TESTFS1 82log_must $ZFS set aclmode=passthrough $TESTPOOL/$TESTFS1 92 93 for obj in $testfile $testdir; do 94 # Create source object and target directroy 97 98 log_must usr_exec $RUNAT $testfile $CP $MYTESTFILE attr.0 99 log_must usr_exec $RUNAT $testdir $CP $MYTESTFILE attr.0snapshot_007_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 112 lines
30# 31. $STF_SUITE/include/libtest.kshlib 32 47# 48# TESTABILITY: explicit 49# 49# 50# TEST_AUTOMATION_LEVEL: automated 51# 79 80 if [[ -e $TESTDIR ]]; then 81 log_must $RM -rf $TESTDIR/* > /dev/null 2>&1 88 89[[ -n $TESTDIR ]] && \ 90 log_must $RM -rf $TESTDIR/* > /dev/null 2>&1zfs_allow_008_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 92 lines
31 32. $STF_SUITE/tests/delegate/delegate_common.kshlib 33 48# 49# TESTABILITY: explicit 50# 50# 51# TEST_AUTOMATION_LEVEL: automated 52# 65perms2="send,compression,checksum,userprop" 66childfs=$ROOT_TESTFS/childfs 67 74 75 if [[ $dtst == $ROOT_TESTFS ]]; then 76 log_must $ZFS allow -l $STAFF1 $perms2 $childfszfs_rollback_003_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 98 lines
31 32. $STF_SUITE/include/libtest.kshlib 33. $STF_SUITE/tests/cli_root/zfs_rollback/zfs_rollback_common.kshlib 79# 80create_snapshot $TESTPOOL/$TESTFS $TESTSNAP 81create_snapshot $TESTPOOL/$TESTFS $TESTSNAP1 84# 85log_mustnot $ZFS rollback $TESTPOOL/$TESTFS@$TESTSNAP 86log_mustnot $ZFS rollback -f $TESTPOOL/$TESTFS@$TESTSNAP 89# 90create_clone $TESTPOOL/$TESTFS@$TESTSNAP1 $TESTPOOL/$TESTCLONE1 91 93# 94log_mustnot $ZFS rollback -r $TESTPOOL/$TESTFS@$TESTSNAP 95log_mustnot $ZFS rollback -rf $TESTPOOL/$TESTFS@$TESTSNAPlink_count_001.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 102 lines
30# 31. $STF_SUITE/include/libtest.kshlib 32 42# STRATEGY: 43# 1. Make sure this test executes on multi-processes system 44# 2. Make zero size files and remove them in the background 80 81$RM_LNKCNT_ZERO_FILE ${TESTDIR}/tmp/test${TESTCASE_ID} > /dev/null 2>&1 & 82PID=$! 82PID=$! 83log_note "$RM_LNKCNT_ZERO_FILE ${TESTDIR}/tmp/test${TESTCASE_ID} pid: $PID" 84 99 100log_must $RM -f ${TESTDIR}/tmp/test${TESTCASE_ID}* 101buildenv.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 448 lines
202if [ "x$JBI_MODULES" = x ]; then 203 export JBI_MODULES="open-esb/m2.ant open-esb/pom.xml open-esb/antbld open-esb/bb open-esb/build-common open-esb/esb-components open-esb/esb-packages open-esb/esb-test open-esb/esb-util open-esb/installers open-esb/jbi open-esb/platform-config open-esb/repo open-esb/ri-clients open-esb/ri-components open-esb/ri-examples open-esb/ri-packages open-esb/rl open-esb/runtime open-esb/vendor-libs" 204fizfs_promote_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 139 lines
85 snapexists $ds@$TESTSNAP && \ 86 log_fail "zfs promote cannot promote $ds@$TESTSNAP." 87 ! snapexists $c_ds@$TESTSNAP && \ 109 110fs=$TESTPOOL/$TESTFS 111file0=$TESTDIR/$TESTFILE0 111file0=$TESTDIR/$TESTFILE0 112file1=$TESTDIR/$TESTFILE1 113snap=$fs@$TESTSNAP 113snap=$fs@$TESTSNAP 114snapfile=$TESTDIR/$(get_snapdir_name)/$TESTSNAP/$TESTFILE0 115clone=$TESTPOOL/$TESTCLONE 117csnap=$clone@$TESTSNAP 118csnapfile=/$clone/$(get_snapdir_name)/$TESTSNAP/$TESTFILE0 119migration_003_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 80 lines
45# 1. Calculate chksum of testfile 46# 2. Tar up test file and place on a UFS filesystem 47# 3. Extract tar contents to a ZFS file system 52# 53# TEST_AUTOMATION_LEVEL: automated 54# 64{ 65 $RM -rf $NONZFS_TESTDIR/tar${TESTCASE_ID}.tar 66 $RM -rf $TESTDIR/$BNAME 72 73prepare $DNAME "$TAR cf $NONZFS_TESTDIR/tar${TESTCASE_ID}.tar $BNAME" 74(( $? != 0 )) && log_fail "Unable to create src archive" 75 76migrate $TESTDIR $SUMA $SUMB "$TAR xvf $NONZFS_TESTDIR/tar${TESTCASE_ID}.tar" 77(( $? != 0 )) && log_fail "Uable to successfully migrate test file from" \zpool_remove_002_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 79 lines
30# 31. $STF_SUITE/include/libtest.kshlib 32 46# 47# TESTABILITY: explicit 48# 48# 49# TEST_AUTOMATION_LEVEL: automated 50# 58{ 59 destroy_pool $TESTPOOL 60} 70log_note "check hotspare device which is created by zpool create" 71log_must $ZPOOL create $TESTPOOL $spare_devs1 spare $spare_devs2 72log_must $ZPOOL remove $TESTPOOL $spare_devs2zpool_get_002_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 108 lines
31 32. $STF_SUITE/include/libtest.kshlib 33. $STF_SUITE/tests/cli_root/zpool_get/zpool_get.cfg 51# 52# Test for those properties are expected to check whether their 53# default values are sane, or whether they can be changed with zpool set. 69if ! is_global_zone ; then 70 TESTPOOL=${TESTPOOL%%/*} 71fi 73log_must $ZPOOL get all $TESTPOOL 74$ZPOOL get all $TESTPOOL > $TMPDIR/values.${TESTCASE_ID} 75 86 log_note "Checking for ${properties[$i]} property" 87 $GREP "$TESTPOOL *${properties[$i]}" $TMPDIR/values.${TESTCASE_ID} > /dev/null 2>&1 88 if [ $? -ne 0 ]zpool_create_015_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 90 lines
30# 31. $STF_SUITE/include/libtest.kshlib 32 50# 51# TESTABILITY: explicit 52# 52# 53# TEST_AUTOMATION_LEVEL: automated 54# 74typeset pool_dev=${disk} 75typeset vol_name=$TESTPOOL/$TESTVOL 76 82# 83create_pool $TESTPOOL $pool_dev 84log_must $ZFS create -V 100m $vol_namezfs_clone_005_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 99 lines
31 32. $STF_SUITE/include/libtest.kshlib 33. $STF_SUITE/tests/cli_root/zfs_create/zfs_create_common.kshlib 33. $STF_SUITE/tests/cli_root/zfs_create/zfs_create_common.kshlib 34. $STF_SUITE/tests/cli_root/zfs_create/properties.kshlib 35 87 88 log_must $ZFS clone -o ${RW_VOL_CLONE_PROP[$i]} $SNAPFS1 $TESTPOOL/$TESTCLONE 89 datasetexists $TESTPOOL/$TESTCLONE || \ 89 datasetexists $TESTPOOL/$TESTCLONE || \ 90 log_fail "zfs clone $TESTPOOL/$TESTCLONE fail." 91 propertycheck $TESTPOOL/$TESTCLONE ${RW_VOL_CLONE_PROP[i]} || \ 92 log_fail "${RW_VOL_CLONE_PROP[i]} is failed to set." 93 log_must $ZFS destroy -f $TESTPOOL/$TESTCLONE 94zfsd_hotspare_008_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 83 lines
28 29. $STF_SUITE/tests/hotspare/hotspare.kshlib 30 34{ 35 $ZPOOL status $TESTPOOL 36 if poolexists $TESTPOOL ; then 36 if poolexists $TESTPOOL ; then 37 destroy_pool $TESTPOOL 38 fi 44{ 45 typeset mntp=$(get_prop mountpoint $TESTPOOL) 46 50 51 log_must $ZINJECT -d $FAULT_DISK -A fault $TESTPOOL 52 log_must check_state $TESTPOOL $FAULT_DISK FAULTEDslog_004_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 82 lines
31 32. $STF_SUITE/tests/slog/slog.kshlib 33 48# 49# TESTABILITY: explicit 50# 50# 51# TEST_AUTOMATION_LEVEL: automated 52# 63 64function test_attaching_slog # <pooltype> <sparetype> <logtype> 65{ 69 70 create_pool $TESTPOOL $pooltype $VDEV $sparetype $SDEV \ 71 log $logtype $LDEVnestedfs_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 79 lines
30# 31. $STF_SUITE/include/libtest.kshlib 32 42# 43# As a sub-assertion, the test verifies that a nested file system with 44# a mounted file system cannot be destroyed. 50# 51# TESTABILITY: explicit 52# 69 70log_must $FILE_WRITE -o $OP -f $TESTDIR1/$TESTFILE0 -b $BLOCKSZ \ 71 -c $NUM_WRITES -d $DATA 76 "cannot be destroyed." 77log_mustnot $ZFS destroy $TESTPOOL/$TESTCTR 78mv_files_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 84 lines
31 32. $STF_SUITE/include/libtest.kshlib 33. $STF_SUITE/tests/mv_files/mv_files_common.kshlib 55# 56# TESTABILITY: explicit 57# 57# 58# TEST_AUTOMATION_LEVEL: automated 59# 79 80mv_test $OLDDIR $NEWDIR_IN_FS 81(($? != 0 )) && \ 81(($? != 0 )) && \ 82 log_fail "'mv' test failed to complete." 83hotspare_replace_001_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 112 lines
30# 31. $STF_SUITE/tests/hotspare/hotspare.kshlib 32 50# 51# TESTABILITY: explicit 52# 52# 53# TEST_AUTOMATION_LEVEL: automated 54# 64{ 65 poolexists $TESTPOOL && \ 66 destroy_pool $TESTPOOL 75 for odev in ${pooldevs[@]} ; do 76 log_must $ZPOOL replace $TESTPOOL $odev $dev 77 log_mustnot $ZPOOL replace $TESTPOOL $odev $availdevzfs_unshare_004_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 95 lines
60set -A opts "" "$TESTPOOL/$NONEXISTFSNAME" "$NONEEXISTMOUNTPOINT" "-?" "-1" \ 61 "-a blah" "$TESTPOOL/$TESTFS $TESTPOOL/$TESTFS1" \ 62 "-f $TESTPOOL/$TESTFS $TESTPOOL/$TESTFS1" \ 62 "-f $TESTPOOL/$TESTFS $TESTPOOL/$TESTFS1" \ 63 "$TESTPOOL/$TESTFS $TESTDIR" "-f $TESTPOOL/$TESTFS $TESTDIR" \ 64 "${TESTDIR#/}" "-f ${TESTDIR#/}" 67 68shareval=$(get_prop sharenfs $TESTPOOL/$TESTFS) 69if [[ $shareval == off ]]; then 83for opt in "" "-f"; do 84 log_mustnot eval "$ZFS unshare $opt $TESTPOOL/$TESTFS >/dev/null 2>&1" 85 log_mustnot eval "$ZFS unshare $opt $mpt >/dev/null 2>&1" 90for opt in "" "-f"; do 91 log_mustnot eval "$ZFS unshare $opt $TESTPOOL/$TESTFS >/dev/null 2>&1" 92 log_mustnot eval "$ZFS unshare $opt $mpt >/dev/null 2>&1"tst.noreap.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 128 lines
43{ 44 DTRACE_PROBE(test_prov, probe1); 45} 48cat > prov.d <<EOF 49provider test_prov { 50 probe probe1(); 53 54cc -c test.c 55if [ $? -ne 0 ]; then 58fi 59$dtrace -G -s prov.d test.o 60if [ $? -ne 0 ]; then 63fi 64cc -o test test.o prov.o 65if [ $? -ne 0 ]; thenreservation_003_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 137 lines
90 # 91 [[ $obj == $TESTPOOL/$TESTVOL ]] && \ 92 (( resv_size = ( vol_set_size - RESV_DELTA ) / RESV_ITER )) 118else 119 OBJ_LIST="$TESTPOOL/$TESTVOL $TESTPOOL/$TESTVOL2" 120 126 127 log_must $ZFS create -V $vol_set_size $TESTPOOL/$TESTVOL 128 log_must $ZFS set reservation=none $TESTPOOL/$TESTVOL 128 log_must $ZFS set reservation=none $TESTPOOL/$TESTVOL 129 log_must $ZFS create -s -V $sparse_vol_set_size $TESTPOOL/$TESTVOL2 130fi 131 132for obj in $TESTPOOL/$TESTFS $OBJ_LIST ; do 133 multiple_resv $objzfs_snapshot_007_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 146 lines
31 32. $STF_SUITE/tests/cli_root/zfs_set/zfs_set_common.kshlib 33 60{ 61 for fs in $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL $TESTPOOL/$TESTCTR $TESTPOOL ; do 62 typeset fssnap=$fs@snap 98 99for fs in $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL $TESTPOOL/$TESTCTR $TESTPOOL ; do 100 typeset fssnap=$fs@snap 126log_must eval "$ZFS snapshot -r -o $prop_name='$value' $TESTPOOL@snap" 127for fs in $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL $TESTPOOL/$TESTCTR $TESTPOOL ; do 128 typeset fssnap=$fs@snap 138log_must eval "$ZFS snapshot -r -o $prop_name='$value' -o $prop_name2='$value2' $TESTPOOL@snap" 139for fs in $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL $TESTPOOL/$TESTCTR $TESTPOOL ; do 140 typeset fssnap=$fs@snapzfsd_replace_003_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 125 lines
34 35. $STF_SUITE/include/libtest.kshlib 36. $STF_SUITE/include/libgnop.kshlib 36. $STF_SUITE/include/libgnop.kshlib 37. $STF_SUITE/tests/hotspare/hotspare.kshlib 38. $STF_SUITE/tests/zfsd/zfsd.kshlib 42 destroy_pool $TESTPOOL 43 [[ -e $TESTDIR ]] && log_must $RM -rf $TESTDIR/* 44 for md in $MD0 $MD1 $MD2 $MD3; do 88 # Create a pool on the supplied disks 89 create_pool $TESTPOOL $type ${MD0}.nop ${MD1}.nop ${MD2}.nop ${MD3}.nop 90 104 # Make sure that the pool is degraded 105 $ZPOOL status $TESTPOOL |grep "state:" |grep DEGRADED > /dev/null 106 if [ $? != 0 ]; thenframework00005.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 53 lines
33 34echo testing self first class loading for engines 35 39# install engine 40$JBI_ANT -Djbi.install.file=$JV_FRAMEWORK_BLD_DIR/dist/SelfFirstTestEngine.jar install-component 41 42# start engine (this invokes the private lib API) 43$JBI_ANT -Djbi.component.name="SelfFirstTestEngine" start-component 44 45# shutdown engine 46$JBI_ANT -Djbi.component.name="SelfFirstTestEngine" shut-down-component 47 48# uninstall engine 49$JBI_ANT -Djbi.component.name="SelfFirstTestEngine" uninstall-component 50regress_defs.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 56 lines
28# 29#common definitions for regression tests. 30 30 31#set this prop to the test domain. default is JBITest 32#my_test_domain=domain1 38if [ $OPENESB_BUILD -eq 1 ]; then 39 UI_REGRESS_DIST_DIR=$JV_SVC_TEST_CLASSES/testdata 40else 40else 41 UI_REGRESS_DIST_DIR=$JV_SVC_TEST_CLASSES/dist 42fi 47# 48# test cases 49#zfs_acl_chmod_rwacl_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 262 lines
31 32. $STF_SUITE/tests/acl/acl_common.kshlib 33 55# 56# TESTABILITY: explicit 57# 57# 58# TEST_AUTOMATION_LEVEL: automated 59# 253 for func in ${func_name[@]}; do 254 for node in $testfile $testdir; do 255 eval $func \$node 258 259 log_must usr_exec $RM -rf $testfile $testdir 260doneclone_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 143 lines
69 70set -A args "$SNAPFS" "$SNAPDIR" "$TESTPOOL/$TESTCLONE" "$TESTDIR.0" \ 71 "$SNAPFS1" "$SNAPDIR3" "$TESTPOOL/$TESTCLONE1" "" \ 71 "$SNAPFS1" "$SNAPDIR3" "$TESTPOOL/$TESTCLONE1" "" \ 72 "$SNAPFS2" "$SNAPDIR2" "$TESTPOOL1/$TESTCLONE2" "$TESTDIR.2" 73 75{ 76 create_pool $TESTPOOL1 /dev/zvol/$TESTPOOL/$TESTVOL 77 log_must $ZFS create $TESTPOOL1/$TESTFS 77 log_must $ZFS create $TESTPOOL1/$TESTFS 78 log_must $ZFS set mountpoint=$TESTDIR2 $TESTPOOL1/$TESTFS 79 103 104for mtpt in $TESTDIR $TESTDIR2 ; do 105 log_note "Populate the $mtpt directory (prior to snapshot)"tst.ipv4localsctp.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 153 lines
27# 28# Test {ip,sctp}:::{send,receive} of IPv4 SCTP to local host. 29# 32# 1. A change to the ip stack breaking expected probe behavior, 33# which is the reason we are testing. 34# 2. The lo0 interface missing or not up. 37# 38# This test performs a SCTP association and checks that at least the 39# following packet counts were traced: 45 46# The actual count tested is 7 each way, since we are tracing both 47# source and destination events. 56local=127.0.0.1 57DIR=/var/tmp/dtest.$$ 58tst.MultipleInvalidProbeId.d.ksh https://github.com/okuoku/freebsd-head.git | Korn Shell | 53 lines
32# ASSERTION: 33# Testing -i option with multiple valid and invalid probe identifiers. 34#tst.InvalidTraceFunc7.d.ksh https://github.com/okuoku/freebsd-head.git | Korn Shell | 53 lines
32# ASSERTION: 33# Testing -f option with an invalid function name. 34#userquota_005_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 108 lines
45# 46# TESTABILITY: explicit 47# 47# 48# TEST_AUTOMATION_LEVEL: automated 49# 55 56. $STF_SUITE/include/libtest.kshlib 57. $STF_SUITE/tests/userquota/userquota_common.kshlibzpool_create_007_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 97 lines
66 "-m" "-R" "-m -R" "-Rm" "-mR" "-m $TESTDIR $TESTPOOL" \ 67 "-R $TESTDIR $TESTPOOL" "-m nodir $TESTPOOL $disk" \ 68 "-R nodir $TESTPOOL $disk" "-m nodir -R nodir $TESTPOOL $disk" \ 68 "-R nodir $TESTPOOL $disk" "-m nodir -R nodir $TESTPOOL $disk" \ 69 "-R nodir -m nodir $TESTPOOL $disk" "-R $TESTDIR -m nodir $TESTPOOL $disk" \ 70 "-R nodir -m $TESTDIR $TESTPOOL $disk" \ 70 "-R nodir -m $TESTDIR $TESTPOOL $disk" \ 71 "-blah" "$TESTPOOL" "$TESTPOOL blah" "$TESTPOOL c?t0d0" \ 72 "$TESTPOOL c0txd0" "$TESTPOOL c0t0dx" "$TESTPOOL cxtxdx" \ 72 "$TESTPOOL c0txd0" "$TESTPOOL c0t0dx" "$TESTPOOL cxtxdx" \ 73 "$TESTPOOL mirror" "$TESTPOOL raidz" "$TESTPOOL mirror raidz" \ 74 "$TESTPOOL raidz1" "$TESTPOOL mirror raidz1" \ 81 "$TESTPOOL RAIDZ1 ${disk}p1 ${disk}p2" \ 82 "$TESTPOOL MIRROR $disk" "$TESTPOOL raidz $disk" \ 83 "$TESTPOOL raidz1 $disk" \zfs_copies_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 126 lines
31 32. $STF_SUITE/include/libtest.kshlib 33. $STF_SUITE/tests/cli_root/zfs_copies/zfs_copies.kshlib 48# 49# TESTABILITY: explicit 50# 74 75fs=$TESTPOOL/$TESTFS 76fs1=$TESTPOOL/$TESTFS1 76fs1=$TESTPOOL/$TESTFS1 77fs2=$TESTPOOL/$TESTFS2 78vol=$TESTPOOL/$TESTVOL 78vol=$TESTPOOL/$TESTVOL 79vol1=$TESTPOOL/$TESTVOL1 80vol2=$TESTPOOL/$TESTVOL2zvol_misc_002_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 89 lines
61{ 62 snapexists $TESTPOOL/$TESTVOL@snap && \ 63 $ZFS destroy $TESTPOOL/$TESTVOL@snap 65 ismounted $TESTDIR ufs && log_must $UMOUNT $TESTDIR 66 [[ -e $TESTDIR ]] && $RM -rf $TESTDIR 67} 72$NEWFS /dev/zvol/$TESTPOOL/$TESTVOL >/dev/null 2>&1 73(( $? != 0 )) && log_fail "Unable to newfs(1M) $TESTPOOL/$TESTVOL" 74 75log_must $MKDIR $TESTDIR 76log_must $MOUNT /dev/zvol/$TESTPOOL/$TESTVOL $TESTDIR 77 86log_must $ZFS snapshot $TESTPOOL/$TESTVOL@snap 87log_must $FSCK -t ufs -n /dev/zvol/$TESTPOOL/$TESTVOL@snap >/dev/null 2>&1 88slog_010_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 78 lines
31 32. $STF_SUITE/tests/slog/slog.kshlib 33 48# 49# TESTABILITY: explicit 50# 50# 51# TEST_AUTOMATION_LEVEL: automated 52# 63 64log_must $ZPOOL create $TESTPOOL $VDEV spare $SDEV log $LDEV 65sdev=$(random_get $SDEV) 66ldev=$(random_get $LDEV) 67log_mustnot $ZPOOL replace $TESTPOOL $ldev $sdev 68log_mustnot verify_slog_device $TESTPOOL $sdev 'ONLINE'enospc_001_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 81 lines
30# 31. $STF_SUITE/include/libtest.kshlib 32 49# 50# TESTABILITY: explicit 51# 62log_assert "ENOSPC is returned when file system is full." 63log_must $ZFS set compression=off $TESTPOOL/$TESTFS 64 65log_note "Writing file: $TESTFILE0 until ENOSPC." 66$FILE_WRITE -o create -f $TESTDIR/$TESTFILE0 -b $BLOCKSZ \ 67 -c $NUM_WRITES -d $DATA 73log_note "Write another file: $TESTFILE1 but expect ENOSPC." 74$FILE_WRITE -o create -f $TESTDIR/$TESTFILE1 -b $BLOCKSZ \ 75 -c $NUM_WRITES -d $DATAdevices_002_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 79 lines
31 32. $STF_SUITE/include/libtest.kshlib 33. $STF_SUITE/tests/devices/devices_common.kshlib 51# 52# TESTABILITY: explicit 53# 67 68log_must $ZFS set devices=off $TESTPOOL/$TESTFS 69 74create_dev_file b $TESTDIR/$TESTFILE1 75log_mustnot $DD if=$TESTDIR/$TESTFILE1 of=$TESTDIR/$TESTFILE1.out count=1 76create_dev_file c $TESTDIR/$TESTFILE2 76create_dev_file c $TESTDIR/$TESTFILE2 77log_mustnot $DD if=$TESTDIR/$TESTFILE2 of=$TESTDIR/$TESTFILE2.out count=1 78zpool_status_001_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 79 lines
31 32. $STF_SUITE/include/libtest.kshlib 33. $STF_SUITE/tests/cli_user/cli_user.kshlib 49# 50# TESTABILITY: explicit 51# 51# 52# TEST_AUTOMATION_LEVEL: automated 53# 67 log_fail "No Pool: string found in zpool status output" 68log_must run_unprivileged "$ZPOOL status $TESTPOOL" | $GREP -q "pool:" || \ 69 log_fail "No Pool: string found in zpool status output" 69 log_fail "No Pool: string found in zpool status output" 70log_must run_unprivileged "$ZPOOL status -v $TESTPOOL" | $GREP -q "pool:" || \ 71 log_fail "No Pool: string found in zpool status output"zpool_export_002_pos.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 94 lines
64 65 datasetexists "$TESTPOOL/$TESTFS" || \ 66 log_must $ZPOOL import -d $dir $TESTPOOL 67 68 ismounted "$TESTPOOL/$TESTFS" 69 (( $? != 0 )) && \ 69 (( $? != 0 )) && \ 70 log_must $ZFS mount $TESTPOOL/$TESTFS 71 72 [[ -e $TESTDIR/$TESTFILE0 ]] && \ 73 log_must $RM -rf $TESTDIR/$TESTFILE0 74} 81 82ismounted "$TESTPOOL/$TESTFS" 83(( $? != 0 )) && \tst.ipv4remotetcp.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 131 lines
27# 28# Test {tcp,ip}:::{send,receive} of IPv4 TCP to a remote host. 29# 32# 1. A change to the ip stack breaking expected probe behavior, 33# which is the reason we are testing. 34# 2. No physical network interface is plumbed and up. 38# 39# This test performs a TCP connection and checks that at least the 40# following packet counts were traced: 56tcpport=22 57DIR=/var/tmp/dtest.$$ 58 70 71cat > test.pl <<-EOPERL 72 use IO::Socket;zfs_inherit_002_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 114 lines
31 32. $STF_SUITE/include/libtest.kshlib 33 47# 48# TESTABILITY: explicit 49# 61{ 62 if snapexists $TESTPOOL/$TESTFS@$TESTSNAP; then 63 log_must $ZFS destroy $TESTPOOL/$TESTFS@$TESTSNAP 75 76log_must $ZFS snapshot $TESTPOOL/$TESTFS@$TESTSNAP 77 78typeset -i i=0 79for ds in $TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL \ 80 $TESTPOOL/$TESTFS@$TESTSNAP; dozfs_acl_cp_003_neg.ksh https://bitbucket.org/freebsd/freebsd-base.git | Korn Shell | 138 lines
31 32. $STF_SUITE/tests/acl/acl_common.kshlib 33 49# 50# TESTABILITY: explicit 51# 51# 52# TEST_AUTOMATION_LEVEL: automated 53# 65 66test_requires RUNAT ZFS_ACL ZFS_XATTR 67 67 68function test_unreadable_attr 69{jbi-admin-cli00022.ksh https://bitbucket.org/rsaqc/openesb-core.git | Korn Shell | 81 lines
33#---------------------------------------------------------------------------------- 34test_cleanup() 35{ 40#---------------------------------------------------------------------------------- 41# Main function called that will run the test 42#---------------------------------------------------------------------------------- 42#---------------------------------------------------------------------------------- 43run_test() 44{ 44{ 45 initilize_test 46 #build_test_application_artifacts 74TEST_NAME="jbi-admin-cli00022" 75TEST_DESCRIPTION="Negative Component loggers and configuration tests" 76. ./regress_defs.ksh