xref: /minix3/tests/usr.bin/awk/t_awk.sh (revision 11be35a165022172ed3cea20f2b5df0307540b0e)
1*11be35a1SLionel Sambuc# $NetBSD: t_awk.sh,v 1.5 2012/12/10 20:30:06 christos Exp $
2*11be35a1SLionel Sambuc#
3*11be35a1SLionel Sambuc# Copyright (c) 2012 The NetBSD Foundation, Inc.
4*11be35a1SLionel Sambuc# All rights reserved.
5*11be35a1SLionel Sambuc#
6*11be35a1SLionel Sambuc# This code is derived from software contributed to The NetBSD Foundation
7*11be35a1SLionel Sambuc# by Christos Zoulas
8*11be35a1SLionel Sambuc#
9*11be35a1SLionel Sambuc# Redistribution and use in source and binary forms, with or without
10*11be35a1SLionel Sambuc# modification, are permitted provided that the following conditions
11*11be35a1SLionel Sambuc# are met:
12*11be35a1SLionel Sambuc# 1. Redistributions of source code must retain the above copyright
13*11be35a1SLionel Sambuc#    notice, this list of conditions and the following disclaimer.
14*11be35a1SLionel Sambuc# 2. Redistributions in binary form must reproduce the above copyright
15*11be35a1SLionel Sambuc#    notice, this list of conditions and the following disclaimer in the
16*11be35a1SLionel Sambuc#    documentation and/or other materials provided with the distribution.
17*11be35a1SLionel Sambuc#
18*11be35a1SLionel Sambuc# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19*11be35a1SLionel Sambuc# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20*11be35a1SLionel Sambuc# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21*11be35a1SLionel Sambuc# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22*11be35a1SLionel Sambuc# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23*11be35a1SLionel Sambuc# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24*11be35a1SLionel Sambuc# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25*11be35a1SLionel Sambuc# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26*11be35a1SLionel Sambuc# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27*11be35a1SLionel Sambuc# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28*11be35a1SLionel Sambuc# POSSIBILITY OF SUCH DAMAGE.
29*11be35a1SLionel Sambuc#
30*11be35a1SLionel Sambuc
31*11be35a1SLionel Sambucawk=awk
32*11be35a1SLionel Sambuc
33*11be35a1SLionel Sambuch_check()
34*11be35a1SLionel Sambuc{
35*11be35a1SLionel Sambuc	local fname=d_$1
36*11be35a1SLionel Sambuc	for sfx in in out awk; do
37*11be35a1SLionel Sambuc		cp -r $(atf_get_srcdir)/$fname.$sfx .
38*11be35a1SLionel Sambuc	done
39*11be35a1SLionel Sambuc	shift 1
40*11be35a1SLionel Sambuc	atf_check -o file:$fname.out -x "awk $@ -f $fname.awk < $fname.in"
41*11be35a1SLionel Sambuc}
42*11be35a1SLionel Sambuc
43*11be35a1SLionel Sambucatf_test_case big_regexp
44*11be35a1SLionel Sambuc
45*11be35a1SLionel Sambucbig_regexp_head() {
46*11be35a1SLionel Sambuc	atf_set "descr" "Checks matching long regular expressions (PR/33392)"
47*11be35a1SLionel Sambuc}
48*11be35a1SLionel Sambuc
49*11be35a1SLionel Sambucbig_regexp_body() {
50*11be35a1SLionel Sambuc	h_check big_regexp
51*11be35a1SLionel Sambuc}
52*11be35a1SLionel Sambuc
53*11be35a1SLionel Sambucatf_test_case end
54*11be35a1SLionel Sambuc
55*11be35a1SLionel Sambucend_head() {
56*11be35a1SLionel Sambuc	atf_set "descr" "Checks that the last line of the input" \
57*11be35a1SLionel Sambuc	                "is available under END pattern (PR/29659)"
58*11be35a1SLionel Sambuc}
59*11be35a1SLionel Sambuc
60*11be35a1SLionel Sambucend_body() {
61*11be35a1SLionel Sambuc	h_check end1
62*11be35a1SLionel Sambuc	h_check end2
63*11be35a1SLionel Sambuc}
64*11be35a1SLionel Sambuc
65*11be35a1SLionel Sambucatf_test_case string1
66*11be35a1SLionel Sambuc
67*11be35a1SLionel Sambucstring1_head() {
68*11be35a1SLionel Sambuc	atf_set "descr" "Checks escaping newlines in string literals"
69*11be35a1SLionel Sambuc}
70*11be35a1SLionel Sambuc
71*11be35a1SLionel Sambucstring1_body() {
72*11be35a1SLionel Sambuc	for sfx in out awk; do
73*11be35a1SLionel Sambuc		cp -r $(atf_get_srcdir)/d_string1.$sfx .
74*11be35a1SLionel Sambuc	done
75*11be35a1SLionel Sambuc	atf_check -o file:d_string1.out awk -f d_string1.awk
76*11be35a1SLionel Sambuc}
77*11be35a1SLionel Sambuc
78*11be35a1SLionel Sambucatf_test_case multibyte
79*11be35a1SLionel Sambuc
80*11be35a1SLionel Sambucmultibyte_head() {
81*11be35a1SLionel Sambuc	atf_set "descr" "Checks multibyte charsets support" \
82*11be35a1SLionel Sambuc	                "in tolower and toupper (PR/36394)"
83*11be35a1SLionel Sambuc}
84*11be35a1SLionel Sambuc
85*11be35a1SLionel Sambucmultibyte_body() {
86*11be35a1SLionel Sambuc	export LANG=en_US.UTF-8
87*11be35a1SLionel Sambuc
88*11be35a1SLionel Sambuc	h_check tolower
89*11be35a1SLionel Sambuc	h_check toupper
90*11be35a1SLionel Sambuc}
91*11be35a1SLionel Sambuc
92*11be35a1SLionel Sambucatf_test_case period
93*11be35a1SLionel Sambuc
94*11be35a1SLionel Sambucperiod_head() {
95*11be35a1SLionel Sambuc	atf_set "descr" "Checks that the period character is recognised" \
96*11be35a1SLionel Sambuc	                "in awk program regardless of locale (bin/42320)"
97*11be35a1SLionel Sambuc}
98*11be35a1SLionel Sambuc
99*11be35a1SLionel Sambucperiod_body() {
100*11be35a1SLionel Sambuc	export LANG=ru_RU.KOI8-R
101*11be35a1SLionel Sambuc
102*11be35a1SLionel Sambuc	h_check period -v x=0.5
103*11be35a1SLionel Sambuc}
104*11be35a1SLionel Sambuc
105*11be35a1SLionel Sambucatf_test_case assign_NF
106*11be35a1SLionel Sambuc
107*11be35a1SLionel Sambucassign_NF_head() {
108*11be35a1SLionel Sambuc	atf_set "descr" 'Checks that assign to NF changes $0 and $n (PR/44063)'
109*11be35a1SLionel Sambuc}
110*11be35a1SLionel Sambuc
111*11be35a1SLionel Sambucassign_NF_body() {
112*11be35a1SLionel Sambuc	h_check assign_NF
113*11be35a1SLionel Sambuc}
114*11be35a1SLionel Sambuc
115*11be35a1SLionel Sambucatf_test_case single_char_rs
116*11be35a1SLionel Sambuc
117*11be35a1SLionel Sambucsingle_char_rs_head() {
118*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with single character RS"
119*11be35a1SLionel Sambuc}
120*11be35a1SLionel Sambuc
121*11be35a1SLionel Sambucsingle_char_rs_body() {
122*11be35a1SLionel Sambuc	atf_check \
123*11be35a1SLionel Sambuc		-o "inline:1\n2\n\n3\n\n\n4\n\n" \
124*11be35a1SLionel Sambuc		-x "echo 1a2aa3aaa4 | $awk 1 RS=a"
125*11be35a1SLionel Sambuc}
126*11be35a1SLionel Sambuc
127*11be35a1SLionel Sambucatf_test_case two_char_rs
128*11be35a1SLionel Sambuc
129*11be35a1SLionel Sambuctwo_char_rs_head() {
130*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with two characters RS"
131*11be35a1SLionel Sambuc}
132*11be35a1SLionel Sambuc
133*11be35a1SLionel Sambuctwo_char_rs_body() {
134*11be35a1SLionel Sambuc	atf_check \
135*11be35a1SLionel Sambuc		-o "inline:1\n2\n3\n4\n\n" \
136*11be35a1SLionel Sambuc		-x "echo 1ab2ab3ab4 | $awk 1 RS=ab"
137*11be35a1SLionel Sambuc}
138*11be35a1SLionel Sambuc
139*11be35a1SLionel Sambucatf_test_case single_char_regex_group_rs
140*11be35a1SLionel Sambuc
141*11be35a1SLionel Sambucsingle_char_regex_group_rs_head() {
142*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with single character regex group RS"
143*11be35a1SLionel Sambuc}
144*11be35a1SLionel Sambuc
145*11be35a1SLionel Sambucsingle_char_regex_group_rs_body() {
146*11be35a1SLionel Sambuc	atf_check \
147*11be35a1SLionel Sambuc		-o "inline:1\n2\n\n3\n\n\n4\n\n" \
148*11be35a1SLionel Sambuc		-x "echo 1a2aa3aaa4 | $awk 1 RS='[a]'"
149*11be35a1SLionel Sambuc}
150*11be35a1SLionel Sambuc
151*11be35a1SLionel Sambucatf_test_case two_char_regex_group_rs
152*11be35a1SLionel Sambuc
153*11be35a1SLionel Sambuctwo_char_regex_group_rs_head() {
154*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with two characters regex group RS"
155*11be35a1SLionel Sambuc}
156*11be35a1SLionel Sambuc
157*11be35a1SLionel Sambuctwo_char_regex_group_rs_body() {
158*11be35a1SLionel Sambuc	atf_check \
159*11be35a1SLionel Sambuc		-o "inline:1\n2\n\n3\n\n\n4\n\n" \
160*11be35a1SLionel Sambuc		-x "echo 1a2ab3aba4 | $awk 1 RS='[ab]'"
161*11be35a1SLionel Sambuc}
162*11be35a1SLionel Sambuc
163*11be35a1SLionel Sambucatf_test_case single_char_regex_star_rs
164*11be35a1SLionel Sambuc
165*11be35a1SLionel Sambucsingle_char_regex_star_rs_head() {
166*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with single character regex star RS"
167*11be35a1SLionel Sambuc}
168*11be35a1SLionel Sambuc
169*11be35a1SLionel Sambucsingle_char_regex_star_rs_body() {
170*11be35a1SLionel Sambuc	atf_check \
171*11be35a1SLionel Sambuc		-o "inline:1\n2\n3\n4\n\n" \
172*11be35a1SLionel Sambuc		-x "echo 1a2aa3aaa4 | $awk 1 RS='a*'"
173*11be35a1SLionel Sambuc}
174*11be35a1SLionel Sambuc
175*11be35a1SLionel Sambucatf_test_case two_char_regex_star_rs
176*11be35a1SLionel Sambuc
177*11be35a1SLionel Sambuctwo_char_regex_star_rs_head() {
178*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with two characters regex star RS"
179*11be35a1SLionel Sambuc}
180*11be35a1SLionel Sambuc
181*11be35a1SLionel Sambuctwo_char_regex_star_rs_body() {
182*11be35a1SLionel Sambuc	atf_check \
183*11be35a1SLionel Sambuc		-o "inline:1\n2\n3\n4\n\n" \
184*11be35a1SLionel Sambuc		-x "echo 1a2aa3aaa4 | $awk 1 RS='aa*'"
185*11be35a1SLionel Sambuc}
186*11be35a1SLionel Sambuc
187*11be35a1SLionel Sambucatf_test_case regex_two_star_rs
188*11be35a1SLionel Sambuc
189*11be35a1SLionel Sambucregex_two_star_rs_head() {
190*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with regex two star RS"
191*11be35a1SLionel Sambuc}
192*11be35a1SLionel Sambuc
193*11be35a1SLionel Sambucregex_two_star_rs_body() {
194*11be35a1SLionel Sambuc	atf_check \
195*11be35a1SLionel Sambuc		-o "inline:1\n2\n3\n4\n\n" \
196*11be35a1SLionel Sambuc		-x "echo 1a2ab3aab4 | $awk 1 RS='aa*b*'"
197*11be35a1SLionel Sambuc}
198*11be35a1SLionel Sambuc
199*11be35a1SLionel Sambucatf_test_case regex_or_1_rs
200*11be35a1SLionel Sambuc
201*11be35a1SLionel Sambucregex_or_1_rs_head() {
202*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with regex | case 1 RS"
203*11be35a1SLionel Sambuc}
204*11be35a1SLionel Sambuc
205*11be35a1SLionel Sambucregex_or_1_rs_body() {
206*11be35a1SLionel Sambuc	atf_check \
207*11be35a1SLionel Sambuc		-o "inline:1a\nc\n\n" \
208*11be35a1SLionel Sambuc		-x "echo 1abc | $awk 1 RS='abcde|b'"
209*11be35a1SLionel Sambuc}
210*11be35a1SLionel Sambuc
211*11be35a1SLionel Sambucatf_test_case regex_or_2_rs
212*11be35a1SLionel Sambuc
213*11be35a1SLionel Sambucregex_or_2_rs_head() {
214*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with regex | case 2 RS"
215*11be35a1SLionel Sambuc}
216*11be35a1SLionel Sambuc
217*11be35a1SLionel Sambucregex_or_2_rs_body() {
218*11be35a1SLionel Sambuc	atf_check \
219*11be35a1SLionel Sambuc		-o "inline:1a\ncdf2\n\n" \
220*11be35a1SLionel Sambuc		-x "echo 1abcdf2 | $awk 1 RS='abcde|b'"
221*11be35a1SLionel Sambuc}
222*11be35a1SLionel Sambuc
223*11be35a1SLionel Sambucatf_test_case regex_or_3_rs
224*11be35a1SLionel Sambuc
225*11be35a1SLionel Sambucregex_or_3_rs_head() {
226*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with regex | case 3 RS"
227*11be35a1SLionel Sambuc}
228*11be35a1SLionel Sambuc
229*11be35a1SLionel Sambucregex_or_3_rs_body() {
230*11be35a1SLionel Sambuc	atf_check \
231*11be35a1SLionel Sambuc		-o "inline:1\n\nf2\n\n" \
232*11be35a1SLionel Sambuc		-x "echo 1abcdebf2 | $awk 1 RS='abcde|b'"
233*11be35a1SLionel Sambuc}
234*11be35a1SLionel Sambuc
235*11be35a1SLionel Sambucatf_test_case regex_or_4_rs
236*11be35a1SLionel Sambuc
237*11be35a1SLionel Sambucregex_or_4_rs_head() {
238*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with regex | case 4 RS"
239*11be35a1SLionel Sambuc}
240*11be35a1SLionel Sambuc
241*11be35a1SLionel Sambucregex_or_4_rs_body() {
242*11be35a1SLionel Sambuc	atf_check \
243*11be35a1SLionel Sambuc		-o "inline:1\nbcdf2\n\n" \
244*11be35a1SLionel Sambuc		-x "echo 1abcdf2 | $awk 1 RS='abcde|a'"
245*11be35a1SLionel Sambuc
246*11be35a1SLionel Sambuc}
247*11be35a1SLionel Sambuc
248*11be35a1SLionel Sambucatf_test_case regex_caret_1_rs
249*11be35a1SLionel Sambuc
250*11be35a1SLionel Sambucregex_caret_1_rs_head() {
251*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with regex ^ case 1 RS"
252*11be35a1SLionel Sambuc}
253*11be35a1SLionel Sambuc
254*11be35a1SLionel Sambucregex_caret_1_rs_body() {
255*11be35a1SLionel Sambuc	atf_check \
256*11be35a1SLionel Sambuc		-o "inline:\n1a2a3a\n\n" \
257*11be35a1SLionel Sambuc		-x "echo a1a2a3a | $awk 1 RS='^a'"
258*11be35a1SLionel Sambuc
259*11be35a1SLionel Sambuc}
260*11be35a1SLionel Sambuc
261*11be35a1SLionel Sambucatf_test_case regex_caret_2_rs
262*11be35a1SLionel Sambuc
263*11be35a1SLionel Sambucregex_caret_2_rs_head() {
264*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with regex ^ case 2 RS"
265*11be35a1SLionel Sambuc}
266*11be35a1SLionel Sambuc
267*11be35a1SLionel Sambucregex_caret_2_rs_body() {
268*11be35a1SLionel Sambuc	atf_check \
269*11be35a1SLionel Sambuc		-o "inline:\naa1a2a\n\n" \
270*11be35a1SLionel Sambuc		-x "echo aaa1a2a | $awk 1 RS='^a'"
271*11be35a1SLionel Sambuc
272*11be35a1SLionel Sambuc}
273*11be35a1SLionel Sambuc
274*11be35a1SLionel Sambucatf_test_case regex_dollar_1_rs
275*11be35a1SLionel Sambuc
276*11be35a1SLionel Sambucregex_dollar_1_rs_head() {
277*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with regex $ case 1 RS"
278*11be35a1SLionel Sambuc}
279*11be35a1SLionel Sambuc
280*11be35a1SLionel Sambucregex_dollar_1_rs_body() {
281*11be35a1SLionel Sambuc	atf_check \
282*11be35a1SLionel Sambuc		-o "inline:a1a2a3a\n\n" \
283*11be35a1SLionel Sambuc		-x "echo a1a2a3a | $awk 1 RS='a$'"
284*11be35a1SLionel Sambuc
285*11be35a1SLionel Sambuc}
286*11be35a1SLionel Sambuc
287*11be35a1SLionel Sambucatf_test_case regex_dollar_2_rs
288*11be35a1SLionel Sambuc
289*11be35a1SLionel Sambucregex_dollar_2_rs_head() {
290*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with regex $ case 2 RS"
291*11be35a1SLionel Sambuc}
292*11be35a1SLionel Sambuc
293*11be35a1SLionel Sambucregex_dollar_2_rs_body() {
294*11be35a1SLionel Sambuc	atf_check \
295*11be35a1SLionel Sambuc		-o "inline:a1a2aaa\n\n" \
296*11be35a1SLionel Sambuc		-x "echo a1a2aaa | $awk 1 RS='a$'"
297*11be35a1SLionel Sambuc
298*11be35a1SLionel Sambuc}
299*11be35a1SLionel Sambuc
300*11be35a1SLionel Sambucatf_test_case regex_reallocation_rs
301*11be35a1SLionel Sambuc
302*11be35a1SLionel Sambucregex_reallocation_rs_head() {
303*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with regex reallocation RS"
304*11be35a1SLionel Sambuc}
305*11be35a1SLionel Sambuc
306*11be35a1SLionel Sambucregex_reallocation_rs_body() {
307*11be35a1SLionel Sambuc	atf_check \
308*11be35a1SLionel Sambuc		-o "inline:a\na\na\na\na\na\na\na\na\na10000\n\n" \
309*11be35a1SLionel Sambuc		-x "jot -s a 10000 | $awk 'NR>1' RS='999[0-9]'"
310*11be35a1SLionel Sambuc
311*11be35a1SLionel Sambuc}
312*11be35a1SLionel Sambuc
313*11be35a1SLionel Sambucatf_test_case empty_rs
314*11be35a1SLionel Sambuc
315*11be35a1SLionel Sambucempty_rs_head() {
316*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with empty RS"
317*11be35a1SLionel Sambuc}
318*11be35a1SLionel Sambuc
319*11be35a1SLionel Sambucempty_rs_body() {
320*11be35a1SLionel Sambuc	atf_check \
321*11be35a1SLionel Sambuc		-o "inline:foo\n" \
322*11be35a1SLionel Sambuc		-x "echo foo | $awk 1 RS=''"
323*11be35a1SLionel Sambuc
324*11be35a1SLionel Sambuc}
325*11be35a1SLionel Sambuc
326*11be35a1SLionel Sambucatf_test_case newline_rs
327*11be35a1SLionel Sambuc
328*11be35a1SLionel Sambucnewline_rs_head() {
329*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) with newline RS"
330*11be35a1SLionel Sambuc}
331*11be35a1SLionel Sambuc
332*11be35a1SLionel Sambucnewline_rs_body() {
333*11be35a1SLionel Sambuc	atf_check \
334*11be35a1SLionel Sambuc		-o "inline:r1f1:r1f2\nr2f1:r2f2\n" \
335*11be35a1SLionel Sambuc		-x "printf '\n\n\nr1f1\nr1f2\n\nr2f1\nr2f2\n\n\n' | $awk '{\$1=\$1}1' RS= OFS=:"
336*11be35a1SLionel Sambuc}
337*11be35a1SLionel Sambuc
338*11be35a1SLionel Sambucatf_test_case modify_subsep
339*11be35a1SLionel Sambuc
340*11be35a1SLionel Sambucmodify_subsep_head() {
341*11be35a1SLionel Sambuc	atf_set "descr" "Test awk(1) SUPSEP modification (PR/47306)"
342*11be35a1SLionel Sambuc}
343*11be35a1SLionel Sambuc
344*11be35a1SLionel Sambucmodify_subsep_body() {
345*11be35a1SLionel Sambuc	atf_check \
346*11be35a1SLionel Sambuc		-o "inline:1\n1\n1\n" \
347*11be35a1SLionel Sambuc		-x "printf '1\n1 2\n' | \
348*11be35a1SLionel Sambuc		$awk '1{ arr[\$1 SUBSEP \$2 SUBSEP ++cnt[\$1]]=1} {for (f in arr) print arr[f];}'"
349*11be35a1SLionel Sambuc}
350*11be35a1SLionel Sambuc
351*11be35a1SLionel Sambucatf_init_test_cases() {
352*11be35a1SLionel Sambuc
353*11be35a1SLionel Sambuc	atf_add_test_case big_regexp
354*11be35a1SLionel Sambuc	atf_add_test_case end
355*11be35a1SLionel Sambuc	atf_add_test_case string1
356*11be35a1SLionel Sambuc	atf_add_test_case multibyte
357*11be35a1SLionel Sambuc	atf_add_test_case period
358*11be35a1SLionel Sambuc	atf_add_test_case assign_NF
359*11be35a1SLionel Sambuc
360*11be35a1SLionel Sambuc	atf_add_test_case single_char_rs
361*11be35a1SLionel Sambuc	atf_add_test_case two_char_rs
362*11be35a1SLionel Sambuc	atf_add_test_case single_char_regex_group_rs
363*11be35a1SLionel Sambuc	atf_add_test_case two_char_regex_group_rs
364*11be35a1SLionel Sambuc	atf_add_test_case two_char_regex_star_rs
365*11be35a1SLionel Sambuc	atf_add_test_case single_char_regex_star_rs
366*11be35a1SLionel Sambuc	atf_add_test_case regex_two_star_rs
367*11be35a1SLionel Sambuc	atf_add_test_case regex_or_1_rs
368*11be35a1SLionel Sambuc	atf_add_test_case regex_or_2_rs
369*11be35a1SLionel Sambuc	atf_add_test_case regex_or_3_rs
370*11be35a1SLionel Sambuc	atf_add_test_case regex_caret_1_rs
371*11be35a1SLionel Sambuc	atf_add_test_case regex_caret_2_rs
372*11be35a1SLionel Sambuc	atf_add_test_case regex_dollar_1_rs
373*11be35a1SLionel Sambuc	atf_add_test_case regex_dollar_2_rs
374*11be35a1SLionel Sambuc	atf_add_test_case regex_reallocation_rs
375*11be35a1SLionel Sambuc	atf_add_test_case empty_rs
376*11be35a1SLionel Sambuc	atf_add_test_case newline_rs
377*11be35a1SLionel Sambuc	atf_add_test_case modify_subsep
378*11be35a1SLionel Sambuc}
379