xref: /freebsd/tests/sys/cddl/zfs/include/default.cfg.in (revision ac00d4d59b18a76c6148ca5d7439bb446d38da5c)
1*2fae26bdSAlan Somers#
2*2fae26bdSAlan Somers# CDDL HEADER START
3*2fae26bdSAlan Somers#
4*2fae26bdSAlan Somers# The contents of this file are subject to the terms of the
5*2fae26bdSAlan Somers# Common Development and Distribution License (the "License").
6*2fae26bdSAlan Somers# You may not use this file except in compliance with the License.
7*2fae26bdSAlan Somers#
8*2fae26bdSAlan Somers# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*2fae26bdSAlan Somers# or http://www.opensolaris.org/os/licensing.
10*2fae26bdSAlan Somers# See the License for the specific language governing permissions
11*2fae26bdSAlan Somers# and limitations under the License.
12*2fae26bdSAlan Somers#
13*2fae26bdSAlan Somers# When distributing Covered Code, include this CDDL HEADER in each
14*2fae26bdSAlan Somers# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*2fae26bdSAlan Somers# If applicable, add the following below this CDDL HEADER, with the
16*2fae26bdSAlan Somers# fields enclosed by brackets "[]" replaced with your own identifying
17*2fae26bdSAlan Somers# information: Portions Copyright [yyyy] [name of copyright owner]
18*2fae26bdSAlan Somers#
19*2fae26bdSAlan Somers# CDDL HEADER END
20*2fae26bdSAlan Somers#
21*2fae26bdSAlan Somers
22*2fae26bdSAlan Somers#
23*2fae26bdSAlan Somers# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24*2fae26bdSAlan Somers# Use is subject to license terms.
25*2fae26bdSAlan Somers# Read the user config file, if it exists
26*2fae26bdSAlan Somers#
27*2fae26bdSAlan Somers
28*2fae26bdSAlan Somersexport STF_SUITE=%%STFSUITEDIR%%
29*2fae26bdSAlan Somers
30*2fae26bdSAlan Somers. $STF_SUITE/include/libtest.kshlib
31*2fae26bdSAlan Somers
32*2fae26bdSAlan Somers# source the autogenerated commands.cfg file (built from the commands.txt file
33*2fae26bdSAlan Somers. $STF_SUITE/include/commands.cfg
34*2fae26bdSAlan Somers
35*2fae26bdSAlan Somers# Turn ATF variables into environment variables
36*2fae26bdSAlan Somersexport DISKS=`atf_config_get disks ""`
37*2fae26bdSAlan Somersexport KEEP=`atf_config_get keep_pools "" | ${SED} -E 's/ +/|/g'`
38*2fae26bdSAlan Somersexport TESTCASE_ID=$(echo $(atf_get ident) | cksum -o 2 | cut -f 1 -d " ")
39*2fae26bdSAlan Somers
40*2fae26bdSAlan Somers
41*2fae26bdSAlan Somers. $STF_SUITE/include/constants.cfg
42*2fae26bdSAlan Somers
43*2fae26bdSAlan Somers# finally, if we're running in a local zone
44*2fae26bdSAlan Somers# we take some additional actions
45*2fae26bdSAlan Somersif ! is_global_zone; then
46*2fae26bdSAlan Somers	reexport_pool
47*2fae26bdSAlan Somersfi
48