2 .\" Automated Testing Framework (atf)
4 .\" Copyright (c) 2007 The NetBSD Foundation, Inc.
5 .\" All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
16 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
17 .\" CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
18 .\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 .\" IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
21 .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
23 .\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 .\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26 .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
27 .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 .Nd queries static configuration information of ATF
38 .Op Ar var1 Op Ar .. varN
43 is a utility that queries static configuration information of ATF.
44 Static configuration refers to all those values for settings that
45 were built into the ATF binaries at build time.
47 In the first synopsis form,
49 will print variable-value pairs for all built-in static variables if
50 no variable names are provided as arguments.
51 If any is provided, it will only print the variable-value pairs for
53 The output of the utility does not use the
55 symbol to separate the variable name from its corresponding value in
56 an attempt to avoid sourcing the output in shell scripts or Makefiles.
57 If you need to do that, the
59 flag allows you to query the value of individual variables without any
62 In the second synopsis form,
64 will print information about all supported options and their purpose.
66 The following options are available:
69 Shows a short summary of all available options and their purpose.
71 Changes the output of the utility to show the variable values, one
72 per line, without the variable names.
74 .Ss Static configuration variables
75 The following list describes all the variables that are part of ATF's
77 .Bl -tag -width atfXbuildXcppflagsXX
79 The architecture name detected by ATF.
82 because it is a subset of it.
83 Given that this name might be misdetected, it is provided to the user
84 as a configuration variable so that he can fix its value temporarily
85 until a real fix is incorporated into mainstream sources.
87 The C compiler used by the ATF checks that provide build-time tests.
88 .It Va atf_build_cflags
89 The C compiler flags used by the ATF checks that provide build-time tests.
91 The C/C++ preprocessor used by the ATF checks that provide build-time tests.
92 .It Va atf_build_cppflags
93 The C/C++ preprocessor flags used by the ATF checks that provide build-time
96 The C++ compiler used by the ATF checks that provide build-time tests.
97 .It Va atf_build_cxxflags
98 The C++ compiler flags used by the ATF checks that provide build-time tests.
100 The path to the directory that contains the system-wide configuration
102 .It Va atf_includedir
103 The path to the directory that contains the ATF header files.
105 The path to the directory that contains the ATF libraries.
106 .It Va atf_libexecdir
107 The path to the directory that contains the auxiliary utilities of ATF,
108 used internally by the public tools.
110 The machine type name detected by ATF.
111 This should not be tunable but is provided for symmetry with
113 .It Va atf_pkgdatadir
114 The path to the directory that contains the files that form the ATF's
115 shell-scripting library.
117 The path to the shell interpreter that will be used by ATF.
119 The path to the temporary directory that the utilities and the test
120 programs will use to store temporary files in.
123 Every variable that is part of the static configuration can be
124 overridden at run-time by defining an environment variable.
125 This environment variable has the exact same name as the one shown by
127 except that the name is all composed of uppercase letters.
129 In general, empty values in the environment will be ignored unless
130 otherwise noted below.
132 The recognized environment variables are:
133 .Bl -tag -width ATFXBUILDXCPPFLAGSXX
135 Overrides the built-in value of
138 Overrides the built-in value of
140 .It Ev ATF_BUILD_CFLAGS
141 Overrides the built-in value of
142 .Va atf_build_cflags .
143 Empty values are allowed.
145 Overrides the built-in value of
147 .It Ev ATF_BUILD_CPPFLAGS
148 Overrides the built-in value of
149 .Va atf_build_cppflags .
150 Empty values are allowed.
152 Overrides the built-in value of
154 .It Ev ATF_BUILD_CXXFLAGS
155 Overrides the built-in value of
156 .Va atf_build_cxxflags .
157 Empty values are allowed.
159 Overrides the built-in value of
161 .It Ev ATF_INCLUDEDIR
162 Overrides the built-in value of
165 Overrides the built-in value of
167 .It Ev ATF_LIBEXECDIR
168 Overrides the built-in value of
171 Overrides the built-in value of
173 .It Ev ATF_PKGDATADIR
174 Overrides the built-in value of
177 Overrides the built-in value of
180 Overrides the built-in value of