PageRenderTime 1135ms queryFilters 2ms Sphinxql 932ms app.CodeModel.GetByIds 177ms findMatchingLines 13ms GetByIds 190ms meta 0ms repositoryFilters 35ms languageFilters 1ms sourceFilters 5ms

5,320 results for 'test lang:BourneShell' (1135 ms)

Source

Language

Repository

tcm.ksh https://bitbucket.org/illumos/illumos-stc | Korn Shell | 734 lines
61#	This file sources tetapi.sh which contains the shell API functions.
62#	Test purposes written as separate shell scripts must also source
63#	tetapi.sh in order to use those functions.
69#	a variable whose name is the same as that of the component.
70#	Each such variable should contain the names of the test purposes
71#	associated with each invocable component; for example:
72#		iclist="ic1 ic2"
73#		ic1="test1-1 test1-2 test1-3"
74#		ic2="test2-1 test2-2"
184
185tet_thistest=""; export tet_thistest
186
236TET_STDERR=$TET_PRIVATE_TMP/tet_stderr; readonly TET_STDERR; export TET_STDERR
237TET_TESTS=$TET_PRIVATE_TMP/tet_tests; readonly TET_TESTS
238TET_TMPRES=$TET_PRIVATE_TMP/tet_tmpres; readonly TET_TMPRES; export TET_TMPRES
tetdapi.ksh https://bitbucket.org/illumos/illumos-stc | Korn Shell | 1,378 lines
50# NAME:		Distributed Korn Shell API Support Routines
51# PRODUCT:	TET (Test Environment Toolkit)
52# AUTHOR:	Andrew Dingwall, UniSoft Ltd.
182# tet_delete - mark a test purpose as deleted, or undelete it
183# usage: tet_delete test_name [reason ...]
184tet_delete()
269	typeset -i tet_l40_sig=0
270	typeset -i tet_l40_testnum=${TET_TESTNUM:?}
271	typeset tet_l40_unresolved=yes
282		tet_api_init_child
283		tet_kshapid_thistest $tet_l40_testnum
284		$tet_l40_childfunc
882# tet_kshapid_thistest - send a tet_thistest request to the helper process
883# usage: tet_kshapid_thistest testnum
884tet_kshapid_thistest()
dtcm.ksh https://bitbucket.org/illumos/illumos-stc | Korn Shell | 1,532 lines
80#		iclist="ic1 ic2"
81#		ic1="test1-1 test1-2 test1-3"
82#		ic2="test2-1 test2-2"
466# usage: tet_tpstart icno tpno testnum sync_vote
467# (where testnum is the absolute test purpose number for this TP)
468#
851# When this function returns 0, the absolute test purpose number is
852# returned in the global variable TET_TESTNUM and the name of the test
853# purpose function is returned in the global variable TET_TESTNAME.
881
882	# if tpnum is defined in this IC, bump up testnum and set testname
883	if test $tet_l33_tpnum -le $#
1467		then
1468			# TET_TESTNUM and TET_TESTNAME are set
1469			# by tet_gettestnum
ctiutils.ksh https://bitbucket.org/illumos/illumos-stc | Korn Shell | 821 lines
30#	cti_expecttest failtext command pattern action [pattern action ...]
31#	cti_cancel test_num [msg ...] [test result]
32#	cti_cancelall [msg ...] [test result]
67#
68#       cti_cancel() cancels the dedicated test purpose in the current test
69#       case from execution with the test result that user gives. It will work
727#
728# Common test function for test purposes which use expect. Like cti_runexpect()
729# except that this is written with path tracing and is designed to do the
776
777	cti_report "Canceling test $test_num: $cticancel_msg"
778	#
801#
802# Cancels all tests by replace the tests functions with cancel_ic function
803#
kmfcfg_create_005.ksh https://bitbucket.org/illumos/illumos-stc | Korn Shell | 254 lines
44#	1) Backup test.xml to test.xml.bak
45#	2) Run "kmfcfg create dbfile=test.xml policy=testpolicy" with ekunames 
46#	   option and save the output to a temp variable
47#	3) Check the return value of command
48#	4) Verify the new policy with "kmfcfg list dbfile=test.xml policy=testpolicy"
49#	5) Restore the test.xml to the original one
51#	   values 
52#	7) Run "kmfcfg create dbfile=test.xml policy=testpolicy" with ekuoids 
53#	   option, repeat 3),4),5)
147		jnl_result $STF_FAIL
148		cp test.xml.bak $test_db
149		rm -f test.xml.bak
247# Restore test.xml
248cp test.xml.bak $test_db
249
kmfcfg_create_003.ksh https://bitbucket.org/illumos/illumos-stc | Korn Shell | 301 lines
44#	1) Backup test.xml to test.xml.bak
45#	2) Run "kmfcfg create dbfile=test.xml policy=testpolicy" with crl 
46#	   options and save the output to a temp variable
47#	3) Check the return value of command
48#	4) Verify the new policy with "kmfcfg list dbfile=test.xml policy=testpolicy"
49#	5) Restore the test.xml to the original one
71
72test_db="/var/tmp/test.xml"
73cmd="/usr/bin/kmfcfg"
133# Restore test dbfile
134cp test.xml.bak $test_db
135e=$?
285# Restore test dbfile
286cp test.xml.bak $test_db
287e=$?
kmfcfg_create_002.ksh https://bitbucket.org/illumos/illumos-stc | Korn Shell | 405 lines
44#	1) Backup test.xml to test.xml.bak
45#	2) Run "kmfcfg create dbfile=test.xml policy=testpolicy" with ocsp 
46#	   options and save the output to a temp variable
47#	3) Check the return value of command
48#	4) Verify the new policy with "kmfcfg list dbfile=test.xml policy=testpolicy"
49#	5) Restore the test.xml to the original one
71
72test_db="/var/tmp/test.xml"
73cmd="/usr/bin/kmfcfg"
188# Restore test dbfile
189cp test.xml.bak $test_db
190e=$?
389# Restore test dbfile
390cp test.xml.bak $test_db
391e=$?
clntspc_mnt06.ksh https://bitbucket.org/illumos/illumos-stc | Korn Shell | 487 lines
28#
29# NFSv4 client name space test - mounting symlink
30#
38# Source for common functions
39. $TESTROOT/testsh
40
41# check for root to run 
42is_root $NAME "NFSv4 name space tests (mount symlink)."
43
61
62# Start test assertions here
63# ----------------------------------------------------------------------
72    if [ $allunsupp -eq 1 ]; then
73	echo "\t Test UNSUPPORTED"
74	return $FAIL
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
33# and started.  Two apps (one with a service connection and one without) are
34# deployed to the components and started.  The test then bounces the server and
35# queries the state of the components and service assemblies.  The SUs deployed
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
47
48# start our test domain
49start_domain
runtime-ui-00004.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 109 lines
48echo install the components
49$JBISE_ANT -Djbi.install.file=$JV_SVC_TEST_CLASSES/dist/test-component.jar install-component
50$JBISE_ANT -Djbi.install.file=$JV_SVC_TEST_CLASSES/dist/test-component1.jar install-component
56echo set some application variables
57$JBISE_ANT -Djbi.component.name=test-component -Djbi.app.variables.file=$JV_SVC_TEST_CLASSES/testdata/test-component-app-var.properties create-application-variable
58$JBISE_ANT -Djbi.component.name=test-component1 -Djbi.app.variables.file=$JV_SVC_TEST_CLASSES/testdata/test-component1-app-var.properties create-application-variable
60echo set some application configurations
61$JBISE_ANT -Djbi.component.name=test-component -Djbi.app.config.params.file=$JV_SVC_TEST_CLASSES/testdata/test-component-app-config1.properties -Djbi.app.config.name=MyAppConfig1 create-application-configuration
62$JBISE_ANT -Djbi.component.name=test-component -Djbi.app.config.params.file=$JV_SVC_TEST_CLASSES/testdata/test-component-app-config2.properties -Djbi.app.config.name=MyAppConfig2 create-application-configuration
62$JBISE_ANT -Djbi.component.name=test-component -Djbi.app.config.params.file=$JV_SVC_TEST_CLASSES/testdata/test-component-app-config2.properties -Djbi.app.config.name=MyAppConfig2 create-application-configuration
63$JBISE_ANT -Djbi.component.name=test-component1 -Djbi.app.config.params.file=$JV_SVC_TEST_CLASSES/testdata/test-component1-app-config3.properties -Djbi.app.config.name=MyAppConfig3 create-application-configuration
64
79echo deploy the SA with WSDL 2.0
80$JBISE_ANT -Djbi.deploy.file=$JV_SVC_TEST_CLASSES/dist/test-sa-wsdl20.jar deploy-service-assembly
81
jbiadmin01500.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 110 lines
49echo install the bad component test-component
50asadmin install-jbi-component --terse=false -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT $JV_SVC_TEST_CLASSES/dist/bad-test-component.jar
51installComponentDelay
51installComponentDelay
52asadmin install-jbi-component --terse=false -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT --target instance1 $JV_SVC_TEST_CLASSES/dist/bad-test-component.jar
53installComponentDelay
71#copy the workspace settings file for future checking
72cp $JBI_DOMAIN_ROOT/jbi/components/test-component/install_root/workspace/settings.txt  $SVC_TEST_CLASSES/jbiadmin01500-CAS-settings.txt
73cp $JBI_DOMAIN_ROOT/../../nodeagents/agent1/instance1/jbi/components/test-component/install_root/workspace/settings.txt  $SVC_TEST_CLASSES/jbiadmin01500-instance1-settings.txt
79echo verify the workspace dir has been preserved in server 
80diff $JBI_DOMAIN_ROOT/jbi/components/test-component/install_root/workspace/settings.txt  $SVC_TEST_CLASSES/jbiadmin01500-CAS-settings.txt 2>&1
81
82echo verify the workspace dir has been preserved in instance1
83diff $JBI_DOMAIN_ROOT/../../nodeagents/agent1/instance1/jbi/components/test-component/install_root/workspace/settings.txt  $SVC_TEST_CLASSES/jbiadmin01500-instance1-settings.txt 2>&1
84
jbiadmin00015.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 84 lines
52echo deploy SA deployment - will be partial success because su1 is deployed and su2 is not deployed
53asadmin deploy-jbi-service-assembly --target=instance1 --terse=false -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT $JV_SVC_TEST_CLASSES/dist/test-sa-for-redeploy.jar
54
58echo redeploy SA - this would fail because SA contents are not identical
59asadmin deploy-jbi-service-assembly --terse=false -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT $JV_SVC_TEST_CLASSES/dist/test-sa-for-redeploy-not-identical.jar
60
67echo install the corrected component with the same name
68asadmin install-jbi-component --target=instance1 --terse=false -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT $JV_SVC_TEST_CLASSES/dist/test-component2-corrected.jar
69
70echo redeploy the sa - redeploy after partial deploy
71asadmin deploy-jbi-service-assembly --target=instance1 --terse=false -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT $JV_SVC_TEST_CLASSES/dist/test-sa-for-redeploy.jar
72
73echo redeploy the sa - redeploy after successful deploy
74asadmin deploy-jbi-service-assembly --target=instance1 --terse=false -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT $JV_SVC_TEST_CLASSES/dist/test-sa-for-redeploy.jar
75
jbiadmin00014.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 84 lines
52echo deploy SA deployment - will be partial success because su1 is deployed and su2 is not deployed
53asadmin deploy-jbi-service-assembly --terse=false -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT $JV_SVC_TEST_CLASSES/dist/test-sa-for-redeploy.jar
54
58echo redeploy SA - this would fail because SA contents are not identical
59asadmin deploy-jbi-service-assembly --terse=false -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT $JV_SVC_TEST_CLASSES/dist/test-sa-for-redeploy-not-identical.jar
60
67echo install the corrected component with the same name
68asadmin install-jbi-component --terse=false -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT $JV_SVC_TEST_CLASSES/dist/test-component2-corrected.jar
69
70echo redeploy the sa - redeploy after partial deploy
71asadmin deploy-jbi-service-assembly --terse=false -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT $JV_SVC_TEST_CLASSES/dist/test-sa-for-redeploy.jar
72
73echo redeploy the sa - redeploy after successful deploy
74asadmin deploy-jbi-service-assembly --terse=false -u $AS_ADMIN_USER $ASADMIN_PW_OPTS --port $ASADMIN_PORT $JV_SVC_TEST_CLASSES/dist/test-sa-for-redeploy.jar
75
file00008.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 92 lines
34
35$JBI_ANT -Djbi.install.file=$FILEBINDING_BLD_DIR/testengine/testengine.jar install-component
36
36
37# start out tests tests
38
56
57cp $FILEBINDING_BLD_DIR/test/sample_files/inout.xml $FILEBINDING_BLD_DIR/test/input/transforminout
58
67
68cp $FILEBINDING_BLD_DIR/test/sample_files/inonly.xml $FILEBINDING_BLD_DIR/test/input/transforminonly
69
78
79cp $FILEBINDING_BLD_DIR/test/sample_files/robustinonly.xml $FILEBINDING_BLD_DIR/test/input/transformrobustinonly
80
file00007.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 58 lines
36rm -rf $FILEBINDING_BLD_DIR/test/deploy
37cp -R $FILEBINDING_REGRESS_DIR/test/deploy $FILEBINDING_BLD_DIR/test
38rm -rf $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/CVS
38rm -rf $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/CVS
39rm -rf $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/META-INF/CVS
40rm -rf $FILEBINDING_BLD_DIR/test/deploy/CVS
40rm -rf $FILEBINDING_BLD_DIR/test/deploy/CVS
41rm -rf $FILEBINDING_BLD_DIR/test/deploy/META-INF/CVS
42rm -f $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/endpoints_tokens.xml
42rm -f $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/endpoints_tokens.xml
43sed -e "s#FILEBINDING_BLD_DIR#$FILEBINDING_BLD_DIR#g" $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/endpoints11_tokens.wsdl > $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/endpoints.wsdl
44sed -e "s#ARTIFACT#WSDL11#g" $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/META-INF/jbi_tokens.xml> $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/META-INF/jbi.xml
53
54$JBI_ANT -Djbi.deploy.file=$FILEBINDING_BLD_DIR/test/deploy/filetestdeploy.zip deploy-service-assembly
55
file00005.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 123 lines
47
48$JBI_ANT -Djbi.install.file=$FILEBINDING_BLD_DIR/testengine/testengine.jar install-component
49
49
50# start out tests tests
51
81
82cp $FILEBINDING_BLD_DIR/test/sample_files/inout.xml $FILEBINDING_BLD_DIR/test/input/transforminout
83
92
93cp $FILEBINDING_BLD_DIR/test/sample_files/inonly.xml $FILEBINDING_BLD_DIR/test/input/transforminonly
94
103
104cp $FILEBINDING_BLD_DIR/test/sample_files/robustinonly.xml $FILEBINDING_BLD_DIR/test/input/transformrobustinonly
105
file00004.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 58 lines
36rm -rf $FILEBINDING_BLD_DIR/test/deploy
37cp -R $FILEBINDING_REGRESS_DIR/test/deploy $FILEBINDING_BLD_DIR/test
38rm -rf $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/CVS
38rm -rf $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/CVS
39rm -rf $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/META-INF/CVS
40rm -rf $FILEBINDING_BLD_DIR/test/deploy/CVS
40rm -rf $FILEBINDING_BLD_DIR/test/deploy/CVS
41rm -rf $FILEBINDING_BLD_DIR/test/deploy/META-INF/CVS
42rm -f $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/endpoints_tokens.xml
42rm -f $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/endpoints_tokens.xml
43sed -e "s#FILEBINDING_BLD_DIR#$FILEBINDING_BLD_DIR#g" $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/endpoints_tokens.wsdl > $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/endpoints.wsdl
44sed -e "s#ARTIFACT#WSDL20#g" $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/META-INF/jbi_tokens.xml> $FILEBINDING_BLD_DIR/test/deploy/filebindingASA/META-INF/jbi.xml
53
54$JBI_ANT -Djbi.deploy.file=$FILEBINDING_BLD_DIR/test/deploy/filetestdeploy.zip deploy-service-assembly
55
file00001.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 69 lines
29#
30#create a JBI test installation and start it up
31echo Starting framework for tests
35
36#remove our old test installations BEFORE we restart the appserver:
37rm -rf $JBI_DOMAIN_ROOT/jbi/bindings/SunFileBinding
39rm -rf $JBI_DOMAIN_ROOT/jbi/tempdeploy
40rm -rf $JBI_DOMAIN_ROOT/jbi/engines/TESTENGINE_FOR_FILEBINDING
41#remove "pre-loaded" scaffolded installations:
47
48rm -rf $FILEBINDING_BLD_DIR/test/input
49rm -rf $FILEBINDING_BLD_DIR/test/output
62
63cp $FILEBINDING_REGRESS_DIR/test/sample_files/* $FILEBINDING_BLD_DIR/test/sample_files
64chmod +w $FILEBINDING_BLD_DIR/test/sample_files/*
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  
199    echo "-------------------------------------------------------------------"
200    echo " Building and packaging the test simple test engine with endpoints"
201    echo "-------------------------------------------------------------------"
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#-------------------------------------------------------------------------
sample00001.ksh https://bitbucket.org/openesb/openesb-core.git | Korn Shell | 143 lines
31#
32# This test installs and runs the JBI component examples that are posted on
33# the open-esb web site:
51. ./regress_defs.ksh
52my_test_domain=JBITest
53. $SRCROOT/antbld/regress/common_defs.ksh
92
93sed -f $JV_SVC_BLD/testproperties.sed $SAMPLE_HOME/MyBinding/test/java/bindingtest/test.properties > bindingtest.properties
94mv bindingtest.properties $SAMPLE_HOME/MyBinding/test/java/bindingtest/test.properties
109$ANT_HOME/bin/ant install > $JV_SVC_BLD/MyEngine.install.log
110$ANT_HOME/bin/ant test > $JV_SVC_BLD/MyEngine.test.log
111
114$ANT_HOME/bin/ant install > $JV_SVC_BLD/MyBinding.install.log
115$ANT_HOME/bin/ant test > $JV_SVC_BLD/MyBinding.test.log
116
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21