PageRenderTime 577ms queryTime 252ms sortTime 2ms getByIdsTime 97ms findMatchingLines 114ms

100+ results results for 'test lang:BourneShell' (577 ms)

Not the results you expected?
regress_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 ;;
                    
                
framework00002.ksh https://bitbucket.org/openesb/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
                    
53
                    
                
all_shell_functions.ksh http://wcwp.googlecode.com/svn/trunk/ | Korn Shell | 660 lines
                    
48alias lt='ls -alrt'
                    
49alias llog='$base_dir/ViewLoadLog_testdb.sh'
                    
50alias conn='db2 terminate;db2 connect to bassdb'
                    
499
                    
500test(){
                    
501#????????????????????	
                    
549}
                    
550#getunixtime test.sh
                    
551
                    
                
framework00005.ksh https://bitbucket.org/openesb/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
                    
50
                    
                
regress_defs.ksh https://bitbucket.org/openesb/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#
                    
                
framework00003.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 73 lines
                    
33
                    
34echo testing shared library invocation for engines/bindings
                    
35
                    
42# install binding 
                    
43$JBI_ANT -Djbi.install.file=$JV_FRAMEWORK_BLD_DIR/dist/SharedLibraryTestBinding.jar install-component
                    
44
                    
45# install engine
                    
46$JBI_ANT -Djbi.install.file=$JV_FRAMEWORK_BLD_DIR/dist/SharedLibraryTestEngine.jar install-component
                    
47
                    
69echo Engines Shared Library Invocation
                    
70grep "MSFT'S STOCK VALUE" $JBI_DOMAIN_ROOT/logs/classloaderregresstests.sharedlibtest.engine.rt.log | wc -l
                    
71echo Bindings Shared Library Invocation
                    
71echo Bindings Shared Library Invocation
                    
72grep "MSFT'S STOCK VALUE" $JBI_DOMAIN_ROOT/logs/classloaderregresstests.sharedlibtest.binding.rt.log | wc -l
                    
73# ### END
                    
                
tst.include.ksh https://bitbucket.org/a3217055/illumos-joyent.git | Korn Shell | 61 lines
                    
29
                    
30DIR=/var/tmp/dtest.$$
                    
31
                    
34
                    
35cat > test.c <<EOF
                    
36#include <unistd.h>
                    
48
                    
49cc -m32 -o test test.c
                    
50if [ $? -ne 0 ]; then
                    
50if [ $? -ne 0 ]; then
                    
51	print -u2 "failed to compile test.c"
                    
52	exit 1
                    
54
                    
55./test
                    
56status=$?
                    
                
framework00001.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 107 lines
                    
31#use global regress setup:
                    
32my_test_domain=domain1
                    
33. ./regress_defs.ksh
                    
41#
                    
42# This step creates a persisted component registry containing the test binding
                    
43# and engine definitions.
                    
44#
                    
45testcp="$JV_FRAMEWORK_BLD_DIR\
                    
46${PS}$JV_JBI_DOMAIN_ROOT/lib/jbi.jar\
                    
47${PS}$JV_JBI_DOMAIN_ROOT/lib/jbi-ext.jar\
                    
48${PS}$JV_JBI_HOME/lib/jbi_tests.jar\
                    
49${PS}$JV_JBI_HOME/lib/jbi_rt.jar\
                    
54
                    
551>&2 echo testcp is $testcp
                    
561>&2 echo AS_INSTALL is $AS_INSTALL
                    
                
mailadmin.ksh git://github.com/liferay/liferay-portal.git | Korn Shell | 772 lines
                    
1#!/bin/ksh -p

                    
2# Uncomment next line for testing

                    
3# set -x

                    
                
regress_defs.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 38 lines
                    
28#
                    
29#common definitions for packaging regression tests.
                    
30
                    
31#this are normally set by antbld/regress/common_defs.ksh:
                    
32SVC_LOC=esb-test/jbise-tests
                    
33SVC_ROOT=$SRCROOT/$SVC_LOC
                    
                
regress_defs.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 117 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
                    
42
                    
43# my module level test variables
                    
44#DEV_TEST=false
                    
51if [ $OPENESB_BUILD -eq 1 ]; then
                    
52    UI_REGRESS_DIST_DIR=$JV_SVC_TEST_CLASSES/testdata
                    
53else
                    
53else
                    
54    UI_REGRESS_DIST_DIR=$JV_SVC_TEST_CLASSES/dist
                    
55fi
                    
                
regress_defs.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 50 lines
                    
28#
                    
29#common definitions for management regression tests.
                    
30
                    
30
                    
31my_test_domain=domain1
                    
32. $SRCROOT/antbld/regress/common_defs.ksh
                    
                
tpinstall http://tarp-package-manager.googlecode.com/svn/trunk/ | Korn Shell | 1504 lines
                    
81#		A tarp package (as described above) allows a single	#
                    
82#		package to be installed. However the latest verion 	#
                    
83#		also supports installation or update from a TARP	#
                    
                
tcm.ksh git://anongit.freedesktop.org/git/xorg/test/xts.git/ | Korn Shell | 0 lines
                    
73#		iclist="ic1 ic2"
                    
74#		ic1="test1-1 test1-2 test1-3"
                    
75#		ic2="test2-1 test2-2"
                    
185
                    
186tet_thistest=""; export tet_thistest
                    
187
                    
237TET_STDERR=$TET_PRIVATE_TMP/tet_stderr; readonly TET_STDERR; export TET_STDERR
                    
238TET_TESTS=$TET_PRIVATE_TMP/tet_tests; readonly TET_TESTS
                    
239TET_TMPRES=$TET_PRIVATE_TMP/tet_tmpres; readonly TET_TMPRES; export TET_TMPRES
                    
344	tet_result UNRESOLVED
                    
345	if test 15 -eq ${TET_CAUGHTSIG:?}
                    
346	then
                    
482then
                    
483	if test ! -r "$TET_CONFIG"
                    
484	then
                    
                
regress_defs.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 63 lines
                    
28#
                    
29#common definitions for nmr regression tests.
                    
30
                    
37REGRESS_CLASSPATH="$JV_SVC_CLASSES\
                    
38${JBI_PS}$JV_SVC_TEST_CLASSES\
                    
39${JBI_PS}$JV_JBI_HOME/lib/jbi_rt.jar\
                    
47# Calls ant with jbi.task.fail.on.error=false so that we can track negative
                    
48# test case output in the .out file
                    
49export JBI_ANT_NEG
                    
53# The target could be passed to this script. 
                    
54# jbiadmin00116 runs this test with target=cluster1
                    
55#
                    
                
config.status git://pkgs.fedoraproject.org/netbsd-iscsi | Korn Shell | 896 lines
                    
90fi
                    
91if test ! -f "$as_myself"; then
                    
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                    
237  # In both cases, we have to default to `cp -p'.
                    
238  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                    
239    as_ln_s='cp -p'
                    
255if test -x / >/dev/null 2>&1; then
                    
256  as_test_x='test -x'
                    
257else
                    
456  trap 'exit_status=$?
                    
457  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
                    
458' 0
                    
464  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
                    
465  test -n "$tmp" && test -d "$tmp"
                    
466}  ||
                    
                
regress_defs.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 43 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
                    
38# the following variables are setup by regress scritps
                    
39#JBI_DOMAIN_NAME=JBITest
                    
40#JBI_ADMIN_HOST=localhost
                    
                
regress_defs.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 43 lines
                    
28#
                    
29#common definitions for regression tests.
                    
30
                    
30
                    
31#set this prop to the test domain. default is JBITest
                    
32my_test_domain=JBITest
                    
38# the following variables are setup by regress scritps
                    
39#JBI_DOMAIN_NAME=JBITest
                    
40#JBI_ADMIN_HOST=localhost
                    
                
framework00006.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 135 lines
                    
31# This test covers component and service unit startup logic in the JBI framework.
                    
32# Two components, test-fast-binding and test-slow-engine, are installed and 
                    
33# and started.  Two apps (one with a service connection and one without) are
                    
35# queries the state of the components and service assemblies.  The SUs deployed
                    
36# to test-fast-binding will fail in start() if corresponding endpoints have not
                    
37# been activated during service unit init() in SlowEngine.  SlowEngine contains
                    
41#regress setup
                    
42my_test_domain=domain1
                    
43. ./regress_defs.ksh
                    
77$JBI_ANT -Djbi.binding.component.name="test-fast-binding" list-binding-components
                    
78$JBI_ANT -Djbi.service.engine.name="test-slow-engine" list-service-engines
                    
79$JBI_ANT -Djbi.service.assembly.name="restart-sa-1" list-service-assemblies
                    
85if [ $status -ne 0 ]; then
                    
86    bldmsg -status $status -p $0 -error "cannot shutdown domain $mytestdomain to restart"
                    
87    exit 1
                    
                
regress_defs.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 65 lines
                    
28#
                    
29#common definitions for management regression tests.
                    
30
                    
37REGRESS_CLASSPATH="$JV_SVC_CLASSES\
                    
38${JBI_PS}$JV_SVC_TEST_CLASSES\
                    
39${JBI_PS}$JV_JBI_HOME/lib/jbi_rt.jar\
                    
47# Calls ant with jbi.task.fail.on.error=false so that we can track negative
                    
48# test case output in the .out file
                    
49export JBI_ANT_NEG
                    
53# The target could be passed to this script. 
                    
54# jbiadmin00116 runs this test with target=cluster1
                    
55#
                    
63
                    
64MANAGE_TEST_SL=$JV_SVC_TEST_CLASSES/dist/shared-library.jar
                    
65MANAGE_TEST_BIND_COMP3=$JV_SVC_TEST_CLASSES/dist/component-binding3.jar
                    
                
regress_defs.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 77 lines
                    
28#
                    
29#common definitions for management regression tests.
                    
30
                    
33####
                    
34if [ "$my_test_domain" = "" ]; then
                    
35    . $SRCROOT/antbld/regress/esb_common_defs.ksh
                    
68
                    
69MANAGE_TEST_SL=$JV_SVC_TEST_CLASSES/dist/shared-library.jar
                    
70MANAGE_TEST_BIND_COMP3=$JV_SVC_TEST_CLASSES/dist/component-binding3.jar
                    
70MANAGE_TEST_BIND_COMP3=$JV_SVC_TEST_CLASSES/dist/component-binding3.jar
                    
71MANAGE_EMPTY_SA=$JV_SVC_TEST_CLASSES/testdata/empty-service-assembly.zip
                    
72
                    
74if [ "$my_test_domain" = "CAS" -a ! -r "$JBI_DOMAIN_STARTED" ]; then
                    
75    bldmsg -error -p "$testname"  "TEST DOMAIN '$JBI_DOMAIN_NAME' is not running - TEST ABORTED"
                    
76    exit 1
                    
                
test.ksh https://bitbucket.org/kbw/wb-samples.git | Korn Shell | 68 lines
                    
