xref: /minix3/external/bsd/atf/dist/tools/expand_test.cpp (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 
30*0a6a1f1dSLionel Sambuc #include <cstring>
31*0a6a1f1dSLionel Sambuc 
32*0a6a1f1dSLionel Sambuc #include <atf-c++.hpp>
33*0a6a1f1dSLionel Sambuc 
34*0a6a1f1dSLionel Sambuc #include "expand.hpp"
35*0a6a1f1dSLionel Sambuc 
36*0a6a1f1dSLionel Sambuc // XXX Many of the tests here are duplicated in atf-c/t_expand.  Should
37*0a6a1f1dSLionel Sambuc // find a way to easily share them, or maybe remove the ones here.
38*0a6a1f1dSLionel Sambuc 
39*0a6a1f1dSLionel Sambuc // ------------------------------------------------------------------------
40*0a6a1f1dSLionel Sambuc // Test cases for the free functions.
41*0a6a1f1dSLionel Sambuc // ------------------------------------------------------------------------
42*0a6a1f1dSLionel Sambuc 
43*0a6a1f1dSLionel Sambuc ATF_TEST_CASE(is_glob);
ATF_TEST_CASE_HEAD(is_glob)44*0a6a1f1dSLionel Sambuc ATF_TEST_CASE_HEAD(is_glob)
45*0a6a1f1dSLionel Sambuc {
46*0a6a1f1dSLionel Sambuc     set_md_var("descr", "Tests the is_glob function.");
47*0a6a1f1dSLionel Sambuc }
ATF_TEST_CASE_BODY(is_glob)48*0a6a1f1dSLionel Sambuc ATF_TEST_CASE_BODY(is_glob)
49*0a6a1f1dSLionel Sambuc {
50*0a6a1f1dSLionel Sambuc     using tools::expand::is_glob;
51*0a6a1f1dSLionel Sambuc 
52*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!is_glob(""));
53*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!is_glob("a"));
54*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!is_glob("foo"));
55*0a6a1f1dSLionel Sambuc 
56*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( is_glob("*"));
57*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( is_glob("a*"));
58*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( is_glob("*a"));
59*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( is_glob("a*b"));
60*0a6a1f1dSLionel Sambuc 
61*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( is_glob("?"));
62*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( is_glob("a?"));
63*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( is_glob("?a"));
64*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( is_glob("a?b"));
65*0a6a1f1dSLionel Sambuc }
66*0a6a1f1dSLionel Sambuc 
67*0a6a1f1dSLionel Sambuc ATF_TEST_CASE(matches_glob_plain);
ATF_TEST_CASE_HEAD(matches_glob_plain)68*0a6a1f1dSLionel Sambuc ATF_TEST_CASE_HEAD(matches_glob_plain)
69*0a6a1f1dSLionel Sambuc {
70*0a6a1f1dSLionel Sambuc     set_md_var("descr", "Tests the matches_glob function by using plain "
71*0a6a1f1dSLionel Sambuc                "text strings as patterns only.");
72*0a6a1f1dSLionel Sambuc }
ATF_TEST_CASE_BODY(matches_glob_plain)73*0a6a1f1dSLionel Sambuc ATF_TEST_CASE_BODY(matches_glob_plain)
74*0a6a1f1dSLionel Sambuc {
75*0a6a1f1dSLionel Sambuc     using tools::expand::matches_glob;
76*0a6a1f1dSLionel Sambuc 
77*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("", ""));
78*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("a", ""));
79*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("", "a"));
80*0a6a1f1dSLionel Sambuc 
81*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("ab", "ab"));
82*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("abc", "ab"));
83*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("ab", "abc"));
84*0a6a1f1dSLionel Sambuc }
85*0a6a1f1dSLionel Sambuc 
86*0a6a1f1dSLionel Sambuc ATF_TEST_CASE(matches_glob_star);
ATF_TEST_CASE_HEAD(matches_glob_star)87*0a6a1f1dSLionel Sambuc ATF_TEST_CASE_HEAD(matches_glob_star)
88*0a6a1f1dSLionel Sambuc {
89*0a6a1f1dSLionel Sambuc     set_md_var("descr", "Tests the matches_glob function by using the '*' "
90*0a6a1f1dSLionel Sambuc                "meta-character as part of the pattern.");
91*0a6a1f1dSLionel Sambuc }
ATF_TEST_CASE_BODY(matches_glob_star)92*0a6a1f1dSLionel Sambuc ATF_TEST_CASE_BODY(matches_glob_star)
93*0a6a1f1dSLionel Sambuc {
94*0a6a1f1dSLionel Sambuc     using tools::expand::matches_glob;
95*0a6a1f1dSLionel Sambuc 
96*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("*", ""));
97*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("*", "a"));
98*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("*", "ab"));
99*0a6a1f1dSLionel Sambuc 
100*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("a*", ""));
101*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("a*", "a"));
102*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("a*", "aa"));
103*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("a*", "ab"));
104*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("a*", "abc"));
105*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("a*", "ba"));
106*0a6a1f1dSLionel Sambuc 
107*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("*a", "a"));
108*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("*a", "ba"));
109*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("*a", "bc"));
110*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("*a", "bac"));
111*0a6a1f1dSLionel Sambuc 
112*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("*ab", "ab"));
113*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("*ab", "aab"));
114*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("*ab", "aaab"));
115*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("*ab", "bab"));
116*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("*ab", "bcb"));
117*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("*ab", "bacb"));
118*0a6a1f1dSLionel Sambuc 
119*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("a*b", "ab"));
120*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("a*b", "acb"));
121*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("a*b", "acdeb"));
122*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("a*b", "acdebz"));
123*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("a*b", "zacdeb"));
124*0a6a1f1dSLionel Sambuc }
125*0a6a1f1dSLionel Sambuc 
126*0a6a1f1dSLionel Sambuc ATF_TEST_CASE(matches_glob_question);
ATF_TEST_CASE_HEAD(matches_glob_question)127*0a6a1f1dSLionel Sambuc ATF_TEST_CASE_HEAD(matches_glob_question)
128*0a6a1f1dSLionel Sambuc {
129*0a6a1f1dSLionel Sambuc     set_md_var("descr", "Tests the matches_glob function by using the '?' "
130*0a6a1f1dSLionel Sambuc                "meta-character as part of the pattern.");
131*0a6a1f1dSLionel Sambuc }
ATF_TEST_CASE_BODY(matches_glob_question)132*0a6a1f1dSLionel Sambuc ATF_TEST_CASE_BODY(matches_glob_question)
133*0a6a1f1dSLionel Sambuc {
134*0a6a1f1dSLionel Sambuc     using tools::expand::matches_glob;
135*0a6a1f1dSLionel Sambuc 
136*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("?", ""));
137*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("?", "a"));
138*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("?", "ab"));
139*0a6a1f1dSLionel Sambuc 
140*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("?", "b"));
141*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("?", "c"));
142*0a6a1f1dSLionel Sambuc 
143*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("a?", "ab"));
144*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("a?", "ac"));
145*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("a?", "ca"));
146*0a6a1f1dSLionel Sambuc 
147*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("???", "abc"));
148*0a6a1f1dSLionel Sambuc     ATF_REQUIRE( matches_glob("???", "def"));
149*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("???", "a"));
150*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("???", "ab"));
151*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(!matches_glob("???", "abcd"));
152*0a6a1f1dSLionel Sambuc }
153*0a6a1f1dSLionel Sambuc 
154*0a6a1f1dSLionel Sambuc ATF_TEST_CASE(expand_glob_base);
ATF_TEST_CASE_HEAD(expand_glob_base)155*0a6a1f1dSLionel Sambuc ATF_TEST_CASE_HEAD(expand_glob_base)
156*0a6a1f1dSLionel Sambuc {
157*0a6a1f1dSLionel Sambuc     set_md_var("descr", "Tests the expand_glob function with random "
158*0a6a1f1dSLionel Sambuc                "patterns.");
159*0a6a1f1dSLionel Sambuc }
ATF_TEST_CASE_BODY(expand_glob_base)160*0a6a1f1dSLionel Sambuc ATF_TEST_CASE_BODY(expand_glob_base)
161*0a6a1f1dSLionel Sambuc {
162*0a6a1f1dSLionel Sambuc     using tools::expand::expand_glob;
163*0a6a1f1dSLionel Sambuc 
164*0a6a1f1dSLionel Sambuc     std::vector< std::string > candidates;
165*0a6a1f1dSLionel Sambuc     candidates.push_back("foo");
166*0a6a1f1dSLionel Sambuc     candidates.push_back("bar");
167*0a6a1f1dSLionel Sambuc     candidates.push_back("baz");
168*0a6a1f1dSLionel Sambuc     candidates.push_back("foobar");
169*0a6a1f1dSLionel Sambuc     candidates.push_back("foobarbaz");
170*0a6a1f1dSLionel Sambuc     candidates.push_back("foobarbazfoo");
171*0a6a1f1dSLionel Sambuc 
172*0a6a1f1dSLionel Sambuc     std::vector< std::string > exps;
173*0a6a1f1dSLionel Sambuc 
174*0a6a1f1dSLionel Sambuc     exps = expand_glob("foo", candidates);
175*0a6a1f1dSLionel Sambuc     ATF_REQUIRE_EQ(exps.size(), 1);
176*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[0] == "foo");
177*0a6a1f1dSLionel Sambuc 
178*0a6a1f1dSLionel Sambuc     exps = expand_glob("bar", candidates);
179*0a6a1f1dSLionel Sambuc     ATF_REQUIRE_EQ(exps.size(), 1);
180*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[0] == "bar");
181*0a6a1f1dSLionel Sambuc 
182*0a6a1f1dSLionel Sambuc     exps = expand_glob("foo*", candidates);
183*0a6a1f1dSLionel Sambuc     ATF_REQUIRE_EQ(exps.size(), 4);
184*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[0] == "foo");
185*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[1] == "foobar");
186*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[2] == "foobarbaz");
187*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[3] == "foobarbazfoo");
188*0a6a1f1dSLionel Sambuc 
189*0a6a1f1dSLionel Sambuc     exps = expand_glob("*foo", candidates);
190*0a6a1f1dSLionel Sambuc     ATF_REQUIRE_EQ(exps.size(), 2);
191*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[0] == "foo");
192*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[1] == "foobarbazfoo");
193*0a6a1f1dSLionel Sambuc 
194*0a6a1f1dSLionel Sambuc     exps = expand_glob("*foo*", candidates);
195*0a6a1f1dSLionel Sambuc     ATF_REQUIRE_EQ(exps.size(), 4);
196*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[0] == "foo");
197*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[1] == "foobar");
198*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[2] == "foobarbaz");
199*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[3] == "foobarbazfoo");
200*0a6a1f1dSLionel Sambuc 
201*0a6a1f1dSLionel Sambuc     exps = expand_glob("ba", candidates);
202*0a6a1f1dSLionel Sambuc     ATF_REQUIRE_EQ(exps.size(), 0);
203*0a6a1f1dSLionel Sambuc 
204*0a6a1f1dSLionel Sambuc     exps = expand_glob("ba*", candidates);
205*0a6a1f1dSLionel Sambuc     ATF_REQUIRE_EQ(exps.size(), 2);
206*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[0] == "bar");
207*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[1] == "baz");
208*0a6a1f1dSLionel Sambuc 
209*0a6a1f1dSLionel Sambuc     exps = expand_glob("*ba", candidates);
210*0a6a1f1dSLionel Sambuc     ATF_REQUIRE_EQ(exps.size(), 0);
211*0a6a1f1dSLionel Sambuc 
212*0a6a1f1dSLionel Sambuc     exps = expand_glob("*ba*", candidates);
213*0a6a1f1dSLionel Sambuc     ATF_REQUIRE_EQ(exps.size(), 5);
214*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[0] == "bar");
215*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[1] == "baz");
216*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[2] == "foobar");
217*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[3] == "foobarbaz");
218*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[4] == "foobarbazfoo");
219*0a6a1f1dSLionel Sambuc }
220*0a6a1f1dSLionel Sambuc 
221*0a6a1f1dSLionel Sambuc ATF_TEST_CASE(expand_glob_tps);
ATF_TEST_CASE_HEAD(expand_glob_tps)222*0a6a1f1dSLionel Sambuc ATF_TEST_CASE_HEAD(expand_glob_tps)
223*0a6a1f1dSLionel Sambuc {
224*0a6a1f1dSLionel Sambuc     set_md_var("descr", "Tests the expand_glob function with patterns that "
225*0a6a1f1dSLionel Sambuc                "match typical test program names.  This is just a subcase "
226*0a6a1f1dSLionel Sambuc                "of expand_base, but it is nice to make sure that it really "
227*0a6a1f1dSLionel Sambuc                "works.");
228*0a6a1f1dSLionel Sambuc }
ATF_TEST_CASE_BODY(expand_glob_tps)229*0a6a1f1dSLionel Sambuc ATF_TEST_CASE_BODY(expand_glob_tps)
230*0a6a1f1dSLionel Sambuc {
231*0a6a1f1dSLionel Sambuc     using tools::expand::expand_glob;
232*0a6a1f1dSLionel Sambuc 
233*0a6a1f1dSLionel Sambuc     std::vector< std::string > candidates;
234*0a6a1f1dSLionel Sambuc     candidates.push_back("Atffile");
235*0a6a1f1dSLionel Sambuc     candidates.push_back("h_foo");
236*0a6a1f1dSLionel Sambuc     candidates.push_back("t_foo");
237*0a6a1f1dSLionel Sambuc     candidates.push_back("t_bar");
238*0a6a1f1dSLionel Sambuc     candidates.push_back("t_baz");
239*0a6a1f1dSLionel Sambuc     candidates.push_back("foo_helper");
240*0a6a1f1dSLionel Sambuc     candidates.push_back("foo_test");
241*0a6a1f1dSLionel Sambuc     candidates.push_back("bar_test");
242*0a6a1f1dSLionel Sambuc     candidates.push_back("baz_test");
243*0a6a1f1dSLionel Sambuc 
244*0a6a1f1dSLionel Sambuc     std::vector< std::string > exps;
245*0a6a1f1dSLionel Sambuc 
246*0a6a1f1dSLionel Sambuc     exps = expand_glob("t_*", candidates);
247*0a6a1f1dSLionel Sambuc     ATF_REQUIRE_EQ(exps.size(), 3);
248*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[0] == "t_foo");
249*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[1] == "t_bar");
250*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[2] == "t_baz");
251*0a6a1f1dSLionel Sambuc 
252*0a6a1f1dSLionel Sambuc     exps = expand_glob("*_test", candidates);
253*0a6a1f1dSLionel Sambuc     ATF_REQUIRE_EQ(exps.size(), 3);
254*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[0] == "foo_test");
255*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[1] == "bar_test");
256*0a6a1f1dSLionel Sambuc     ATF_REQUIRE(exps[2] == "baz_test");
257*0a6a1f1dSLionel Sambuc }
258*0a6a1f1dSLionel Sambuc 
259*0a6a1f1dSLionel Sambuc // ------------------------------------------------------------------------
260*0a6a1f1dSLionel Sambuc // Main.
261*0a6a1f1dSLionel Sambuc // ------------------------------------------------------------------------
262*0a6a1f1dSLionel Sambuc 
ATF_INIT_TEST_CASES(tcs)263*0a6a1f1dSLionel Sambuc ATF_INIT_TEST_CASES(tcs)
264*0a6a1f1dSLionel Sambuc {
265*0a6a1f1dSLionel Sambuc     // Add the tests for the free functions.
266*0a6a1f1dSLionel Sambuc     ATF_ADD_TEST_CASE(tcs, is_glob);
267*0a6a1f1dSLionel Sambuc     ATF_ADD_TEST_CASE(tcs, matches_glob_plain);
268*0a6a1f1dSLionel Sambuc     ATF_ADD_TEST_CASE(tcs, matches_glob_star);
269*0a6a1f1dSLionel Sambuc     ATF_ADD_TEST_CASE(tcs, matches_glob_question);
270*0a6a1f1dSLionel Sambuc     ATF_ADD_TEST_CASE(tcs, expand_glob_base);
271*0a6a1f1dSLionel Sambuc     ATF_ADD_TEST_CASE(tcs, expand_glob_tps);
272*0a6a1f1dSLionel Sambuc }
273