1 #!/usr/bin/ksh
2
3 #
4 # This file and its contents are supplied under the terms of the
5 # Common Development and Distribution License ("CDDL"), version 1.0.
6 # You may only use this file in accordance with the terms of version
7 # 1.0 of the CDDL.
8 #
9 # A full copy of the text of the CDDL should have accompanied this
10 # source. A copy of the CDDL is also available via the Internet at
11 # http://www.illumos.org/license/CDDL.
12 #
13
14 #
15 # Define necessary environments and config variables here
16 # prior to invoke TET test runner 'run_test'
17 #
18 export TET_ROOT=/opt/SUNWstc-tetlite
19 export CTI_ROOT=$TET_ROOT/contrib/ctitools
20 export TET_SUITE_ROOT=/opt
21 PATH=$PATH:$CTI_ROOT/bin:/opt/SUNWstc-genutils/bin
22 export PATH
23 export SCRATCH_DIR=/var/tmp
24
25 #
26 # Test suite wide configurations
27 #
28 export report_only="FALSE"
29 export verbose="FALSE"
30 export setup_once="TRUE"
31
32 export TESTDIR=/share_tests # no default as promised so set here
33 #export ZFSPOOL=
34 #export SHR_TMPDIR= # default to /var/tmp/share
35
36 #
37 # Configure the test by using run_test (see README)
38 #
39 run_test sharefs-tests configure
40
41 #
42 # To run entire suite
43 #
44 run_test -U /var/tmp/test_results/sharefs-tests sharefs-tests $1
45
46 #
47 # To run component sharemgr
48 #
49 #run_test sharefs-tests sharemgr
50
51 #
52 # To run individual testcase
53 #
54 #run_test sharefs-tests sharemgr/create:3
55
56 #
57 # Start with clean test environment
58 #
59 run_test sharefs-tests unconfigure