2/*
                    
3 * test.ksh - DTrace include file test script.
                    
4 *
                    
4 *
                    
5 * $Id: test.ksh 36 2007-09-15 06:51:18Z brendan $
                    
6 *
                    
                
regress_defs.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 34 lines
                    
28#
                    
29#common definitions for regression tests.
                    
30
                    
                
csp https://code.google.com/p/xmeta/ | Korn Shell | 172 lines
                    
33junit_filename=`junit_filename`
                    
34scala_version=latest
                    
35init_version=0.1
                    
47    echo "  -v version,         init ver of the project (0.1 by default)"
                    
48    echo "  -s scala version,   version of groovy (latest by default)"
                    
49    echo "  -c compatibility,   source compatibility (1.6 by default)"
                    
132
                    
133for t in main test
                    
134do
                    
                
tst.include.ksh https://bitbucket.org/killerpenguinassassins/open_distrib_devel.git | Korn Shell | 61 lines
                    
29
                    
30DIR=/var/tmp/dtest.$$
                    
31
                    
34
                    
35cat > test.c <<EOF
                    
36#include <unistd.h>
                    
48
                    
49cc -xarch=generic -o test test.c
                    
50if [ $? -ne 0 ]; then
                    
50if [ $? -ne 0 ]; then
                    
51	print -u2 "failed to compile test.c"
                    
52	exit 1
                    
54
                    
55./test
                    
56status=$?
                    
                
run_tests_in_parallel.ksh https://gitlab.com/ECCC_CMDN/vgrid | Korn Shell | 82 lines
                    
10if [ -z "$*" ] ; then
                    
11  set -A tests $(ls -1 src_tests/*.F90 | perl -p -e 's|src_tests/(.+)\.F90|$1|g') $(ls -1 src_tests/*.c | perl -p -e 's|src_tests/(.+)\.c|$1|g')
                    
12else
                    
51   echo "   test ${test}"
                    
52   ${MAKE} tests ONLY=${test} > ../log_${test} 2>&1 &
                    
53   ((NCPUS=NCPUS+1))
                    
68echo RESULTS
                    
69for test in ${tests[*]} ; do
                    
70   if grep -q 'Builds Succeeded' log_${test};then
                    
74   fi
                    
75   if grep -q 'Tests Succeeded' log_${test};then
                    
76       Test_COLOR='\033[0;32m'
                    
80   
                    
81   echo "   ${Build_COLOR} $(grep 'Builds Succeeded' log_${test}) $(grep 'ERROR compiling' log_${test}) ${Test_COLOR} $(grep 'Tests Succeeded' log_${test}) $(grep Failed log_${test})   ->  '\033[0m' ${test}"
                    
82done
                    
                
framework00008.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 70 lines
                    
30
                    
31# Tests the component extension mechanism (lib/ext) for the Java SE platform. 
                    
32
                    
52# start components
                    
53$JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-extension-component" start-component
                    
54startComponentDelay
                    
56# Query the state of our components and service assemblies
                    
57$JBISE_ANT -Djbi.service.engine.name="test-extension-component" list-service-engines
                    
58
                    
59# shutdown components
                    
60$JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-extension-component" shut-down-component
                    
61stopComponentDelay
                    
63# uninstall components
                    
64$JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-extension-component" uninstall-component
                    
65uninstallComponentDelay
                    
                
manifest-import git://github.com/joyent/smartos-live.git | Korn Shell | 518 lines
                    
496#
                    
497touch /etc/svc/smf_rwtest.$$ > /dev/null 2>&1
                    
498if [ $? -eq 0 ]; then
                    
498if [ $? -eq 0 ]; then
                    
499	rm -f /etc/svc/smf_rwtest.$$
                    
500	/usr/sbin/svcadm _smf_repository_switch perm || { \
                    
                
framework00007.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 93 lines
                    
30
                    
31# Tests JBI runtime in stand-alone mode using Java SE.
                    
32
                    
48# start components
                    
49$JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-slow-engine" start-component
                    
50$JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-fast-binding" start-component
                    
63# Query the state of our components and service assemblies
                    
64$JBISE_ANT -Djbi.binding.component.name="test-fast-binding" list-binding-components
                    
65$JBISE_ANT -Djbi.service.engine.name="test-slow-engine" list-service-engines
                    
79# shutdown components
                    
80$JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-slow-engine" shut-down-component
                    
81$JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-fast-binding" shut-down-component
                    
84# uninstall components
                    
85$JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-slow-engine" uninstall-component
                    
86$JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-fast-binding" uninstall-component
                    
                
testing.ksh https://github.com/mdsmus/humdrum.git | Korn Shell | 93 lines
                    
14
                    
15# Test -I option
                    
16echo "Checking result03"
                    
26echo "Checking result05"
                    
27rid -d test01 > output
                    
28diff output result05
                    
49
                    
50# Test on a totally empty file
                    
51echo "Checking result10"
                    
56echo "Checking result11"
                    
57cat test01 test03 | rid -GL - > output
                    
58diff output result11
                    
61echo "Checking result12"
                    
62rid -GL test01 test03 > output
                    
63diff output result12
                    
                
env.ksh git://pkgs.fedoraproject.org/389-ds-base | Korn Shell | 52 lines
                    
43
                    
44BaseDN=o=test.com
                    
45
                    
48
                    
49UserRDN="cn=test"
                    
50UserDN="$UserRDN,$BaseDN"
                    
50UserDN="$UserRDN,$BaseDN"
                    
51UserPassword=testpassword
                    
52
                    
                
regress_defs.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 60 lines
                    
28#
                    
29#common definitions for management regression tests.
                    
30
                    
34export JBI_DOMAIN_NAME
                    
35if [ "$my_test_domain" = "" ]; then
                    
36    my_test_domain=CAS
                    
37fi
                    
38JBI_DOMAIN_NAME="$my_test_domain"
                    
39
                    
43REGRESS_CLASSPATH="$JV_SVC_CLASSES\
                    
44${JBI_PS}$JV_SVC_TEST_CLASSES\
                    
45${JBI_PS}$JV_JBI_HOME/lib/jbi_rt.jar\
                    
55# Calls ant with jbi.task.fail.on.error=false so that we can track negative
                    
56# test case output in the .out file
                    
57export JBI_ANT_NEG
                    
                
framework00009.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 103 lines
                    
30
                    
31# Tests fix for issue #208 using JBI runtime in stand-alone mode under Java SE
                    
32# This bug showed up if a Service Assembly was deployed but not started, and
                    
34# not be undeployed because the target components did not know about the SUs.
                    
35# This test uses the same components and service assemblies that are used by
                    
36# framework00006.
                    
54# start components
                    
55$JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-slow-engine" start-component
                    
56$JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-fast-binding" start-component
                    
64# Query the state of our components and service assemblies
                    
65$JBISE_ANT -Djbi.binding.component.name="test-fast-binding" list-binding-components
                    
66$JBISE_ANT -Djbi.service.engine.name="test-slow-engine" list-service-engines
                    
78# Query the state of our components and service assemblies
                    
79$JBISE_ANT -Djbi.binding.component.name="test-fast-binding" list-binding-components
                    
80$JBISE_ANT -Djbi.service.engine.name="test-slow-engine" list-service-engines
                    
                
regress_defs.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 58 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
                    
38# the following variables are setup by regress scritps
                    
39#JBI_DOMAIN_NAME=JBITest
                    
40#JBI_ADMIN_HOST=localhost
                    
44
                    
45#common definitions for file binding regression tests:
                    
46
                    
48
                    
49#this is our current test domain:
                    
50DOMAIN_LOG="$JBI_DOMAIN_ROOT/logs/server.log"
                    
                
regress_defs.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 67 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
                    
45# the following variables are setup by regress scritps
                    
46#JBI_DOMAIN_NAME=JBITest
                    
47#JBI_ADMIN_HOST=localhost
                    
56    FRAMEWORK_SRC_DIR=$SRCROOT/runtime/framework
                    
57    FRAMEWORK_BLD_DIR=$FRAMEWORK_SRC_DIR/bld/test-classes
                    
58    JV_FRAMEWORK_SRC_DIR=$JV_SRCROOT/runtime/framework
                    
58    JV_FRAMEWORK_SRC_DIR=$JV_SRCROOT/runtime/framework
                    
59    JV_FRAMEWORK_BLD_DIR=$JV_FRAMEWORK_SRC_DIR/bld/test-classes
                    
60else
                    
                
tst.include.ksh https://bitbucket.org/a3217055/illumos-2.git | Korn Shell | 60 lines
                    
28
                    
29DIR=/var/tmp/dtest.$$
                    
30
                    
33
                    
34cat > test.c <<EOF
                    
35#include <unistd.h>
                    
47
                    
48gcc -m32 -o test test.c
                    
49if [ $? -ne 0 ]; then
                    
49if [ $? -ne 0 ]; then
                    
50	print -u2 "failed to compile test.c"
                    
51	exit 1
                    
53
                    
54./test
                    
55status=$?
                    
                
AUTORUN.KSH http://soulmates.googlecode.com/svn/trunk/ | Korn Shell | 312 lines
                    
86	fi
                    
87	if { dlg isbuttonchecked -d $h -c $IDC_USER_ONCE val; test val -eq 1; }
                    
88	then
                    
89		registry=HKEY_CURRENT_USER${reg}RunOnce
                    
90	elif { dlg isbuttonchecked -d $h -c $IDC_USER_EVERY val; test val -eq 1; }
                    
91	then
                    
92		registry=HKEY_CURRENT_USER${reg}Run
                    
93	elif { dlg isbuttonchecked -d $h -c $IDC_MACHINE_ONCE val; test val -eq 1; }
                    
94	then
                    
                
adm-mrtg git://pkgs.fedoraproject.org/mrtg | Korn Shell | 150 lines
                    
57
                    
58	# sets the number of configs loaded, for error testing
                    
59	MAXLINE=`wc -l "$CFG" | cut -d" " -f7 `
                    
                
framework00004.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 55 lines
                    
33
                    
34echo testing classloader chain for engines
                    
35
                    
39# install engine
                    
40$JBI_ANT -Djbi.install.file=$JV_FRAMEWORK_BLD_DIR/dist/ClassLoaderChainTestEngine.jar install-component
                    
41
                    
41
                    
42# start engine (this tests the classloader chain)
                    
43$JBI_ANT -Djbi.component.name="ClassLoaderChainTestEngine" start-component
                    
51echo Engines Classloader Chain
                    
52grep "java.net.URLClassLoader@" $JBI_DOMAIN_ROOT/logs/classloaderregresstests.classloaderchaintest.engine.rt.log | wc -l
                    
53grep "CustomClassLoader@" $JBI_DOMAIN_ROOT/logs/classloaderregresstests.classloaderchaintest.engine.rt.log | wc -l
                    
53grep "CustomClassLoader@" $JBI_DOMAIN_ROOT/logs/classloaderregresstests.classloaderchaintest.engine.rt.log | wc -l
                    
54grep "DelegatingClassLoader@" $JBI_DOMAIN_ROOT/logs/classloaderregresstests.classloaderchaintest.engine.rt.log | wc -l
                    
55# ### END
                    
                
regress_defs.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 50 lines
                    
28#
                    
29#common definitions for sample tests
                    
30
                    
30
                    
31# Set this to the test domain. default is JBITest
                    
32#my_test_domain=JBITest
                    
37REGRESS_CLASSPATH="$JV_SVC_CLASSES\
                    
38${JBI_PS}$JV_SVC_TEST_CLASSES\
                    
39${JBI_PS}$JV_JBI_HOME/lib/jbi_rt.jar\
                    
47# Calls ant with jbi.task.fail.on.error=false so that we can track negative
                    
48# test case output in the .out file
                    
49export JBI_ANT_NEG
                    
                
driver_tests_done.ksh https://gitlab.com/ECCC_CMDN/vgrid | Korn Shell | 34 lines
                    
4make tests ONLY=constructor_build_2001
                    
5make tests ONLY=constructor_build_2001_stat
                    
6make tests ONLY=constructor_build_all
                    
6make tests ONLY=constructor_build_all
                    
7make tests ONLY=constructor_build_vert
                    
8make tests ONLY=constructor_gen_wrong_version
                    
13make tests ONLY=get_put_get
                    
14make tests ONLY=constructor_any
                    
15make tests ONLY=constructor_simple_gen_1001 #necessite vgd_print
                    
15make tests ONLY=constructor_simple_gen_1001 #necessite vgd_print
                    
16make tests ONLY=get_excl #Ce test me semble insignifiant
                    
17make tests ONLY=get_ip1converted
                    
32
                    
33#make tests ONLY=get_valid
                    
34
                    
                
datestr https://code.google.com/p/xmeta/ | Korn Shell | 70 lines
                    
17#
                    
18# SCRIPT: datestr
                    
19# AUTHOR: Young, Fey
                    
30function usage {
                    
31    echo "Usage: datestr [option]"
                    
32    echo "  -s, --short       YYYY-mm-dd"
                    
                
testrpt https://code.google.com/p/xmeta/ | Korn Shell | 36 lines
                    
17# 
                    
18# SCRIPT: testrpt
                    
19# AUTHOR: hiarcs <fey.young@gmail.com> 
                    
21#
                    
22# PURPOSE: open the gradle test report
                    
23#  
                    
28default_browser=opera
                    
29rpt=build/reports/tests/index.html
                    
30#
                    
                
libtest.shlib git://github.com/zfsonlinux/zfs.git | Korn Shell | 2647 lines
                    
174		log_must $ZFS set canmount=off $TESTPOOL/$TESTCTR
                    
175		log_must $ZFS create $TESTPOOL/$TESTCTR/$TESTFS1
                    
176		log_must $ZFS set mountpoint=$TESTDIR1 \
                    
471
                    
472	ismounted $TESTPOOL/$TESTCTR/$TESTFS1
                    
473	[[ $? -eq 0 ]] && \
                    
473	[[ $? -eq 0 ]] && \
                    
474	    log_must $ZFS unmount $TESTPOOL/$TESTCTR/$TESTFS1
                    
475
                    
476	datasetexists $TESTPOOL/$TESTCTR/$TESTFS1 && \
                    
477	    log_must $ZFS destroy -R $TESTPOOL/$TESTCTR/$TESTFS1
                    
478
                    
495{
                    
496	typeset snap=${1:-$TESTPOOL/$TESTFS@$TESTSNAP}
                    
497
                    
                
BillingCHK.sh_940315bk http://cport.googlecode.com/svn/trunk/ | Korn Shell | 748 lines
                    
33   connectStr="fibills/billsdemo@demo" 
                    
34elif [[ $DB = ITTEST ]]; then
                    
35   connectStr="fibills/itosms02@itosms02"
                    
                
cgp https://code.google.com/p/xmeta/ | Korn Shell | 190 lines
                    
142
                    
143for t in main test
                    
144do
                    
                
regress_defs.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 66 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
                    
38# the following variables are setup by regress scritps
                    
39#JBI_DOMAIN_NAME=JBITest
                    
40#JBI_ADMIN_HOST=localhost
                    
44
                    
45#common definitions for sequencing engine  regression tests:
                    
46
                    
48
                    
49#this is our current test domain:
                    
50DOMAIN_LOG="$JBI_DOMAIN_ROOT/logs/server.log"
                    
                
regress_defs.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 35 lines
                    
28#
                    
29#common definitions for packaging regression tests.
                    
30
                    
31#this are normally set by antbld/regress/common_defs.ksh:
                    
32SVC_LOC=esb-test/package-tests
                    
33SVC_ROOT=$SRCROOT/$SVC_LOC
                    
                
regress_defs.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 75 lines
                    
28#
                    
29#Definitions required by the Security regression tests:
                    
30
                    
30
                    
31my_test_domain=domain1
                    
32
                    
36#Port for HTTP Listener 1
                    
37JBITest_HTTP_LISTENER_1=$DOMAIN_HTTP_PORT
                    
38
                    
39#Port for HTTP Listener 2
                    
40JBITest_HTTP_LISTENER_2=$DOMAIN_HTTP_PORT2
                    
41
                    
56SEC_REGRESS_DIR=$JV_SVC_REGRESS
                    
57TEST_SVLT_WAR="TestSecurityServlet.war"
                    
58
                    
                
run_tests.ksh https://gitlab.com/ECCC_CMDN/vgrid | Korn Shell | 114 lines
                    
8if [ "${ONLY}" = "" ] ; then
                    
9  set -A tests $(ls -1 src_tests/*.F90 | perl -p -e 's|src_tests/(.+)\.F90|$1|g') $(ls -1 src_tests/*.c | perl -p -e 's|src_tests/(.+)\.c|$1|g')
                    
10else
                    
29rm -f ${compile_log}
                    
30for test in ${tests[*]} ; do
                    
31
                    
51  if [ ${IS_C} = yes ] ;then
                    
52      perl -p -e "s/UNIT_TEST_C/${test}/g" ${template} >Makefile.test
                    
53  else
                    
53  else
                    
54      perl -p -e "s/UNIT_TEST_F/${test}/g" ${template} >Makefile.test
                    
55  fi
                    
58  if [ ! $? -eq 0 ] ; then
                    
59    printf "\n ERROR compiling test ${test} ... aborting (try '${MAKE} -f Makefile.test ${test} ${OPENMP_MESSAGE}' for details)\n"
                    
60    exit 1
                    
                
UGREP.KSH http://soulmates.googlecode.com/svn/trunk/ | Korn Shell | 389 lines
                    
161		# Get the options for grep
                    
162		if { dlg isbuttonchecked -c $IDC_NOT_PATTERN result; test result -eq 1; }
                    
163		then
                    
165		fi
                    
166		if { dlg isbuttonchecked -c 16 $IDC_ENTIRE_LINE; test result -eq 1; }
                    
167		then
                    
169		fi
                    
170		if { dlg isbuttonchecked -c 17 $IDC_IGNORE_CASE; test result -eq 1; }
                    
171		then
                    
175		# Get the options for find
                    
176		if { dlg isbuttonchecked -c $IDC_DIR_NEVER result; test result -eq 1; }
                    
177		then
                    
178			findopts=-prune
                    
179		elif { dlg isbuttonchecked -c $IDC_DIR_TO result; test result -eq 1; }
                    
180		then
                    
                
runtests.ksh https://github.com/ppanhoto/Freeswitch-mod_mp4.git | Korn Shell | 292 lines
                    
68#io_timeoutu - obsolete; subsumed in io_timeout
                    
69#prftest1	- obsolete; subsumed by prftest
                    
70#prftest2	- obsolete; subsumed by prftest
                    
89#poll_er - fails on some platforms? limited use?
                    
90#prpoll -  the bad-FD test needs to be moved to a different test
                    
91#sleep	-  specific to OS/2
                    
198system
                    
199testbit
                    
200testfile
                    
217# time (secs) allowed for a test program beyond which it is terminated.
                    
218# If TEST_TIMEOUT is not set or if it's value is 0, then test programs
                    
219# don't timeout.
                    
257		then
                    
258		(sleep  $TEST_TIMEOUT; kill $test_pid >/dev/null 2>&1 ) &
                    
259		sleep_pid=$!
                    
                
pararun.ksh http://scaly.googlecode.com/svn/trunk/ | Korn Shell | 51 lines
                    
13JARS="$JARS;$PARAH/scalaj-collection_2.9.1-1.2.jar"
                    
14JARS="$JARS;$PARAH/scalatest-1.6.1.jar"
                    
15JARS="$JARS;$PARAH/slf4j-api-1.6.2.jar"
                    
38  
                    
39  $SH/bin/scala.bat org.junit.runner.JUnitCore scaly.parabond.test.Mr01 | grep class >> $TRIALS_OUT
                    
40  
                    
40  
                    
41  $SH/bin/scala.bat org.junit.runner.JUnitCore scaly.parabond.test.Mr03 | grep class >> $TRIALS_OUT
                    
42
                    
42
                    
43  $SH/bin/scala.bat org.junit.runner.JUnitCore scaly.parabond.test.NPortfolio00 | grep class >> $TRIALS_OUT
                    
44
                    
44
                    
45  $SH/bin/scala.bat org.junit.runner.JUnitCore scaly.parabond.test.NPortfolio01 | grep class >> $TRIALS_OUT
                    
46  
                    
                
submitMolpro git://pkgs.fedoraproject.org/gabedit | Korn Shell | 117 lines
                    
36filename=${filecom%.com}
                    
37if test ! -s "$filecom"
                    
38then
                    
76
                    
77if test ! -d $gscr
                    
78then
                    
                
setup.ksh https://code.google.com/p/ocp/ | Korn Shell | 56 lines
                    
4ROOT_DIR=./world
                    
5DHT_EXE=/cygdrive/c/jlouis/sandbox/test/test_dht/test_dht.exe
                    
6
                    
                
run-convtest git://pkgs.fedoraproject.org/libreoffice | Korn Shell | 539 lines
                    
317		-xml-new=${XML_OUTFILE_DIR}\
                    
318		-test=$testcase -merge >> $LOGFILE 2>&1
                    
319
                    
367	then
                    
368		TEST_COMMENTS="${TEST_COMMENTS}$type comparison ERROR<BR>"
                    
369		echo "$type comparison ERROR"
                    
382	if [ ! -f $pdbfile ] ; then
                    
383		TEST_COMMENTS="${TEST_COMMENTS}[$pdbfile] does not exist<BR>"
                    
384		LogLine "ERROR: $pdbfile does not exist"
                    
417		testcasename=${line%% *}
                    
418		testcase="${TESTCASEDIR}/$testcasename"
                    
419
                    
449			TestCaseSetup
                    
450			RunTestCase $testcase
                    
451			TestCaseCleanup
                    
                
tetapi.ksh git://anongit.freedesktop.org/git/xorg/test/xts.git/ | Korn Shell | 0 lines
                    
47# NAME:		Shell API Support Routines
                    
48# PRODUCT:	TET (Test Environment Toolkit)
                    
49#		as supplied with TETware release 3.3
                    
55#	It is sourced automatically by the shell TCM.
                    
56#	In addition it should be sourced by test purposes that are written as
                    
57#	separate shell scripts, by means of the shell . command.
                    
105tet_setcontext(){
                    
106	if test $$ != "$TET_CONTEXT"
                    
107	then
                    
131
                    
132# record a test result for later emmision to the execution results file
                    
133# by tet_tpend
                    
150
                    
151# mark a test purpose as deleted
                    
152# usage: tet_delete test_name reason [...]
                    
                
config.ksh git://pkgs.fedoraproject.org/389-ds-base | Korn Shell | 57 lines
                    
47objectclass: person
                    
48sn: test user
                    
49userpassword: $UserPassword
                    
53add : aci
                    
54aci: (targetattr = "*") (version 3.0;acl "test user";allow (all)(userdn = "ldap:///$UserDN");)
                    
55
                    
                
show-overlay-exit.ksh https://github.com/illumos/illumos-gate.git | Korn Shell | 83 lines
                    
27
                    
28soe_etherstub="soe_teststub$$"
                    
29
                    
33	[[ -z "$msg" ]] && msg="failed"
                    
34	echo "TEST_FAIL: $vt_arg0: $msg" >&2
                    
35	dladm delete-overlay $soe_overlay
                    
58
                    
59function runtest
                    
60{
                    
65{
                    
66	runtest $* || fatal "show-overlay=$* failed, expected success\n"
                    
67}
                    
70{
                    
71	runtest $* && fatal "show-overlay=$* succeeded, expected failure\n"
                    
72}
                    
                
buildaix.ksh git://github.com/apache/httpd.git | Korn Shell | 127 lines
                    
38
                    
39while test $# -gt 0
                    
40do
                    
                
script-quest1-pl http://prolgebra.googlecode.com/svn/trunk/ | Korn Shell | 92 lines
                    
16#       Set each of the while loops up as functions and the timing
                    
17#       of each function to see which one is the fastest.
                    
18#
                    
82
                    
83# Test the Input
                    
84
                    
                
setup.ksh https://github.com/illumos/illumos-gate.git | Korn Shell | 45 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33. $STF_SUITE/tests/functional/zvol/zvol_common.shlib
                    
38
                    
39echo "y" | newfs -v /dev/zvol/rdsk/$TESTPOOL/$TESTVOL >/dev/null 2>&1
                    
40(( $? != 0 )) && log_fail "Unable to newfs(8) $TESTPOOL/$TESTVOL"
                    
42log_must mkdir $TESTDIR
                    
43log_must mount /dev/zvol/dsk/$TESTPOOL/$TESTVOL $TESTDIR
                    
44
                    
                
test_isccp_cloud_types.ksh http://cfmip-obs-sim.googlecode.com/svn/devel/trunk/ | Korn Shell | 96 lines
                    
39
                    
40make test_isccp_cloud_types || exit 1
                    
41
                    
41
                    
42# Test RNG gives correct results
                    
43
                    
43
                    
44./test_congvec.ksh || exit 1
                    
45
                    
45
                    
46echo Running ISCCP simulator tests - may take a few minutes....
                    
47
                    
68            dir=$(pwd)
                    
69            rsh sx601 "cd $dir ; ./test_isccp_cloud_types < stdin"
                    
70        else
                    
                
rtest.sh.rtest-errout-fix git://pkgs.fedoraproject.org/graphviz | Korn Shell | 404 lines
                    
23
                    
24TESTFILE=tests.txt     # Test specifications
                    
25GRAPHDIR=graphs        # Directory of input graphs and data
                    
35
                    
36TESTNAME=   # name of test
                    
37GRAPH=      # graph specification
                    
285      (( CRASH_CNT+=1 ))
                    
286      print -u 2 "Test $TESTNAME:$i : == Layout failed =="
                    
287      print -u 2 "  $testcmd"
                    
297    else
                    
298      print -u 2 "Test $TESTNAME:$i : == No file $REFDIR/$OUTFILE for comparison =="
                    
299    fi
                    
311
                    
312Usage='rtest [-gvn] [TESTFILE]\n
                    
313 -g : generate test data\n
                    
                
test_congvec.ksh http://cfmip-obs-sim.googlecode.com/svn/devel/trunk/ | Korn Shell | 71 lines
                    
37
                    
38# $Id: test_congvec.ksh,v 4.0 2009/02/13 08:21:07 hadmw Exp $ 
                    
39
                    
39
                    
40rm -f test_congvec congvec.out congvec.compare
                    
41make test_congvec || exit 1
                    
47    dir=$(pwd)
                    
48    rsh sx601 "cd $dir ; ./test_congvec " >> congvec.out
                    
49else
                    
49else
                    
50    ./test_congvec >> congvec.out
                    
51fi
                    
58then
                    
59  echo congvec random number generator tests passed ok.
                    
60  exit 0
                    
                
dexplorer https://bitbucket.org/freebsd/freebsd-head/ | Korn Shell | 548 lines
                    
68dir=de_`uname -n`_`date +%Y%m%d%H%M`	# OUTPUT FILENAME
                    
69samples=20				# max number of tests
                    
70current=0				# current sample
                    
239#
                    
240#  Cpu Tests, DTrace
                    
241#
                    
294#
                    
295#  Disk Tests, DTrace
                    
296#
                    
328#
                    
329#  Mem Tests, DTrace
                    
330#
                    
354#
                    
355#  Net Tests, DTrace
                    
356#
                    
                
LEDA_Makelibs http://ece337-project-interceptor.googlecode.com/svn/trunk/ | Korn Shell | 43 lines
                    
16
                    
17# $V createstd
                    
18echo project_specify_libraries -resource \{ STD ${LEDA_PATH}/amd64/resources/resource_93/STD \} -append >> /home/ecegrid/a/mg95/ece337/Proj_1/P1_leda.pro
                    
                
irix6.prov git://pkgs.fedoraproject.org/rpm | Korn Shell | 202 lines
                    
87	maybe_shared_lib=`file $f | grep -E 'ELF.*dynamic lib'` 
                    
88	if test X"$maybe_shared_lib" != X ; then
                    
89		elfdump -L $f 2>/dev/null | awk '
                    
197	' # end of awk
                    
198	fi # end of the 'if test X"$maybe_shared_lib != X ; then' clause
                    
199done | sort -u
                    
                
zfs_create_004_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 73 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33. $STF_SUITE/tests/functional/cli_root/zfs_create/zfs_create_common.kshlib
                    
50{
                    
51	datasetexists $TESTPOOL/$TESTFS1 && \
                    
52		log_must zfs destroy -f $TESTPOOL/$TESTFS1
                    
62while (( $i < ${#RW_FS_PROP[*]} )); do
                    
63	log_must zfs create -o ${RW_FS_PROP[$i]} $TESTPOOL/$TESTFS1
                    
64	datasetexists $TESTPOOL/$TESTFS1 || \
                    
64	datasetexists $TESTPOOL/$TESTFS1 || \
                    
65		log_fail "zfs create $TESTPOOL/$TESTFS1 fail."
                    
66	propertycheck $TESTPOOL/$TESTFS1 ${RW_FS_PROP[i]} || \
                    
67		log_fail "${RW_FS_PROP[i]} is failed to set."
                    
68	log_must zfs destroy -f $TESTPOOL/$TESTFS1
                    
69	(( i = i + 1 ))
                    
                
history_008_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 74 lines
                    
31
                    
32. $STF_SUITE/tests/functional/history/history_common.kshlib
                    
33
                    
50	if datasetexists $root_testfs; then
                    
51		log_must zfs destroy -rf $root_testfs
                    
52	fi
                    
52	fi
                    
53	log_must zfs create $root_testfs
                    
54}
                    
58
                    
59root_testfs=$TESTPOOL/$TESTFS
                    
60fs1=$root_testfs/fs1; fs2=$root_testfs/fs2; fs3=$root_testfs/fs3
                    
64
                    
65run_and_verify "zfs snapshot -r $root_testfs@snap" "-i"
                    
66run_and_verify "zfs hold -r tag $root_testfs@snap" "-i"
                    
                
large_dnode_001_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 82 lines
                    
27
                    
28. $STF_SUITE/include/libtest.shlib
                    
29
                    
43
                    
44TEST_FS=$TESTPOOL/large_dnode
                    
45
                    
49{
                    
50	datasetexists $TEST_FS && log_must zfs destroy $TEST_FS
                    
51}
                    
55
                    
56log_must zfs create $TEST_FS
                    
57
                    
65	fi
                    
66	file=/$TEST_FS/file.$size
                    
67	log_must zfs set dnsize=$size $TEST_FS
                    
                
zfs_mount_011_neg.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 81 lines
                    
47{
                    
48	if snapexists $TESTPOOL/$TESTFS@$TESTSNAP; then
                    
49		log_must_busy zfs destroy $TESTPOOL/$TESTFS@$TESTSNAP
                    
51
                    
52	if is_global_zone && datasetexists $TESTPOOL/$TESTVOL; then
                    
53		log_must_busy zfs destroy $TESTPOOL/$TESTVOL
                    
59
                    
60fs=$TESTPOOL/$TESTFS
                    
61set -A badargs "A" "-A" "-" "-x" "-?" "=" "-o *" "-a"
                    
72#verify that zfs mount fails with volume and snapshot
                    
73log_must zfs snapshot $TESTPOOL/$TESTFS@$TESTSNAP
                    
74log_mustnot eval "zfs mount $TESTPOOL/$TESTFS@$TESTSNAP >/dev/null 2>&1"
                    
76if is_global_zone; then
                    
77	log_must zfs create -V 10m $TESTPOOL/$TESTVOL
                    
78	log_mustnot eval "zfs mount $TESTPOOL/$TESTVOL >/dev/null 2>&1"
                    
                
zfs_promote_006_neg.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 90 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33
                    
52
                    
53snap=$TESTPOOL/$TESTFS@$TESTSNAP
                    
54clone=$TESTPOOL/$TESTCLONE
                    
54clone=$TESTPOOL/$TESTCLONE
                    
55recvfs=$TESTPOOL/recvfs
                    
56set -A args "" \
                    
56set -A args "" \
                    
57	"$TESTPOOL/blah" \
                    
58	"$TESTPOOL" "$TESTPOOL/$TESTFS" "$snap" \
                    
58	"$TESTPOOL" "$TESTPOOL/$TESTFS" "$snap" \
                    
59	"$TESTPOOL/$TESTVOL" "$TESTPOOL $TESTPOOL/$TESTFS" \
                    
60	"$clone $TESTPOOL/$TESTFS" "- $clone" "-? $clone" \
                    
                
cgj https://code.google.com/p/xmeta/ | Korn Shell | 134 lines
                    
21#
                    
22# PURPOSE: create a java class and related junit test
                    
23#  
                    
122    test_path=$project_directory/src/test/groovy/`pkg2path $src_package`
                    
123    test_file=$test_path/${class_name}Test.groovy
                    
124
                    
124
                    
125    if [ -s $test_file ]
                    
126    then
                    
126    then
                    
127        echo "Warning: created class $class_name, but test file already exists."
                    
128    fi
                    
129
                    
130    mkdir -p $test_path
                    
131    cast $XMETA_HOME/templates/java/junit.groovy > $test_file
                    
                
submitGaussian git://pkgs.fedoraproject.org/gabedit | Korn Shell | 35 lines
                    
1#!/bin/ksh
                    
2if test -z "$1"
                    
3then
                    
27fi
                    
28if test -z "$type"
                    
29then
                    
                
zfs_create_008_neg.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 113 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33. $STF_SUITE/tests/functional/cli_root/zfs_create/zfs_create.cfg
                    
48{
                    
49	if datasetexists $TESTPOOL/$TESTFS1 ; then
                    
50		log_must zfs destroy -f $TESTPOOL/$TESTFS1
                    
107	fi
                    
108	log_mustnot zfs create $arg $TESTPOOL/$TESTFS1
                    
109	log_mustnot zfs create -p $arg $TESTPOOL/$TESTFS1
                    
                
zpool_import_missing_002_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 197 lines
                    
48# STRATEGY:
                    
49#	1. Create test pool upon device files using the various combinations.
                    
50#		- Regular pool
                    
76
                    
77	cleanup_filesystem $TESTPOOL1 $TESTFS
                    
78
                    
78
                    
79	destroy_pool $TESTPOOL1
                    
80}
                    
128	setup_filesystem "$DEVICE_FILES" \
                    
129		$TESTPOOL1 $TESTFS $TESTDIR1 \
                    
130		"" ${vdevs[i]}
                    
134
                    
135	log_must cp $MYTESTFILE $TESTDIR1/$TESTFILE0
                    
136
                    
                
c http://power-collector.googlecode.com/svn/trunk/ | Korn Shell | 602 lines
                    
145		oslevel -s | read curOS
                    
146		oslevel -qs 2>/dev/null | head -1 | read latestOS
                    
147		if [ ${curOS} = ${latestOS} ]
                    
150		else
                    
151			printf "$(levelSpace ${level})OS level: %s, latest known level %s\n" ${curOS} ${latestOS}
                    
152		fi
                    
                
runy2ktests.ksh https://github.com/ppanhoto/Freeswitch-mod_mp4.git | Korn Shell | 269 lines
                    
40# runy2ktests.ksh
                    
41#	Set system clock to Y2K dates of interest and run the Y2K tests.
                    
42#	Needs root/administrator privilege
                    
63#
                    
64# Test dates for NSPR Y2K tests
                    
65#
                    
209	HP-UX)
                    
210		TESTS=$Y2KTESTS_HPUX
                    
211	;;
                    
212	*)
                    
213		TESTS=$Y2KTESTS
                    
214	;;
                    
219# runtests:
                    
220#	-	runs each test in $TESTS after setting the
                    
221#		system clock to each date in $DATES
                    
                
runtest.ksh https://github.com/LeifAndersen/Android-Supertux.git | Korn Shell | 24 lines
                    
1if test $# -eq 0 
                    
2then
                    
4else
                    
5    if test "$BOOST_ROOT" == ""
                    
6    then
                    
10    fi
                    
11    if test "$2" != ""
                    
12    then
                    
14    fi
                    
15    if test "$ALL_LOCATE_TARGET" == ""
                    
16    then
                    
20    echo Running tests for $1 on $BOOST_ROOT to $ALL_LOCATE_TARGET
                    
21    bjam --dump-test -sTOOLS=$1 test >bjam.log 2>&1
                    
22    process_jam_log <bjam.log $ALL_LOCATE_TARGET
                    
                
zfs_get_004_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 227 lines
                    
57	if [[ -n $globalzone ]] ; then
                    
58		for pool in $TESTPOOL1 $TESTPOOL2 $TESTPOOL3; do
                    
59			poolexists $pool && \
                    
65	else
                    
66		for fs in $TESTPOOL/$TESTFS1 $TESTPOOL/$TESTFS2 $TESTPOOL/$TESTFS3; do
                    
67			datasetexists $fs && \
                    
90clone=$TESTPOOL/$TESTCLONE
                    
91volsnap=$TESTPOOL/$TESTVOL@$TESTSNAP
                    
92
                    
138	log_must zfs snapshot $pool/$TESTFS@$TESTSNAP
                    
139	log_must zfs clone $pool/$TESTFS@$TESTSNAP $pool/$TESTCLONE
                    
140
                    
148	usrpropds="$usrpropds $pool/$TESTFS $pool/$TESTCLONE $pool/$TESTVOL"
                    
149	allds="$allds $pool/$TESTFS $pool/$TESTCLONE $pool/$TESTVOL \
                    
150		$pool/$TESTFS@$TESTSNAP"
                    
                
auto_billing_DEMO.sh930907bk http://cport.googlecode.com/svn/trunk/ | Korn Shell | 218 lines
                    
61
                    
62ProcPhoneMsg.sh Phone_Msg.txt PhoneFile.txt "!!DEMO TEST!!"
                    
63
                    
                
cache_010_neg.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 91 lines
                    
55log_assert "Cache device can only be block devices."
                    
56log_onexit cleanup_testenv
                    
57
                    
57
                    
58TESTVOL=testvol1$$
                    
59dsk1=${DISKS%% *}
                    
59dsk1=${DISKS%% *}
                    
60log_must $ZPOOL create $TESTPOOL ${DISKS#$dsk1}
                    
61
                    
68# Add nomal ${DEV_RDSKDIR} device
                    
69log_mustnot $ZPOOL add $TESTPOOL cache ${DEV_RDSKDIR}/${dsk1}${SLICE}
                    
70#log_must verify_cache_device $TESTPOOL $dsk1 'ONLINE'
                    
87log_must $ZFS create -V $SIZE $TESTPOOL2/$TESTVOL
                    
88log_mustnot $ZPOOL add $TESTPOOL cache ${ZVOL_RDEVDIR}/$TESTPOOL2/$TESTVOL
                    
89
                    
                
submitMolpro git://pkgs.fedoraproject.org/gabedit | Korn Shell | 74 lines
                    
37DEFAULTDIR=`pwd`
                    
38if test ! -s "$filecom"
                    
39then
                    
                
posix_003_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 60 lines
                    
22
                    
23. $STF_SUITE/include/libtest.shlib
                    
24
                    
27#	Verify that ACLs survive remount.
                    
28#	Regression test for https://github.com/zfsonlinux/zfs/issues/4520
                    
29#
                    
30# STRATEGY:
                    
31#	1. Test presence of default and regular ACLs after remount
                    
32#	   a. Can set and list ACL before remount
                    
40typeset acl_str2="^default:group:$ZFS_ACL_STAFF_GROUP:-wx$"
                    
41typeset ACLDIR="$TESTDIR/dir.1"
                    
42
                    
52if [ "$?" -eq "0" ]; then
                    
53	log_must zfs unmount $TESTPOOL/$TESTFS
                    
54	log_must zfs mount $TESTPOOL/$TESTFS
                    
                
zfs_receive_001_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 176 lines
                    
68	if [[ -d $TESTDIR1 ]] ; then
                    
69		log_must rm -rf $TESTDIR1
                    
70	fi
                    
77
                    
78typeset datasets="$TESTPOOL/$TESTFS $TESTPOOL"
                    
79set -A bkup "$TEST_BASE_DIR/fullbkup" "$TEST_BASE_DIR/incbkup"
                    
92	typeset mntpnt=$(get_prop mountpoint ${orig_fs})
                    
93	set -A orig_data "${mntpnt}/$TESTFILE1" "${mntpnt}/$TESTFILE2"
                    
94
                    
103
                    
104	set -A rst_snap "$rst_root/$TESTFS@init_snap" "$rst_root/$TESTFS@inc_snap"
                    
105	set -A rst_snap2 "${leaf_fs}@init_snap" "${leaf_fs}@inc_snap"
                    
105	set -A rst_snap2 "${leaf_fs}@init_snap" "${leaf_fs}@inc_snap"
                    
106	set -A rst_data "$TESTDIR1/$TESTFS/$TESTFILE1" "$TESTDIR1/$TESTFS/$TESTFILE2"
                    
107	set -A rst_data2 "$TESTDIR1/${relative_path}/$TESTFILE1" "$TESTDIR1/${relative_path}/$TESTFILE2"
                    
                
cgs https://code.google.com/p/xmeta/ | Korn Shell | 128 lines
                    
21#
                    
22# PURPOSE: create a scala class (TBD: and related junit test)
                    
23#  
                    
116    test_path=$project_directory/src/test/scala/`pkg2path $src_package`
                    
117    test_file=$test_path/${class_name}Test.scala
                    
118
                    
118
                    
119    if [ -s $test_file ]
                    
120    then
                    
120    then
                    
121        echo "Warning: created class $class_name, but test file already exists."
                    
122    fi
                    
123
                    
124    mkdir -p $test_path
                    
125    cast $XMETA_HOME/templates/scala/junit > $test_file
                    
                
irix6.req git://pkgs.fedoraproject.org/rpm | Korn Shell | 165 lines
                    
84	#
                    
85	if test X"$is_shell_script" != X ; then
                    
86		echo "$is_shell_script"
                    
95	#
                    
96	# the `else' is implied here, since we used `continue' in the test above
                    
97	#
                    
102	maybe_shared_lib=`echo "$file_output" | grep -E 'executable|lib'`
                    
103	if test X"$maybe_shared_lib" != X ; then
                    
104
                    
                
zfs_promote_004_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 140 lines
                    
68clone=$TESTPOOL/$TESTCLONE
                    
69clone1=$TESTPOOL/$TESTCLONE1
                    
70
                    
73# Array which stores the origin snapshots created in the origin filesystem
                    
74set -A snap "${fs}@$TESTSNAP" "${fs}@$TESTSNAP1" "${fs}@$TESTSNAP2" "${fs}@$TESTSNAP3"
                    
75# Array which stores the snapshots existing in the first clone
                    
75# Array which stores the snapshots existing in the first clone
                    
76set -A csnap "${clone}@$TESTSNAP3" "${clone}@$TESTSNAP4" "${clone}@$TESTSNAP5"
                    
77# Array which stores the snapshots existing in the second clone after promote operation
                    
77# Array which stores the snapshots existing in the second clone after promote operation
                    
78set -A c1snap "${clone1}@$TESTSNAP3" "${clone1}@$TESTSNAP4" "${clone1}@$TESTSNAP5"
                    
79# The data will inject into the origin filesystem
                    
79# The data will inject into the origin filesystem
                    
80set -A file "$TESTDIR/$TESTFILE0" "$TESTDIR/$TESTFILE1" "$TESTDIR/$TESTFILE2" \
                    
81		"$TESTDIR/$TESTFILE3"
                    
                
submitGaussian git://pkgs.fedoraproject.org/gabedit | Korn Shell | 85 lines
                    
38g98root=/data/logiciels/Gaussian
                    
39if test ! -s "$filecom"
                    
40then
                    
                
canmount_001_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 123 lines
                    
49set -A dataset_pos \
                    
50	"$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTCTR" "$TESTPOOL/$TESTCLONE"
                    
51
                    
53	set -A dataset_neg \
                    
54		"$TESTPOOL/$TESTVOL" "$TESTPOOL/$TESTFS@$TESTSNAP" \
                    
55		"$TESTPOOL/$TESTVOL@$TESTSNAP"  "$TESTPOOL/$TESTCLONE1"
                    
57	set -A dataset_neg \
                    
58		"$TESTPOOL/$TESTFS@$TESTSNAP" "$TESTPOOL/$TESTVOL@$TESTSNAP"
                    
59fi
                    
93
                    
94log_must zfs snapshot $TESTPOOL/$TESTFS@$TESTSNAP
                    
95log_must zfs snapshot $TESTPOOL/$TESTVOL@$TESTSNAP
                    
96log_must zfs clone $TESTPOOL/$TESTFS@$TESTSNAP $TESTPOOL/$TESTCLONE
                    
97log_must zfs clone $TESTPOOL/$TESTVOL@$TESTSNAP $TESTPOOL/$TESTCLONE1
                    
98
                    
                
auto_billing_ITTEST.sh920529bk http://cport.googlecode.com/svn/trunk/ | Korn Shell | 165 lines
                    
3today=$(gawk 'BEGIN {printf("%s\n",strftime("%Y%m%d",systime()))}');
                    
4exec 1>$BILLING/ITTEST/auto_billing$today.log
                    
5exec 2>$BILLING/ITTEST/auto_billing$today.err
                    
5exec 2>$BILLING/ITTEST/auto_billing$today.err
                    
6cd /osms_d1/ratedata/BILLING/ITTEST 
                    
7echo "cd /osms_d1/ratedata/BILLING/ITTEST" 
                    
163fi
                    
164echo "auto_billing_ITTEST END!!"
                    
165
                    
                
zfs_get_001_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 163 lines
                    
74typeset dataset=($TESTPOOL/$TESTCTR $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL \
                    
75	$TESTPOOL/$TESTFS@$TESTSNAP $TESTPOOL/$TESTVOL@$TESTSNAP)
                    
76
                    
77typeset bookmark_props=(creation)
                    
78typeset bookmark=($TESTPOOL/$TESTFS#$TESTBKMARK $TESTPOOL/$TESTVOL#$TESTBKMARK)
                    
79
                    
84# $1 dataset
                    
85# $2 properties which are expected to output into $TESTDIR/$TESTFILE0
                    
86# $3 option
                    
122# Create filesystem and volume's snapshot
                    
123create_snapshot $TESTPOOL/$TESTFS $TESTSNAP
                    
124create_snapshot $TESTPOOL/$TESTVOL $TESTSNAP
                    
126# Create filesystem and volume's bookmark
                    
127create_bookmark $TESTPOOL/$TESTFS $TESTSNAP $TESTBKMARK
                    
128create_bookmark $TESTPOOL/$TESTVOL $TESTSNAP $TESTBKMARK
                    
                
zfs_list_004_neg.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 63 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33
                    
51
                    
52paths="$TESTPOOL/NONEXISTFS $TESTPOOL/$TESTFS/NONEXISTFS \
                    
53	/$TESTDIR/NONEXISTFS /devices /tmp ./../devices ./../tmp"
                    
                
snapused_005_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 73 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33. $STF_SUITE/tests/functional/snapused/snapused.kshlib
                    
49{
                    
50	log_must zfs destroy -rR $USEDTEST
                    
51}
                    
55
                    
56log_must zfs create $USEDTEST
                    
57check_usedbysnapshots $USEDTEST
                    
60typeset -i r_size=0
                    
61mntpnt=$(get_prop mountpoint $USEDTEST)
                    
62while ((i < 5)); do
                    
66
                    
67	log_must zfs snapshot $USEDTEST@snap$i
                    
68	check_usedbysnapshots $USEDTEST
                    
                
zfs_list_002_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 176 lines
                    
107verify_sort \
                    
108	"zfs list -H -r -o name -s creation -t snapshot $TESTPOOL/$TESTFS" \
                    
109	"$snap_creation" "creation date"
                    
112verify_sort \
                    
113	"zfs list -H -r -o name -s checksum -t filesystem $TESTPOOL/$TESTFS" \
                    
114	"$fs_cksum" "checksum"
                    
128verify_sort \
                    
129	"zfs list -H -r -o name -s name -t filesystem $TESTPOOL/$TESTFS" \
                    
130	"$fs_name" "name"
                    
132	verify_sort \
                    
133	"zfs list -H -r -o name -s name -t volume $TESTPOOL/$TESTFS" \
                    
134	"$vol_name" "name"
                    
172verify_reverse_sort \
                    
173	"zfs list -H -r -o name -S name -t snapshot $TESTPOOL/$TESTFS"\
                    
174	"$snap_name" "name"
                    
                
auto_billing_ITTEST.sh910611 http://cport.googlecode.com/svn/trunk/ | Korn Shell | 156 lines
                    
3today=$(gawk 'BEGIN {printf("%s\n",strftime("%Y%m%d",systime()))}');
                    
4exec 1>$BILLING/ITTEST/auto_billing$today.log
                    
5exec 2>$BILLING/ITTEST/auto_billing$today.err
                    
5exec 2>$BILLING/ITTEST/auto_billing$today.err
                    
6cd /osms_d1/ratedata/BILLING/ITTEST 
                    
7echo "cd /osms_d1/ratedata/BILLING/ITTEST" 
                    
57
                    
58echo "sqlplus osms/foistmesl@ittest @auto_pre.sql "$billing_period" "$billing_cycle" "
                    
59sqlplus osms/foistmesl@ittest @auto_pre.sql $billing_period $billing_cycle
                    
130###====================================================================#
                    
131cnt=`sqlplus -s "osms/foistmesl@ittest" <<END
                    
132set pagesize 0 feedback off verify off heading off echo off
                    
141   echo "successful"
                    
142sqlplus -s "osms/foistmesl@ittest" <<END
                    
143update cw_tb_subscr_mbl set cdr_indic = 'Y' where billing_cycle = '$billing_cycle';
                    
                
zdb_001_neg.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 74 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33
                    
                
userquota_006_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 79 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33. $STF_SUITE/tests/functional/userquota/userquota_common.kshlib
                    
                
zfs_set_003_neg.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 77 lines
                    
31
                    
32. $STF_SUITE/tests/functional/cli_root/zfs_set/zfs_set_common.kshlib
                    
33
                    
50	fi
                    
51	if datasetexists $TESTPOOL/foo; then
                    
52		log_must zfs destroy $TESTPOOL/foo
                    
58
                    
59badpath=$TEST_BASE_DIR/foo1.$$
                    
60touch $badpath
                    
62
                    
63log_must zfs create -o mountpoint=legacy $TESTPOOL/foo
                    
64
                    
64
                    
65# Do the negative testing about "property may be set but unable to remount filesystem"
                    
66log_mustnot eval "zfs set mountpoint=$badpath $TESTPOOL/foo >/dev/null 2>&1"
                    
                
osf.req git://pkgs.fedoraproject.org/rpm | Korn Shell | 143 lines
                    
74	#
                    
75	if test X"$is_shell_script" != X ; then
                    
76		echo "$is_shell_script"
                    
94	maybe_shared_lib=`echo "$file_output" | grep 'executable'`
                    
95	if test X"$maybe_shared_lib" != X ; then
                    
96
                    
                
nopwrite_volume.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 59 lines
                    
17
                    
18. $STF_SUITE/include/libtest.shlib
                    
19. $STF_SUITE/tests/functional/nopwrite/nopwrite.shlib
                    
31verify_runnable "global"
                    
32origin="$TESTPOOL/$TESTVOL"
                    
33clone="$TESTPOOL/clone"
                    
40	datasetexists $origin && log_must zfs destroy -R $origin
                    
41	# No need to recreate the volume as no other tests expect it.
                    
42}
                    
                
daemon.test git://pkgs.fedoraproject.org/autogen | Korn Shell | 128 lines
                    
2#  -*- Mode: Shell-script -*-
                    
3# daemon.test --- test functionality of `for' function
                    
4#
                    
27tdir=$( (mktemp -d $PWD/.daemon-XXXXXX.d) 2>/dev/null)
                    
28test -z "${tdir}" && {
                    
29  tdir=$PWD/.daemon-$$.d
                    
71
                    
72  while test ! -S ${1} -a ! -p ${1}
                    
73  do print -u2 No ${1}. Must delay.
                    
110# No daemon-w0QjvL. Must delay.
                    
111# ./daemon.test[71]: cannot create daemon-w0QjvL: No such device or address
                    
112# ./daemon.test[71]: cannot create daemon-w0QjvL: No such device or address
                    
112# ./daemon.test[71]: cannot create daemon-w0QjvL: No such device or address
                    
113# ./daemon.test[71]: cannot create daemon-w0QjvL: No such device or address
                    
114# UID        PID  PPID  C STIME TTY        TIME CMD
                    
                
zfs_share_006_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 105 lines
                    
49{
                    
50	log_must zfs set sharenfs=off $TESTPOOL/$TESTCTR
                    
51	if mounted $TESTDIR2; then
                    
51	if mounted $TESTDIR2; then
                    
52		log_must zfs unmount $TESTDIR2
                    
53	fi
                    
54
                    
55	datasetexists $TESTPOOL/$TESTCTR/$TESTFS2 && \
                    
56		log_must zfs destroy $TESTPOOL/$TESTCTR/$TESTFS2
                    
58	typeset fs=""
                    
59	for fs in $mntp $TESTDIR1 $TESTDIR2
                    
60	do
                    
101typeset mntp=$(get_prop mountpoint $TESTPOOL/$TESTCTR)
                    
102test_ctr_share $mntp $TESTPOOL/$TESTCTR
                    
103
                    
                
zpool_add_003_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 97 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33. $STF_SUITE/tests/functional/cli_root/zpool_add/zpool_add.kshlib
                    
51{
                    
52	destroy_pool $TESTPOOL
                    
53	rm -f $TMPFILE_PREFIX* $VDEV_PREFIX*
                    
60
                    
61typeset TMPFILE_PREFIX="$TEST_BASE_DIR/zpool_add_003"
                    
62typeset STR_DRYRUN="would update '$TESTPOOL' to the following configuration:"
                    
62typeset STR_DRYRUN="would update '$TESTPOOL' to the following configuration:"
                    
63typeset VDEV_PREFIX="$TEST_BASE_DIR/filedev"
                    
64typeset -a VDEV_TYPES=("" "dedup" "special" "log" "cache")
                    
70log_must truncate -s $SPA_MINDEVSIZE "$VDEV_PREFIX-root"
                    
71log_must zpool create "$TESTPOOL" "$VDEV_PREFIX-root"
                    
72log_must poolexists "$TESTPOOL"
                    
                
zfs_snapshot_001_neg.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 117 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33. $STF_SUITE/tests/functional/cli_root/zfs_snapshot/zfs_snapshot.cfg
                    
59set -A args "" \
                    
60	"$TESTPOOL/$TESTFS@blah*" "$TESTPOOL/$TESTFS@blah?" \
                    
61	"$TESTPOOL/$TESTVOL@blah*" "$TESTPOOL/$TESTVOL@blah?" \
                    
61	"$TESTPOOL/$TESTVOL@blah*" "$TESTPOOL/$TESTVOL@blah?" \
                    
62	"/$TESTPOOL/$TESTFS@$TESTSNAP" "/$TESTPOOL/$TESTVOL@$TESTSNAP" \
                    
63	"@$TESTSNAP" "$TESTPOOL/$TESTFS@" "$TESTPOOL/$TESTVOL@" \
                    
63	"@$TESTSNAP" "$TESTPOOL/$TESTFS@" "$TESTPOOL/$TESTVOL@" \
                    
64	"$TESTPOOL//$TESTFS@$TESTSNAP" "$TESTPOOL//$TESTVOL@$TESTSNAP" \
                    
65	"$TESTPOOL/$TESTFS/$TESTSNAP" "$TESTPOOL/$TESTVOL/$TESTSNAP" \
                    
65	"$TESTPOOL/$TESTFS/$TESTSNAP" "$TESTPOOL/$TESTVOL/$TESTSNAP" \
                    
66	"$TESTPOOL/$TESTFS@$TESTSNAP@$TESTSNAP1" \
                    
67	"$TESTPOOL/$TESTVOL@$TESTSNAP@$TESTSNAP1" \
                    
                
zpool_destroy_002_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 117 lines
                    
54	if [[ -d $TESTDIR ]]; then
                    
55		ismounted $TESTDIR && log_must umount $TESTDIR
                    
56		log_must rm -rf $TESTDIR
                    
68
                    
69set -A datasets "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTCTR/$TESTFS1" \
                    
70	"$TESTPOOL/$TESTCTR" "$TESTPOOL/$TESTVOL" \
                    
78log_must mkdir -p $TESTDIR
                    
79log_must zfs set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
                    
80log_must zfs create $TESTPOOL/$TESTCTR
                    
80log_must zfs create $TESTPOOL/$TESTCTR
                    
81log_must zfs create $TESTPOOL/$TESTCTR/$TESTFS1
                    
82log_must zfs create -V $VOLSIZE $TESTPOOL/$TESTVOL
                    
93
                    
94for dir in $TESTDIR /$TESTPOOL/$TESTCTR /$TESTPOOL/$TESTCTR/$TESTFS1 ; do
                    
95	log_must cd $dir
                    
                
sotruss.ksh git://pkgs.fedoraproject.org/glibc | Korn Shell | 157 lines
                    
62  printf >&2 $"%s: option is ambiguous; possibilities:"
                    
63  while test $# -gt 0; do
                    
64    printf >&2 " '%s'" $1
                    
71
                    
72while test $# -gt 0; do
                    
73  case "$1" in
                    
93  -F | --fr | --fro | --from)
                    
94    if test $# -eq 1; then
                    
95      do_missing_arg "$1"
                    
100  -T | --t | --to)
                    
101    if test $# -eq 1; then
                    
102      do_missing_arg "$1"
                    
107  -o | --o | --ou | --out | --outp | --outpu | --output)
                    
108    if test $# -eq 1; then
                    
109      do_missing_arg "$1"
                    
                
xauth_switch_to_sun-des-1 git://anongit.freedesktop.org/git/xorg/app/scripts.git/ | Korn Shell | 173 lines
                    
20# Known bugs:
                    
21# - Was not tested on Linux since several months
                    
22
                    
69
                    
70# test if we can access $DISPLAY via SUN-DES-1 auth. using a temporary
                    
71# Xauthority file
                    
130# have to "guess" in this case. "pgrep" creates a list of PIDs which may
                    
131# match. Then we create a list of all matching "principals" and test
                    
132# them - item by item...
                    
144
                    
145# ... step 2: Test the list of principals
                    
146for PRINCIPAL in ${principal_list} ${fallback_principal_list} ; do
                    
146for PRINCIPAL in ${principal_list} ${fallback_principal_list} ; do
                    
147    # make a "dry run" and test whether we really can use SUN-DES-1 auth.
                    
148    # for this display using the given principal
                    
                
zfs_unmount_009_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 142 lines
                    
55
                    
56	for fs in $TESTPOOL/$TESTFS $TESTPOOL ; do
                    
57		typeset snap=$fs@$TESTSNAP
                    
68		log_must zfs create $TESTPOOL/$TESTFS
                    
69		log_must zfs set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
                    
70	fi
                    
76		log_must zfs create $TESTPOOL/$TESTFS
                    
77		log_must zfs set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
                    
78		log_must cd $TESTDIR
                    
79		echo hello > world
                    
80		log_must zfs snapshot $TESTPOOL/$TESTFS@$TESTSNAP
                    
81		log_must cd .zfs/snapshot/$TESTSNAP
                    
88
                    
89for fs in $TESTPOOL/$TESTFS $TESTPOOL ; do
                    
90	typeset snap=$fs@$TESTSNAP
                    
                
zfs_snapshot_006_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 124 lines
                    
31
                    
32. $STF_SUITE/tests/functional/cli_root/zfs_set/zfs_set_common.kshlib
                    
33
                    
46{
                    
47	for fs in $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL $TESTPOOL ; do
                    
48		typeset fssnap=$fs@snap
                    
74
                    
75for fs in $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL $TESTPOOL ; do
                    
76	typeset fssnap=$fs@snap
                    
100log_must eval "zfs snapshot -r -o $prop_name='$value' $TESTPOOL@snap"
                    
101for fs in $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL $TESTPOOL ; do
                    
102	typeset fssnap=$fs@snap
                    
114log_must eval "zfs snapshot -r -o $prop_name='$value' -o $prop_name2='$value2' $TESTPOOL@snap"
                    
115for fs in $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL $TESTPOOL ; do
                    
116	typeset fssnap=$fs@snap
                    
                
rsend_008_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 131 lines
                    
31
                    
32. $STF_SUITE/tests/functional/rsend/rsend.kshlib
                    
33
                    
                
zfs_send_004_neg.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 109 lines
                    
31
                    
32. $STF_SUITE/tests/functional/cli_root/cli_common.kshlib
                    
33
                    
61
                    
62fs=$TESTPOOL/$TESTFS
                    
63snap1=$fs@snap1
                    
67set -A badargs \
                    
68	"" "$TESTPOOL" "$TESTFS" "$fs" "$fs@nonexistent_snap" "?" \
                    
69	"$snap1/blah" "$snap1@blah" "-i" "-x" "-i $fs" \
                    
88log_must zfs snapshot $snap1
                    
89tmpfile1=$TESTDIR/testfile1.$$
                    
90log_must touch $tmpfile1
                    
91log_must zfs snapshot $snap2
                    
92tmpfile2=$TESTDIR/testfile2.$$
                    
93log_must touch $tmpfile2
                    
                
large_dnode_005_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 80 lines
                    
33TEST_RECV_FS=$TESTPOOL/recv_large_dnode
                    
34TEST_SNAP=$TEST_SEND_FS@ldnsnap
                    
35TEST_SNAPINCR=$TEST_SEND_FS@ldnsnap_incr
                    
36TEST_STREAM=$TESTDIR/ldnsnap
                    
37TEST_STREAMINCR=$TESTDIR/ldnsnap_incr
                    
38TEST_FILE=foo
                    
59log_must zfs create -o dnodesize=1k $TEST_SEND_FS
                    
60log_must touch /$TEST_SEND_FS/$TEST_FILE
                    
61log_must zfs snap $TEST_SNAP
                    
65log_must zfs snap $TEST_SNAPINCR
                    
66log_must zfs send -i $TEST_SNAP $TEST_SNAPINCR > $TEST_STREAMINCR
                    
67
                    
74
                    
75log_must eval "zfs recv -F $TEST_RECV_FS < $TEST_STREAMINCR"
                    
76log_must diff -r /$TEST_SEND_FS /$TEST_RECV_FS
                    
                
canmount_002_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 150 lines
                    
50set -A dataset_pos \
                    
51	"$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTCTR" "$TESTPOOL/$TESTCLONE"
                    
52
                    
54	set -A dataset_neg \
                    
55		"$TESTPOOL/$TESTVOL" "$TESTPOOL/$TESTFS@$TESTSNAP" \
                    
56		"$TESTPOOL/$TESTVOL@$TESTSNAP"  "$TESTPOOL/$TESTCLONE1"
                    
58	set -A dataset_neg \
                    
59		"$TESTPOOL/$TESTFS@$TESTSNAP" "$TESTPOOL/$TESTVOL@$TESTSNAP"
                    
60fi
                    
85	fi
                    
86	if snapexists $TESTPOOL/$TESTVOL@$TESTSNAP ; then
                    
87		log_must zfs destroy -R $TESTPOOL/$TESTVOL@$TESTSNAP
                    
107log_must zfs snapshot $TESTPOOL/$TESTVOL@$TESTSNAP
                    
108log_must zfs clone $TESTPOOL/$TESTFS@$TESTSNAP $TESTPOOL/$TESTCLONE
                    
109log_must zfs clone $TESTPOOL/$TESTVOL@$TESTSNAP $TESTPOOL/$TESTCLONE1
                    
                
zpool_import_012_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 211 lines
                    
90	log_must zfs create $TESTPOOL/$TESTFS
                    
91	log_must zfs set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
                    
92
                    
107	log_must zfs set canmount=off $pool/$TESTFS/$TESTCTR
                    
108	log_must zfs set canmount=off $pool/$TESTFS/$TESTCTR/$TESTCTR1
                    
109	log_must zfs create $pool/$TESTFS/$TESTCTR/$TESTFS1
                    
109	log_must zfs create $pool/$TESTFS/$TESTCTR/$TESTFS1
                    
110	log_must zfs create $pool/$TESTFS/$TESTCTR/$TESTCTR1/$TESTFS1
                    
111	log_must zfs create $pool/$TESTFS/$TESTFS1
                    
112	log_must zfs snapshot $pool/$TESTFS/$TESTFS1@snap
                    
113	log_must zfs clone $pool/$TESTFS/$TESTFS1@snap $pool/$TESTCLONE1
                    
114done
                    
116typeset mount_fs="$TESTFS $TESTFS/$TESTFS1 $TESTCLONE1 \
                    
117		$TESTFS/$TESTCTR/$TESTFS1 $TESTFS/$TESTCTR/$TESTCTR1/$TESTFS1"
                    
118typeset nomount_fs="$TESTFS/$TESTCTR $TESTFS/$TESTCTR/$TESTCTR1"
                    
                
zpool_create_005_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 124 lines
                    
61#
                    
62for pool in $TESTPOOL2 $TESTPOOL1 $TESTPOOL; do
                    
63	poolexists $pool && destroy_pool $pool
                    
80for opt in "-R $TESTDIR1" "-m $TESTDIR1" \
                    
81	"-R $TESTDIR1 -m $TESTDIR1" "-m $TESTDIR1 -R $TESTDIR1"
                    
82do
                    
108			[[ "$mpt" != "$TESTDIR1/$TESTPOOL" ]] && \
                    
109				log_fail "$TESTPOOL is not mounted on $TESTDIR1/$TESTPOOL."
                    
110		else
                    
111			[[ ! -d ${TESTDIR1}$TESTDIR1 ]] && \
                    
112				log_fail "${TESTDIR1}$TESTDIR1 is not created automatically."
                    
113			[[ "$mpt" != "${TESTDIR1}$TESTDIR1" ]] && \
                    
113			[[ "$mpt" != "${TESTDIR1}$TESTDIR1" ]] && \
                    
114				log_fail "$TESTPOOL is not mounted on ${TESTDIR1}$TESTDIR1."
                    
115		fi
                    
                
zfs_receive_008_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 148 lines
                    
31
                    
32. $STF_SUITE/tests/functional/cli_root/cli_common.kshlib
                    
33
                    
60
                    
61	if datasetexists $TESTPOOL/$TESTFS; then
                    
62		log_must zfs destroy -Rf $TESTPOOL/$TESTFS
                    
63		log_must zfs create $TESTPOOL/$TESTFS
                    
64		log_must zfs set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
                    
65	fi
                    
73
                    
74typeset datasets="$TESTPOOL/$TESTFS $TESTPOOL"
                    
75typeset rst_fs=$TESTPOOL/$TESTFS/$TESTFS
                    
75typeset rst_fs=$TESTPOOL/$TESTFS/$TESTFS
                    
76typeset fbackup=$TEST_BASE_DIR/fbackup.$$
                    
77typeset tmp_out=$TEST_BASE_DIR/tmpout.$$
                    
                
zfs_share_001_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 149 lines
                    
49set -A fs \
                    
50    "$TESTDIR1" "$TESTPOOL/$TESTCTR/$TESTFS1" \
                    
51    "$TESTDIR2" "$TESTPOOL/$TESTFS-clone" \
                    
51    "$TESTDIR2" "$TESTPOOL/$TESTFS-clone" \
                    
52    "$TESTDIR" "$TESTPOOL/$TESTFS"
                    
53
                    
67
                    
68	datasetexists $TESTPOOL/$TESTFS-clone && \
                    
69		log_must zfs destroy -f $TESTPOOL/$TESTFS-clone
                    
70
                    
71	if snapexists "$TESTPOOL/$TESTFS@snapshot"; then
                    
72		log_must zfs destroy -f $TESTPOOL/$TESTFS@snapshot
                    
113log_must zfs snapshot $TESTPOOL/$TESTFS@snapshot
                    
114log_must zfs clone $TESTPOOL/$TESTFS@snapshot $TESTPOOL/$TESTFS-clone
                    
115log_must zfs set mountpoint=$TESTDIR2 $TESTPOOL/$TESTFS-clone
                    
                
nopwrite_negative.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 90 lines
                    
33verify_runnable "global"
                    
34origin="$TESTPOOL/$TESTFS"
                    
35log_onexit cleanup
                    
50log_must zfs set checksum=sha256 $origin/clone
                    
51dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \
                    
52    conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
                    
63log_must zfs clone $origin@a $origin/clone
                    
64dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \
                    
65    conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
                    
74log_must zfs clone -o compress=off $origin@a $origin/clone
                    
75dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \
                    
76    conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
                    
85log_must zfs clone -o checksum=fletcher4 $origin@a $origin/clone
                    
86dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \
                    
87    conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
                    
                
w32_symbuild.ksh git://anongit.freedesktop.org/git/xorg/test/xts.git/ | Korn Shell | 0 lines
                    
48	*.c)
                    
49		if test -z "$cfile"
                    
50		then
                    
59
                    
60if test -z "$cfile"
                    
61then
                    
                
w32_shlib_build.ksh git://anongit.freedesktop.org/git/xorg/test/xts.git/ | Korn Shell | 0 lines
                    
55libs=
                    
56while test $# -gt 0
                    
57do
                    
60		# note that patterns are case-insensitive in the MKS shell
                    
61		if test X$1 = X-o
                    
62		then
                    
84
                    
85if test -z "$ofiles" -o -z "$output"
                    
86then
                    
                
readonly_001_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 160 lines
                    
48{
                    
49	for dataset in $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL ; do
                    
50		snapexists ${dataset}@$TESTSNAP && \
                    
134log_must zfs snapshot $TESTPOOL/$TESTFS@$TESTSNAP
                    
135log_must zfs clone $TESTPOOL/$TESTFS@$TESTSNAP $TESTPOOL/$TESTCLONE
                    
136
                    
137if is_global_zone ; then
                    
138	log_must zfs snapshot $TESTPOOL/$TESTVOL@$TESTSNAP
                    
139	log_must zfs clone $TESTPOOL/$TESTVOL@$TESTSNAP $TESTPOOL/$TESTCLONE1
                    
139	log_must zfs clone $TESTPOOL/$TESTVOL@$TESTSNAP $TESTPOOL/$TESTCLONE1
                    
140	all_datasets="$TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL "
                    
141	all_datasets+="$TESTPOOL/$TESTCLONE $TESTPOOL/$TESTCLONE1"
                    
142else
                    
143	all_datasets="$TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTCLONE"
                    
144fi
                    
                
zfs_rename_007_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 155 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33. $STF_SUITE/tests/functional/cli_root/zfs_rename/zfs_rename.kshlib
                    
48{
                    
49	if datasetexists $TESTPOOL/$TESTFS ; then
                    
50		log_must zfs destroy -Rf $TESTPOOL/$TESTFS
                    
52	log_must zfs create $TESTPOOL/$TESTFS
                    
53	log_must zfs set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
                    
54
                    
82
                    
83fs=$TESTPOOL/$TESTFS/fs.$$
                    
84fsclone=$TESTPOOL/$TESTFS/fsclone.$$
                    
117if is_global_zone; then
                    
118	vol=$TESTPOOL/$TESTFS/vol.$$ ;	volclone=$TESTPOOL/$TESTFS/volclone.$$
                    
119	log_must zfs create -V 100M $vol
                    
                
cleanup.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 54 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33. $STF_SUITE/tests/functional/slog/slog.cfg
                    
40
                    
41if datasetexists $TESTPOOL ; then
                    
42	log_must zpool destroy -f $TESTPOOL
                    
43fi
                    
44if datasetexists $TESTPOOL2 ; then
                    
45	log_must zpool destroy -f $TESTPOOL2
                    
                
network.ksh git://github.com/geekcomputers/Shell.git | Korn Shell | 306 lines
                    
11# James Council 10.10.2002 (jamescouncil@yahoo.com)
                    
12#       - Added test for Cassini Gigabit-Ethernet card (ce_).
                    
13#       - Added test for GEM Gigabit-Ethernet (ge_)
                    
13#       - Added test for GEM Gigabit-Ethernet (ge_)
                    
14#       - Added test for eri Fast-Ethernet (eri_).
                    
15#       - Added "Ethernet Address" field.
                    
47
                    
48#---- Function to test that the user is root.
                    
49#
                    
59
                    
60#---- Function to test a Intel 82571-based ethernet controller port (i.e. ipge_).
                    
61#
                    
95
                    
96#---- Function to test a Cassini Gigabit-Ethernet port (i.e. ce_).
                    
97#
                    
                
submitQChem git://pkgs.fedoraproject.org/gabedit | Korn Shell | 110 lines
                    
59nameUser=$LOGNAME
                    
60if test ! -s "$filecom"
                    
61then
                    
                
zfs_written_property_001_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 230 lines
                    
50
                    
51datasets="$TESTPOOL/$TESTFS1 $TESTPOOL/$TESTFS1/$TESTFS2 \
                    
52    $TESTPOOL/$TESTFS1/$TESTFS2/$TESTFS3"
                    
69log_note "verify written property statistics for dataset"
                    
70log_must zfs create -p $TESTPOOL/$TESTFS1/$TESTFS2/$TESTFS3
                    
71for i in 1 2 3; do
                    
116before_written=$(get_prop written $TESTPOOL/$TESTFS1)
                    
117log_must rm /$TESTPOOL/$TESTFS1/testfile.3
                    
118snap3_size=0
                    
162before_clone=$(get_prop written $TESTPOOL/$TESTFS1)
                    
163log_must zfs clone $TESTPOOL/$TESTFS1@snap1 $TESTPOOL/$TESTFS1/snap1.clone
                    
164log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS1/snap1.clone/testfile bs=1M \
                    
219recursive_output=$(zfs get -p -r written@current $TESTPOOL | \
                    
220    grep -v $TESTFS1@ | grep -v $TESTFS2@ | grep -v $TESTFS3@ | \
                    
221    grep -v "VALUE" | grep -v "-")
                    
                
zfs_destroy_016_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 186 lines
                    
31{
                    
32	datasetexists $TESTPOOL/$TESTFS1 && \
                    
33	    log_must zfs destroy -R $TESTPOOL/$TESTFS1
                    
33	    log_must zfs destroy -R $TESTPOOL/$TESTFS1
                    
34	datasetexists $TESTPOOL/$TESTVOL && \
                    
35	    log_must zfs destroy -Rf $TESTPOOL/$TESTVOL
                    
40	for i in $snaps; do
                    
41		datasetexists $TESTPOOL/$TESTFS1@snap$i && \
                    
42		    log_must zfs destroy $TESTPOOL/$TESTFS1@snap$i
                    
42		    log_must zfs destroy $TESTPOOL/$TESTFS1@snap$i
                    
43		datasetexists $TESTPOOL/$TESTVOL@snap$i && \
                    
44		    log_must zfs destroy $TESTPOOL/$TESTVOL@snap$i
                    
179for i in 1 2 3 4 5; do
                    
180	log_must zfs clone $TESTPOOL/$TESTFS1@snap$i $TESTPOOL/$TESTFS1/clone$i
                    
181done
                    
                
zfs_create_003_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 69 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33. $STF_SUITE/tests/functional/cli_root/zfs_create/zfs_create.cfg
                    
56set -A options "" "-b 1k" "-b 1K" "-b 1024" "-b 1024b"
                    
57vol=$TESTPOOL/$TESTVOL
                    
58
                    
                
zpool_create_006_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 137 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33. $STF_SUITE/tests/functional/cli_root/zpool_create/zpool_create.shlib
                    
48{
                    
49	poolexists $TESTPOOL1 && destroy_pool $TESTPOOL1
                    
50	poolexists $TESTPOOL && destroy_pool $TESTPOOL
                    
56
                    
57create_pool $TESTPOOL $DISKS
                    
58mntpnt=$(get_prop mountpoint $TESTPOOL)
                    
121while ((i < ${#valid_args[@]})); do
                    
122	log_must zpool create $TESTPOOL1 ${valid_args[$i]}
                    
123	log_must zpool destroy -f $TESTPOOL1
                    
129while ((i < ${#forced_args[@]})); do
                    
130	log_mustnot zpool create $TESTPOOL1 ${forced_args[$i]}
                    
131	log_must zpool create -f $TESTPOOL1 ${forced_args[$i]}
                    
                
zfs_unmount_008_neg.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 146 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33
                    
76
                    
77fs=$TESTPOOL/$TESTFS
                    
78vol=$TESTPOOL/vol.$$
                    
78vol=$TESTPOOL/vol.$$
                    
79snap=$TESTPOOL/$TESTFS@snap.$$
                    
80set -A badargs "A" "-A" "F" "-F" "-" "-x" "-?"
                    
92
                    
93# Testing bad options
                    
94for arg in ${badargs[@]}; do
                    
97
                    
98# Testing invalid datasets
                    
99for ds in $snap $vol "blah"; do
                    
                
zpool_expand_001_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 167 lines
                    
33. $STF_SUITE/include/libtest.shlib
                    
34. $STF_SUITE/tests/functional/cli_root/zpool_expand/zpool_expand.cfg
                    
35
                    
58{
                    
59	poolexists $TESTPOOL1 && destroy_pool $TESTPOOL1
                    
60
                    
88	# The -f is required since we're mixing disk and file vdevs.
                    
89	log_must zpool create -f -o autoexpand=on $TESTPOOL1 $type \
                    
90	    $DEV1 $DEV2 $DEV3
                    
117
                    
118	typeset expand_size=$(get_pool_prop size $TESTPOOL1)
                    
119	typeset zfs_expand_size=$(get_prop avail $TESTPOOL1)
                    
120
                    
121	log_note "$TESTPOOL1 $type has previous size: $prev_size and " \
                    
122	    "expanded size: $expand_size"
                    
                
zvol_misc_004_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 117 lines
                    
51
                    
52volsize=$(zfs get -H -o value volsize $TESTPOOL/$TESTVOL)
                    
53
                    
67	for snap in snap0 snap1 ; do
                    
68		if datasetexists $TESTPOOL/$TESTVOL@$snap ; then
                    
69			log_must zfs destroy $TESTPOOL/$TESTVOL@$snap
                    
71	done
                    
72	zfs set volsize=$volsize $TESTPOOL/$TESTVOL
                    
73}
                    
94
                    
95voldev=${ZVOL_DEVDIR}/$TESTPOOL/$TESTVOL
                    
96savedumpdev=$(get_dumpdevice)
                    
99safe_dumpadm $voldev
                    
100log_must is_zvol_dumpified $TESTPOOL/$TESTVOL
                    
101
                    
                
refreserv_002_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 114 lines
                    
56	fi
                    
57	log_must zfs destroy -rf $TESTPOOL/$TESTFS
                    
58	log_must zfs create $TESTPOOL/$TESTFS
                    
58	log_must zfs create $TESTPOOL/$TESTFS
                    
59	log_must zfs set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
                    
60}
                    
88
                    
89log_must zfs create $TESTPOOL/$TESTFS/subfs
                    
90
                    
92if is_global_zone; then
                    
93	datasets="$TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTFS/subfs"
                    
94else
                    
94else
                    
95	datasets="$TESTPOOL/$TESTFS $TESTPOOL/$TESTFS/subfs"
                    
96fi
                    
                
zfs_clone_001_neg.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 126 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33
                    
58typeset target1=$TESTPOOL/$TESTFS1
                    
59typeset target2=$TESTPOOL/$TESTCTR1/$TESTFS1
                    
60typeset targets="$target1 $target2 $NONEXISTPOOLNAME/$TESTFS"
                    
62set -A args "" \
                    
63	"$TESTPOOL/$TESTFS@blah $target1" "$TESTPOOL/$TESTVOL@blah $target1" \
                    
64	"$TESTPOOL/$TESTFS@blah* $target1" "$TESTPOOL/$TESTVOL@blah* $target1" \
                    
66	"$SNAPFS /$target1" "$SNAPFS1 /$target1" \
                    
67	"$SNAPFS $TESTPOOL//$TESTFS1" "$SNAPFS1 $TESTPOOL//$TESTFS1" \
                    
68	"$SNAPFS $NONEXISTPOOLNAME/$TESTFS" "$SNAPFS1 $NONEXISTPOOLNAME/$TESTFS" \
                    
81	"$SNAPFS $TESTPOOL" "$SNAPFS1 $TESTPOOL" \
                    
82	"$SNAPFS $TESTPOOL/$TESTCTR" "$SNAPFS $TESTPOOL/$TESTFS" \
                    
83	"$SNAPFS1 $TESTPOOL/$TESTCTR" "$SNAPFS1 $TESTPOOL/$TESTFS"
                    
                
zfs_send_002_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 139 lines
                    
103
                    
104fs=$TESTPOOL/$TESTFS
                    
105snap=$fs@$TESTSNAP
                    
105snap=$fs@$TESTSNAP
                    
106ctr=$TESTPOOL/$TESTCTR
                    
107if is_global_zone; then
                    
110	ds_path=$ctr/${ZONE_CTR}0
                    
111	rstfs=$ds_path/$TESTFS
                    
112fi
                    
114snapdir=".zfs/snapshot/$TESTSNAP"
                    
115origfile=$TESTDIR/$TESTFILE1
                    
116rstfile=/$rstfs/$TESTFILE1
                    
116rstfile=/$rstfs/$TESTFILE1
                    
117origsnapfile=$TESTDIR/$snapdir/$TESTFILE1
                    
118rstsnapfile=/$rstfs/$snapdir/$TESTFILE1
                    
                
zfs_unshare_002_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 185 lines
                    
67
                    
68	if datasetexists "$TESTPOOL/$TESTCLONE"; then
                    
69		log_must zfs destroy -f $TESTPOOL/$TESTCLONE
                    
71
                    
72	if snapexists "$TESTPOOL/$TESTFS2@snapshot"; then
                    
73		log_must zfs destroy -f $TESTPOOL/$TESTFS2@snapshot
                    
75
                    
76	if datasetexists "$TESTPOOL/$TESTFS2"; then
                    
77		log_must zfs destroy -f $TESTPOOL/$TESTFS2
                    
119    "$TESTDIR" "$TESTPOOL/$TESTFS" \
                    
120    "$TESTDIR1" "$TESTPOOL/$TESTCTR/$TESTFS1" \
                    
121    "$TESTDIR2" "$TESTPOOL/$TESTCLONE"
                    
127log_must zfs snapshot $TESTPOOL/$TESTFS2@snapshot
                    
128log_must zfs clone $TESTPOOL/$TESTFS2@snapshot $TESTPOOL/$TESTCLONE
                    
129log_must zfs set mountpoint=$TESTDIR2 $TESTPOOL/$TESTCLONE
                    
                
zfs_rollback_001_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 174 lines
                    
93
                    
94	all_snap="$TESTSNAP $TESTSNAP1 $TESTSNAP2"
                    
95	all_clone="$TESTCLONE $TESTCLONE1 $TESTCLONE2"
                    
100		1) snap_point=$TESTSNAP
                    
101		   exist_snap=$TESTSNAP
                    
102		   [[ $opt == *R* ]] && exist_clone=$TESTCLONE
                    
103		   ;;
                    
104		2) snap_point=$TESTSNAP1
                    
105		   exist_snap="$TESTSNAP $TESTSNAP1"
                    
105		   exist_snap="$TESTSNAP $TESTSNAP1"
                    
106		   [[ $opt == *R* ]] && exist_clone="$TESTCLONE $TESTCLONE1"
                    
107		   ;;
                    
129			log_must mount \
                    
130				$ZVOL_DEVDIR/$TESTPOOL/$TESTVOL $TESTDIR1
                    
131		else
                    
                
zfs_receive_003_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 93 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33
                    
62ibackup=$TEST_BASE_DIR/ibackup.$$
                    
63fs=$TESTPOOL/$TESTFS; snap1=$fs@snap1; snap2=$fs@snap2
                    
64
                    
                
zpool_create_011_neg.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 131 lines
                    
51{
                    
52	for pool in $TESTPOOL $TESTPOOL1
                    
53	do
                    
83fi
                    
84create_pool $TESTPOOL $DISK0
                    
85
                    
86#
                    
87# Set up the testing scenarios parameters
                    
88#
                    
96	"$TESTPOOL1 raidz mirror $mirror1 mirror $mirror2" \
                    
97	"$TESTPOOL1 raidz1 mirror $mirror1 mirror $mirror2" \
                    
98	"$TESTPOOL1 mirror $diff_size_dev" \
                    
119	log_must zpool create -f $TESTPOOL3 $DISK1
                    
120	log_must zpool destroy -f $TESTPOOL3
                    
121
                    
                
zpool_create_021_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 93 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33. $STF_SUITE/tests/functional/cli_root/zfs_create/zfs_create_common.kshlib
                    
33. $STF_SUITE/tests/functional/cli_root/zfs_create/zfs_create_common.kshlib
                    
34. $STF_SUITE/tests/functional/cli_root/zpool_create/zpool_create.shlib
                    
35
                    
50{
                    
51	datasetexists $TESTPOOL && destroy_pool $TESTPOOL
                    
52}
                    
81while (( $i < ${#RW_FS_PROP[*]} )); do
                    
82	log_must zpool create -O ${RW_FS_PROP[$i]} -f $TESTPOOL $DISKS
                    
83	datasetexists $TESTPOOL || \
                    
83	datasetexists $TESTPOOL || \
                    
84		log_fail "zpool create $TESTPOOL fail."
                    
85	propertycheck $TESTPOOL ${RW_FS_PROP[i]} || \
                    
                
zfs_rollback_004_neg.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 86 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33. $STF_SUITE/tests/functional/cli_root/zfs_rollback/zfs_rollback_common.kshlib
                    
52
                    
53	for ds in $TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL; do
                    
54		if snapexists ${ds}@$TESTSNAP; then
                    
54		if snapexists ${ds}@$TESTSNAP; then
                    
55			log_must zfs destroy ${ds}@$TESTSNAP
                    
56		fi
                    
65
                    
66for ds in $TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL; do
                    
67	log_must zfs snapshot ${ds}@$TESTSNAP
                    
69
                    
70for ds in $TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL; do
                    
71	for opt in "" "-r" "-R" "-f" "-rR" "-rf" "-rRf"; do
                    
                
zpool_import_010_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 92 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33. $STF_SUITE/tests/functional/cli_root/zpool_import/zpool_import.cfg
                    
91
                    
92log_pass "'zpool -D -a' test passed."
                    
93
                    
                
mmap_read_001_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 57 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33. $STF_SUITE/tests/functional/mmap/mmap.cfg
                    
50log_must chmod 777 $TESTDIR
                    
51log_must readmmap $TESTDIR/test-read-file
                    
52log_must zfs unmount $TESTPOOL/$TESTFS
                    
54typeset dir=$(get_device_dir $DISKS)
                    
55verify_filesys "$TESTPOOL" "$TESTPOOL/$TESTFS" "$dir"
                    
56
                    
                
replacement_003_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 161 lines
                    
132log_must zfs create $TESTPOOL1/$TESTFS1
                    
133log_must zfs set mountpoint=$TESTDIR1 $TESTPOOL1/$TESTFS1
                    
134
                    
134
                    
135detach_test $TESTDIR/$TESTFILE1.1
                    
136
                    
136
                    
137zpool iostat -v $TESTPOOL1 | grep "$TESTDIR/$TESTFILE1.1"
                    
138if [[ $? -eq 0 ]]; then
                    
148	log_must zfs create $TESTPOOL1/$TESTFS1
                    
149	log_must zfs set mountpoint=$TESTDIR1 $TESTPOOL1/$TESTFS1
                    
150
                    
152
                    
153	zpool iostat -v $TESTPOOL1 | grep "$TESTDIR/$TESTFILE1.1"
                    
154	if [[ $? -ne 0 ]]; then
                    
                
posix_002_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 76 lines
                    
27
                    
28. $STF_SUITE/include/libtest.shlib
                    
29. $STF_SUITE/tests/functional/acl/acl_common.kshlib
                    
39# STRATEGY:
                    
40#	1. Test access to directory (mode=-wx)
                    
41#	   a. Can create file in dir
                    
47
                    
48# Test access to DIRECTORY
                    
49log_note "Testing access to DIRECTORY"
                    
49log_note "Testing access to DIRECTORY"
                    
50log_must mkdir $TESTDIR/dir.0
                    
51# Eliminate access by "other" including our test group,
                    
52# we want access controlled only by the ACLs.
                    
53log_must chmod 700 $TESTDIR/dir.0
                    
54log_must setfacl -m g:$ZFS_ACL_STAFF_GROUP:wx $TESTDIR/dir.0
                    
                
zfs_share_011_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 89 lines
                    
50
                    
51	log_must zfs set sharenfs=off $TESTPOOL/$TESTFS
                    
52	unshare_fs $TESTPOOL/$TESTFS
                    
53
                    
54	if snapexists "$TESTPOOL/$TESTFS@snapshot"; then
                    
55		log_must zfs destroy -f $TESTPOOL/$TESTFS@snapshot
                    
57
                    
58	if datasetexists $TESTPOOL/$TESTFS/fs2 ; then
                    
59		log_must zfs destroy -f $TESTPOOL/$TESTFS/fs2
                    
69# unmount fails will not unshare the shared filesystem
                    
70log_must zfs set sharenfs=on $TESTPOOL/$TESTFS
                    
71log_must is_shared $TESTDIR
                    
72if cd $TESTDIR ; then
                    
73	log_mustnot zfs umount $TESTPOOL/$TESTFS
                    
74else
                    
                
zfs_rollback_003_neg.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 84 lines
                    
31
                    
32. $STF_SUITE/include/libtest.shlib
                    
33. $STF_SUITE/tests/functional/cli_root/zfs_rollback/zfs_rollback_common.kshlib
                    
65#
                    
66create_snapshot $TESTPOOL/$TESTFS $TESTSNAP
                    
67create_snapshot $TESTPOOL/$TESTFS $TESTSNAP1
                    
70#
                    
71log_mustnot zfs rollback $TESTPOOL/$TESTFS@$TESTSNAP
                    
72log_mustnot zfs rollback -f $TESTPOOL/$TESTFS@$TESTSNAP
                    
75#
                    
76create_clone $TESTPOOL/$TESTFS@$TESTSNAP1 $TESTPOOL/$TESTCLONE1
                    
77
                    
79#
                    
80log_mustnot zfs rollback -r $TESTPOOL/$TESTFS@$TESTSNAP
                    
81log_mustnot zfs rollback -rf $TESTPOOL/$TESTFS@$TESTSNAP
                    
                
zfs_snapshot_009_pos.ksh git://github.com/zfsonlinux/zfs.git | Korn Shell | 115 lines
                    
44
                    
45invalid_args=("$TESTPOOL/$TESTFS1@now $TESTPOOL/$TESTFS2@now \
                    
46    $TESTPOOL/$TESTFS@blah?" "$TESTPOOL/$TESTFS1@blah* \
                    
52    $TESTPOOL/$TESTFS3@snap" "$TESTPOOL/$TESTFS1@$SNAPSHOT_XXX \
                    
53    $TESTPOOL/$TESTFS2@2 $TESTPOOL/$TESTFS3@s")
                    
54
                    
106log_must zfs create $TESTPOOL/TESTFS4
                    
107log_must zfs create -p $TESTPOOL/$TESTFS3/TESTFSA$DATASET_XXX/TESTFSB
                    
108log_mustnot zfs snapshot -r $TESTPOOL/$TESTFS1@snap1 $TESTPOOL/$TESTFS2@snap1 \
                    
108log_mustnot zfs snapshot -r $TESTPOOL/$TESTFS1@snap1 $TESTPOOL/$TESTFS2@snap1 \
                    
109        $TESTPOOL/$TESTFS3@snap1 $TESTPOOL/TESTFS4@snap1
                    
110log_must zfs rename $TESTPOOL/$TESTFS3/TESTFSA$DATASET_XXX \
                    
112log_must zfs snapshot -r $TESTPOOL/$TESTFS1@snap1 $TESTPOOL/$TESTFS2@snap1 \
                    
113        $TESTPOOL/$TESTFS3@snap1 $TESTPOOL/TESTFS4@snap1
                    
114
                    
                
 

Source

Language