xref: /minix3/external/bsd/atf/dist/tools/atf-config.1 (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc.\"
2*0a6a1f1dSLionel Sambuc.\" Automated Testing Framework (atf)
3*0a6a1f1dSLionel Sambuc.\"
4*0a6a1f1dSLionel Sambuc.\" Copyright (c) 2007 The NetBSD Foundation, Inc.
5*0a6a1f1dSLionel Sambuc.\" All rights reserved.
6*0a6a1f1dSLionel Sambuc.\"
7*0a6a1f1dSLionel Sambuc.\" Redistribution and use in source and binary forms, with or without
8*0a6a1f1dSLionel Sambuc.\" modification, are permitted provided that the following conditions
9*0a6a1f1dSLionel Sambuc.\" are met:
10*0a6a1f1dSLionel Sambuc.\" 1. Redistributions of source code must retain the above copyright
11*0a6a1f1dSLionel Sambuc.\"    notice, this list of conditions and the following disclaimer.
12*0a6a1f1dSLionel Sambuc.\" 2. Redistributions in binary form must reproduce the above copyright
13*0a6a1f1dSLionel Sambuc.\"    notice, this list of conditions and the following disclaimer in the
14*0a6a1f1dSLionel Sambuc.\"    documentation and/or other materials provided with the distribution.
15*0a6a1f1dSLionel Sambuc.\"
16*0a6a1f1dSLionel Sambuc.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
17*0a6a1f1dSLionel Sambuc.\" CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
18*0a6a1f1dSLionel Sambuc.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19*0a6a1f1dSLionel Sambuc.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20*0a6a1f1dSLionel Sambuc.\" IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
21*0a6a1f1dSLionel Sambuc.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22*0a6a1f1dSLionel Sambuc.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
23*0a6a1f1dSLionel Sambuc.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24*0a6a1f1dSLionel Sambuc.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25*0a6a1f1dSLionel Sambuc.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26*0a6a1f1dSLionel Sambuc.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
27*0a6a1f1dSLionel Sambuc.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28*0a6a1f1dSLionel Sambuc.\"
29*0a6a1f1dSLionel Sambuc.Dd March 14, 2009
30*0a6a1f1dSLionel Sambuc.Dt ATF-CONFIG 1
31*0a6a1f1dSLionel Sambuc.Os
32*0a6a1f1dSLionel Sambuc.Sh NAME
33*0a6a1f1dSLionel Sambuc.Nm atf-config
34*0a6a1f1dSLionel Sambuc.Nd queries static configuration information of ATF
35*0a6a1f1dSLionel Sambuc.Sh SYNOPSIS
36*0a6a1f1dSLionel Sambuc.Nm
37*0a6a1f1dSLionel Sambuc.Op Fl t
38*0a6a1f1dSLionel Sambuc.Op Ar var1 Op Ar .. varN
39*0a6a1f1dSLionel Sambuc.Nm
40*0a6a1f1dSLionel Sambuc.Fl h
41*0a6a1f1dSLionel Sambuc.Sh DESCRIPTION
42*0a6a1f1dSLionel Sambuc.Nm
43*0a6a1f1dSLionel Sambucis a utility that queries static configuration information of ATF.
44*0a6a1f1dSLionel SambucStatic configuration refers to all those values for settings that
45*0a6a1f1dSLionel Sambucwere built into the ATF binaries at build time.
46*0a6a1f1dSLionel Sambuc.Pp
47*0a6a1f1dSLionel SambucIn the first synopsis form,
48*0a6a1f1dSLionel Sambuc.Nm
49*0a6a1f1dSLionel Sambucwill print variable-value pairs for all built-in static variables if
50*0a6a1f1dSLionel Sambucno variable names are provided as arguments.
51*0a6a1f1dSLionel SambucIf any is provided, it will only print the variable-value pairs for
52*0a6a1f1dSLionel Sambucthose variables.
53*0a6a1f1dSLionel SambucThe output of the utility does not use the
54*0a6a1f1dSLionel Sambuc.Sq =
55*0a6a1f1dSLionel Sambucsymbol to separate the variable name from its corresponding value in
56*0a6a1f1dSLionel Sambucan attempt to avoid sourcing the output in shell scripts or Makefiles.
57*0a6a1f1dSLionel SambucIf you need to do that, the
58*0a6a1f1dSLionel Sambuc.Fl t
59*0a6a1f1dSLionel Sambucflag allows you to query the value of individual variables without any
60*0a6a1f1dSLionel Sambucsurrounding text.
61*0a6a1f1dSLionel Sambuc.Pp
62*0a6a1f1dSLionel SambucIn the second synopsis form,
63*0a6a1f1dSLionel Sambuc.Nm
64*0a6a1f1dSLionel Sambucwill print information about all supported options and their purpose.
65*0a6a1f1dSLionel Sambuc.Pp
66*0a6a1f1dSLionel SambucThe following options are available:
67*0a6a1f1dSLionel Sambuc.Bl -tag -width flag
68*0a6a1f1dSLionel Sambuc.It Fl h
69*0a6a1f1dSLionel SambucShows a short summary of all available options and their purpose.
70*0a6a1f1dSLionel Sambuc.It Fl t
71*0a6a1f1dSLionel SambucChanges the output of the utility to show the variable values, one
72*0a6a1f1dSLionel Sambucper line, without the variable names.
73*0a6a1f1dSLionel Sambuc.El
74*0a6a1f1dSLionel Sambuc.Ss Static configuration variables
75*0a6a1f1dSLionel SambucThe following list describes all the variables that are part of ATF's
76*0a6a1f1dSLionel Sambucstatic configuration:
77*0a6a1f1dSLionel Sambuc.Bl -tag -width atfXbuildXcppflagsXX
78*0a6a1f1dSLionel Sambuc.It Va atf_arch
79*0a6a1f1dSLionel SambucThe architecture name detected by ATF.
80*0a6a1f1dSLionel SambucThis is derived from
81*0a6a1f1dSLionel Sambuc.Va atf_machine
82*0a6a1f1dSLionel Sambucbecause it is a subset of it.
83*0a6a1f1dSLionel SambucGiven that this name might be misdetected, it is provided to the user
84*0a6a1f1dSLionel Sambucas a configuration variable so that he can fix its value temporarily
85*0a6a1f1dSLionel Sambucuntil a real fix is incorporated into mainstream sources.
86*0a6a1f1dSLionel Sambuc.It Va atf_build_cc
87*0a6a1f1dSLionel SambucThe C compiler used by the ATF checks that provide build-time tests.
88*0a6a1f1dSLionel Sambuc.It Va atf_build_cflags
89*0a6a1f1dSLionel SambucThe C compiler flags used by the ATF checks that provide build-time tests.
90*0a6a1f1dSLionel Sambuc.It Va atf_build_cpp
91*0a6a1f1dSLionel SambucThe C/C++ preprocessor used by the ATF checks that provide build-time tests.
92*0a6a1f1dSLionel Sambuc.It Va atf_build_cppflags
93*0a6a1f1dSLionel SambucThe C/C++ preprocessor flags used by the ATF checks that provide build-time
94*0a6a1f1dSLionel Sambuctests.
95*0a6a1f1dSLionel Sambuc.It Va atf_build_cxx
96*0a6a1f1dSLionel SambucThe C++ compiler used by the ATF checks that provide build-time tests.
97*0a6a1f1dSLionel Sambuc.It Va atf_build_cxxflags
98*0a6a1f1dSLionel SambucThe C++ compiler flags used by the ATF checks that provide build-time tests.
99*0a6a1f1dSLionel Sambuc.It Va atf_confdir
100*0a6a1f1dSLionel SambucThe path to the directory that contains the system-wide configuration
101*0a6a1f1dSLionel Sambucfiles for ATF.
102*0a6a1f1dSLionel Sambuc.It Va atf_includedir
103*0a6a1f1dSLionel SambucThe path to the directory that contains the ATF header files.
104*0a6a1f1dSLionel Sambuc.It Va atf_libdir
105*0a6a1f1dSLionel SambucThe path to the directory that contains the ATF libraries.
106*0a6a1f1dSLionel Sambuc.It Va atf_libexecdir
107*0a6a1f1dSLionel SambucThe path to the directory that contains the auxiliary utilities of ATF,
108*0a6a1f1dSLionel Sambucused internally by the public tools.
109*0a6a1f1dSLionel Sambuc.It Va atf_machine
110*0a6a1f1dSLionel SambucThe machine type name detected by ATF.
111*0a6a1f1dSLionel SambucThis should not be tunable but is provided for symmetry with
112*0a6a1f1dSLionel Sambuc.Va atf_arch .
113*0a6a1f1dSLionel Sambuc.It Va atf_pkgdatadir
114*0a6a1f1dSLionel SambucThe path to the directory that contains the files that form the ATF's
115*0a6a1f1dSLionel Sambucshell-scripting library.
116*0a6a1f1dSLionel Sambuc.It Va atf_shell
117*0a6a1f1dSLionel SambucThe path to the shell interpreter that will be used by ATF.
118*0a6a1f1dSLionel Sambuc.It Va atf_workdir
119*0a6a1f1dSLionel SambucThe path to the temporary directory that the utilities and the test
120*0a6a1f1dSLionel Sambucprograms will use to store temporary files in.
121*0a6a1f1dSLionel Sambuc.El
122*0a6a1f1dSLionel Sambuc.Sh ENVIRONMENT
123*0a6a1f1dSLionel SambucEvery variable that is part of the static configuration can be
124*0a6a1f1dSLionel Sambucoverridden at run-time by defining an environment variable.
125*0a6a1f1dSLionel SambucThis environment variable has the exact same name as the one shown by
126*0a6a1f1dSLionel Sambuc.Nm
127*0a6a1f1dSLionel Sambucexcept that the name is all composed of uppercase letters.
128*0a6a1f1dSLionel Sambuc.Pp
129*0a6a1f1dSLionel SambucIn general, empty values in the environment will be ignored unless
130*0a6a1f1dSLionel Sambucotherwise noted below.
131*0a6a1f1dSLionel Sambuc.Pp
132*0a6a1f1dSLionel SambucThe recognized environment variables are:
133*0a6a1f1dSLionel Sambuc.Bl -tag -width ATFXBUILDXCPPFLAGSXX
134*0a6a1f1dSLionel Sambuc.It Ev ATF_ARCH
135*0a6a1f1dSLionel SambucOverrides the built-in value of
136*0a6a1f1dSLionel Sambuc.Va atf_arch .
137*0a6a1f1dSLionel Sambuc.It Ev ATF_BUILD_CC
138*0a6a1f1dSLionel SambucOverrides the built-in value of
139*0a6a1f1dSLionel Sambuc.Va atf_build_cc .
140*0a6a1f1dSLionel Sambuc.It Ev ATF_BUILD_CFLAGS
141*0a6a1f1dSLionel SambucOverrides the built-in value of
142*0a6a1f1dSLionel Sambuc.Va atf_build_cflags .
143*0a6a1f1dSLionel SambucEmpty values are allowed.
144*0a6a1f1dSLionel Sambuc.It Ev ATF_BUILD_CPP
145*0a6a1f1dSLionel SambucOverrides the built-in value of
146*0a6a1f1dSLionel Sambuc.Va atf_build_cpp .
147*0a6a1f1dSLionel Sambuc.It Ev ATF_BUILD_CPPFLAGS
148*0a6a1f1dSLionel SambucOverrides the built-in value of
149*0a6a1f1dSLionel Sambuc.Va atf_build_cppflags .
150*0a6a1f1dSLionel SambucEmpty values are allowed.
151*0a6a1f1dSLionel Sambuc.It Ev ATF_BUILD_CXX
152*0a6a1f1dSLionel SambucOverrides the built-in value of
153*0a6a1f1dSLionel Sambuc.Va atf_build_cxx .
154*0a6a1f1dSLionel Sambuc.It Ev ATF_BUILD_CXXFLAGS
155*0a6a1f1dSLionel SambucOverrides the built-in value of
156*0a6a1f1dSLionel Sambuc.Va atf_build_cxxflags .
157*0a6a1f1dSLionel SambucEmpty values are allowed.
158*0a6a1f1dSLionel Sambuc.It Ev ATF_CONFDIR
159*0a6a1f1dSLionel SambucOverrides the built-in value of
160*0a6a1f1dSLionel Sambuc.Va atf_confdir .
161*0a6a1f1dSLionel Sambuc.It Ev ATF_INCLUDEDIR
162*0a6a1f1dSLionel SambucOverrides the built-in value of
163*0a6a1f1dSLionel Sambuc.Va atf_includedir .
164*0a6a1f1dSLionel Sambuc.It Ev ATF_LIBDIR
165*0a6a1f1dSLionel SambucOverrides the built-in value of
166*0a6a1f1dSLionel Sambuc.Va atf_libdir .
167*0a6a1f1dSLionel Sambuc.It Ev ATF_LIBEXECDIR
168*0a6a1f1dSLionel SambucOverrides the built-in value of
169*0a6a1f1dSLionel Sambuc.Va atf_libexecdir .
170*0a6a1f1dSLionel Sambuc.It Ev ATF_MACHINE
171*0a6a1f1dSLionel SambucOverrides the built-in value of
172*0a6a1f1dSLionel Sambuc.Va atf_machine .
173*0a6a1f1dSLionel Sambuc.It Ev ATF_PKGDATADIR
174*0a6a1f1dSLionel SambucOverrides the built-in value of
175*0a6a1f1dSLionel Sambuc.Va atf_pkgdatadir .
176*0a6a1f1dSLionel Sambuc.It Ev ATF_SHELL
177*0a6a1f1dSLionel SambucOverrides the built-in value of
178*0a6a1f1dSLionel Sambuc.Va atf_shell .
179*0a6a1f1dSLionel Sambuc.It Ev ATF_WORKDIR
180*0a6a1f1dSLionel SambucOverrides the built-in value of
181*0a6a1f1dSLionel Sambuc.Va atf_workdir .
182*0a6a1f1dSLionel Sambuc.El
183*0a6a1f1dSLionel Sambuc.Sh SEE ALSO
184*0a6a1f1dSLionel Sambuc.Xr atf 7
185