1 package io.jawk.gawk;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 import io.jawk.AwkTestSupport;
26 import org.junit.Test;
27
28
29
30
31
32
33 public class GawkIT extends AbstractGawkSuite {
34
35 @Test
36 public void test_addcomma() throws Exception {
37 AwkTestSupport
38 .cliTest("GAWK addcomma")
39 .argument("-f", gawkFile("addcomma.awk"))
40 .stdin(gawkText("addcomma.in"))
41 .expectLines(gawkPath("addcomma.ok"))
42 .expectExit(0)
43 .runAndAssert();
44 }
45
46 @Test
47 public void test_anchgsub() throws Exception {
48 AwkTestSupport
49 .cliTest("GAWK anchgsub")
50 .argument("-f", gawkFile("anchgsub.awk"))
51 .stdin(gawkText("anchgsub.in"))
52 .expectLines(gawkPath("anchgsub.ok"))
53 .expectExit(0)
54 .runAndAssert();
55 }
56
57 @Test
58 public void test_anchor() throws Exception {
59 AwkTestSupport
60 .cliTest("GAWK anchor")
61 .argument("-f", gawkFile("anchor.awk"))
62 .stdin(gawkText("anchor.in"))
63 .expectLines(gawkPath("anchor.ok"))
64 .expectExit(0)
65 .runAndAssert();
66 }
67
68 @Test
69 public void test_arrayind1() throws Exception {
70 AwkTestSupport
71 .cliTest("GAWK arrayind1")
72 .argument("-f", gawkFile("arrayind1.awk"))
73 .stdin(gawkText("arrayind1.in"))
74 .expectLines(gawkPath("arrayind1.ok"))
75 .expectExit(0)
76 .runAndAssert();
77 }
78
79 @Test
80 public void test_arrayind2() throws Exception {
81 AwkTestSupport
82 .cliTest("GAWK arrayind2")
83 .argument("-f", gawkFile("arrayind2.awk"))
84 .expectLines(gawkPath("arrayind2.ok"))
85 .expectExit(0)
86 .runAndAssert();
87 }
88
89 @Test
90 public void test_arrayind3() throws Exception {
91 AwkTestSupport
92 .cliTest("GAWK arrayind3")
93 .argument("-f", gawkFile("arrayind3.awk"))
94 .expectLines(gawkPath("arrayind3.ok"))
95 .expectExit(0)
96 .runAndAssert();
97 }
98
99 @Test
100 public void test_arrayparm() throws Exception {
101 skip(NON_ZERO_TRANSCRIPT_REASON);
102 }
103
104 @Test
105 public void test_arrayprm2() throws Exception {
106 AwkTestSupport
107 .cliTest("GAWK arrayprm2")
108 .argument("-f", gawkFile("arrayprm2.awk"))
109 .expectLines(gawkPath("arrayprm2.ok"))
110 .expectExit(0)
111 .runAndAssert();
112 }
113
114 @Test
115 public void test_arrayprm3() throws Exception {
116 AwkTestSupport
117 .cliTest("GAWK arrayprm3")
118 .argument("-f", gawkFile("arrayprm3.awk"))
119 .expectLines(gawkPath("arrayprm3.ok"))
120 .expectExit(0)
121 .runAndAssert();
122 }
123
124 @Test
125 public void test_arrayref() throws Exception {
126 AwkTestSupport
127 .cliTest("GAWK arrayref")
128 .argument("-f", gawkFile("arrayref.awk"))
129 .expectLines(gawkPath("arrayref.ok"))
130 .expectExit(0)
131 .runAndAssert();
132 }
133
134 @Test
135 public void test_arrymem1() throws Exception {
136 AwkTestSupport
137 .cliTest("GAWK arrymem1")
138 .argument("-f", gawkFile("arrymem1.awk"))
139 .expectLines(gawkPath("arrymem1.ok"))
140 .expectExit(0)
141 .runAndAssert();
142 }
143
144 @Test
145 public void test_arryref2() throws Exception {
146 AwkTestSupport
147 .cliTest("GAWK arryref2")
148 .argument("-f", gawkFile("arryref2.awk"))
149 .expectLines(gawkPath("arryref2.ok"))
150 .expectExit(0)
151 .runAndAssert();
152 }
153
154 @Test
155 public void test_arryref3() throws Exception {
156 skip(NON_ZERO_TRANSCRIPT_REASON);
157 }
158
159 @Test
160 public void test_arryref4() throws Exception {
161 skip(NON_ZERO_TRANSCRIPT_REASON);
162 }
163
164 @Test
165 public void test_arryref5() throws Exception {
166 skip(NON_ZERO_TRANSCRIPT_REASON);
167 }
168
169 @Test
170 public void test_arynasty() throws Exception {
171 AwkTestSupport
172 .cliTest("GAWK arynasty")
173 .argument("-f", gawkFile("arynasty.awk"))
174 .expectLines(gawkPath("arynasty.ok"))
175 .expectExit(0)
176 .runAndAssert();
177 }
178
179 @Test
180 public void test_aryprm1() throws Exception {
181 skip(NON_ZERO_TRANSCRIPT_REASON);
182 }
183
184 @Test
185 public void test_aryprm2() throws Exception {
186 skip(NON_ZERO_TRANSCRIPT_REASON);
187 }
188
189 @Test
190 public void test_aryprm3() throws Exception {
191 skip(NON_ZERO_TRANSCRIPT_REASON);
192 }
193
194 @Test
195 public void test_aryprm4() throws Exception {
196 skip(NON_ZERO_TRANSCRIPT_REASON);
197 }
198
199 @Test
200 public void test_aryprm5() throws Exception {
201 skip(NON_ZERO_TRANSCRIPT_REASON);
202 }
203
204 @Test
205 public void test_aryprm6() throws Exception {
206 skip(NON_ZERO_TRANSCRIPT_REASON);
207 }
208
209 @Test
210 public void test_aryprm7() throws Exception {
211 skip(NON_ZERO_TRANSCRIPT_REASON);
212 }
213
214 @Test
215 public void test_aryprm8() throws Exception {
216 AwkTestSupport
217 .cliTest("GAWK aryprm8")
218 .argument("-f", gawkFile("aryprm8.awk"))
219 .expectLines(gawkPath("aryprm8.ok"))
220 .expectExit(0)
221 .runAndAssert();
222 }
223
224 @Test
225 public void test_aryprm9() throws Exception {
226 AwkTestSupport
227 .cliTest("GAWK aryprm9")
228 .argument("-f", gawkFile("aryprm9.awk"))
229 .expectLines(gawkPath("aryprm9.ok"))
230 .expectExit(0)
231 .runAndAssert();
232 }
233
234 @Test
235 public void test_arysubnm() throws Exception {
236 AwkTestSupport
237 .cliTest("GAWK arysubnm")
238 .argument("-f", gawkFile("arysubnm.awk"))
239 .expectLines(gawkPath("arysubnm.ok"))
240 .expectExit(0)
241 .runAndAssert();
242 }
243
244 @Test
245 public void test_aryunasgn() throws Exception {
246 AwkTestSupport
247 .cliTest("GAWK aryunasgn")
248 .argument("-f", gawkFile("aryunasgn.awk"))
249 .expectLines(gawkPath("aryunasgn.ok"))
250 .expectExit(0)
251 .runAndAssert();
252 }
253
254 @Test
255 public void test_asgext() throws Exception {
256 AwkTestSupport
257 .cliTest("GAWK asgext")
258 .argument("-f", gawkFile("asgext.awk"))
259 .stdin(gawkText("asgext.in"))
260 .expectLines(gawkPath("asgext.ok"))
261 .expectExit(0)
262 .runAndAssert();
263 }
264
265 @Test
266 public void test_assignnumfield() throws Exception {
267 AwkTestSupport
268 .cliTest("GAWK assignnumfield")
269 .argument("-f", gawkFile("assignnumfield.awk"))
270 .stdin(gawkText("assignnumfield.in"))
271 .expectLines(gawkPath("assignnumfield.ok"))
272 .expectExit(0)
273 .runAndAssert();
274 }
275
276 @Test
277 public void test_assignnumfield2() throws Exception {
278 AwkTestSupport
279 .cliTest("GAWK assignnumfield2")
280 .argument("-f", gawkFile("assignnumfield2.awk"))
281 .expectLines(gawkPath("assignnumfield2.ok"))
282 .expectExit(0)
283 .runAndAssert();
284 }
285
286 @Test
287 public void test_back89() throws Exception {
288 AwkTestSupport
289 .cliTest("GAWK back89")
290 .argument("-f", gawkFile("back89.awk"))
291 .stdin(gawkText("back89.in"))
292 .expectLines(gawkPath("back89.ok"))
293 .expectExit(0)
294 .runAndAssert();
295 }
296
297 @Test
298 public void test_backgsub() throws Exception {
299 AwkTestSupport
300 .cliTest("GAWK backgsub")
301 .argument("-f", gawkFile("backgsub.awk"))
302 .stdin(gawkText("backgsub.in"))
303 .expectLines(gawkPath("backgsub.ok"))
304 .expectExit(0)
305 .runAndAssert();
306 }
307
308 @Test
309 public void test_badassign1() throws Exception {
310 skip(NON_ZERO_TRANSCRIPT_REASON);
311 }
312
313 @Test
314 public void test_badbuild() throws Exception {
315 skip(NON_ZERO_TRANSCRIPT_REASON);
316 }
317
318 @Test
319 public void test_callparam() throws Exception {
320 skip(NON_ZERO_TRANSCRIPT_REASON);
321 }
322
323 @Test
324 public void test_childin() throws Exception {
325 AwkTestSupport
326 .cliTest("GAWK childin")
327 .argument("-f", gawkFile("childin.awk"))
328 .stdin(gawkText("childin.in"))
329 .expectLines(gawkPath("childin.ok"))
330 .expectExit(0)
331 .runAndAssert();
332 }
333
334 @Test
335 public void test_closebad() throws Exception {
336 AwkTestSupport
337 .cliTest("GAWK closebad")
338 .argument("-f", gawkFile("closebad.awk"))
339 .expectLines(gawkPath("closebad.ok"))
340 .expectExit(0)
341 .runAndAssert();
342 }
343
344 @Test
345 public void test_close_status() throws Exception {
346 AwkTestSupport
347 .cliTest("GAWK close_status")
348 .argument("-f", gawkFile("close_status.awk"))
349 .expectLines(gawkPath("close_status.ok"))
350 .expectExit(0)
351 .runAndAssert();
352 }
353
354 @Test
355 public void test_clsflnam() throws Exception {
356 AwkTestSupport
357 .cliTest("GAWK clsflnam")
358 .argument("-f", gawkFile("clsflnam.awk"))
359 .stdin(gawkText("clsflnam.in"))
360 .expectLines(gawkPath("clsflnam.ok"))
361 .expectExit(0)
362 .runAndAssert();
363 }
364
365 @Test
366 public void test_compare2() throws Exception {
367 AwkTestSupport
368 .cliTest("GAWK compare2")
369 .argument("-f", gawkFile("compare2.awk"))
370 .expectLines(gawkPath("compare2.ok"))
371 .expectExit(0)
372 .runAndAssert();
373 }
374
375 @Test
376 public void test_concat1() throws Exception {
377 AwkTestSupport
378 .cliTest("GAWK concat1")
379 .argument("-f", gawkFile("concat1.awk"))
380 .stdin(gawkText("concat1.in"))
381 .expectLines(gawkPath("concat1.ok"))
382 .expectExit(0)
383 .runAndAssert();
384 }
385
386 @Test
387 public void test_concat2() throws Exception {
388 AwkTestSupport
389 .cliTest("GAWK concat2")
390 .argument("-f", gawkFile("concat2.awk"))
391 .expectLines(gawkPath("concat2.ok"))
392 .expectExit(0)
393 .runAndAssert();
394 }
395
396 @Test
397 public void test_cmdlinefsbacknl() throws Exception {
398 skip(
399 "Shell-script target generated by Maketests; the in-process Jawk harness does not execute external shell scripts.");
400 }
401
402 @Test
403 public void test_concat3() throws Exception {
404 AwkTestSupport
405 .cliTest("GAWK concat3")
406 .argument("-f", gawkFile("concat3.awk"))
407 .expectLines(gawkPath("concat3.ok"))
408 .expectExit(0)
409 .runAndAssert();
410 }
411
412 @Test
413 public void test_concat4() throws Exception {
414 AwkTestSupport
415 .cliTest("GAWK concat4")
416 .argument("--locale", "en-US")
417 .argument("-f", gawkFile("concat4.awk"))
418 .stdin(gawkText("concat4.in"))
419 .expectLines(gawkPath("concat4.ok"))
420 .expectExit(0)
421 .runAndAssert();
422 }
423
424 @Test
425 public void test_concat5() throws Exception {
426 AwkTestSupport
427 .cliTest("GAWK concat5")
428 .argument("-f", gawkFile("concat5.awk"))
429 .expectLines(gawkPath("concat5.ok"))
430 .expectExit(0)
431 .runAndAssert();
432 }
433
434 @Test
435 public void test_convfmt() throws Exception {
436 AwkTestSupport
437 .cliTest("GAWK convfmt")
438 .argument("-f", gawkFile("convfmt.awk"))
439 .expectLines(gawkPath("convfmt.ok"))
440 .expectExit(0)
441 .runAndAssert();
442 }
443
444 @Test
445 public void test_datanonl() throws Exception {
446 AwkTestSupport
447 .cliTest("GAWK datanonl")
448 .argument("-f", gawkFile("datanonl.awk"))
449 .stdin(gawkText("datanonl.in"))
450 .expectLines(gawkPath("datanonl.ok"))
451 .expectExit(0)
452 .runAndAssert();
453 }
454
455 @Test
456 public void test_delargv() throws Exception {
457 AwkTestSupport
458 .cliTest("GAWK delargv")
459 .argument("-f", gawkFile("delargv.awk"))
460 .expectLines(gawkPath("delargv.ok"))
461 .expectExit(0)
462 .runAndAssert();
463 }
464
465 @Test
466 public void test_delarpm2() throws Exception {
467 AwkTestSupport
468 .cliTest("GAWK delarpm2")
469 .argument("-f", gawkFile("delarpm2.awk"))
470 .expectLines(gawkPath("delarpm2.ok"))
471 .expectExit(0)
472 .runAndAssert();
473 }
474
475 @Test
476 public void test_delarprm() throws Exception {
477 AwkTestSupport
478 .cliTest("GAWK delarprm")
479 .argument("-f", gawkFile("delarprm.awk"))
480 .expectLines(gawkPath("delarprm.ok"))
481 .expectExit(0)
482 .runAndAssert();
483 }
484
485 @Test
486 public void test_delfunc() throws Exception {
487 skip(NON_ZERO_TRANSCRIPT_REASON);
488 }
489
490 @Test
491 public void test_dfacheck2() throws Exception {
492 AwkTestSupport
493 .cliTest("GAWK dfacheck2")
494 .argument("-f", gawkFile("dfacheck2.awk"))
495 .stdin(gawkText("dfacheck2.in"))
496 .expectLines(gawkPath("dfacheck2.ok"))
497 .expectExit(0)
498 .runAndAssert();
499 }
500
501 @Test
502 public void test_dfamb1() throws Exception {
503 AwkTestSupport
504 .cliTest("GAWK dfamb1")
505 .argument("--locale", "en-US")
506 .argument("-f", gawkFile("dfamb1.awk"))
507 .stdin(gawkText("dfamb1.in"))
508 .expectLines(gawkPath("dfamb1.ok"))
509 .expectExit(0)
510 .runAndAssert();
511 }
512
513 @Test
514 public void test_dfastress() throws Exception {
515 AwkTestSupport
516 .cliTest("GAWK dfastress")
517 .argument("-f", gawkFile("dfastress.awk"))
518 .expectLines(gawkPath("dfastress.ok"))
519 .expectExit(0)
520 .runAndAssert();
521 }
522
523 @Test
524 public void test_divzero() throws Exception {
525 skip(NON_ZERO_TRANSCRIPT_REASON);
526 }
527
528 @Test
529 public void test_divzero2() throws Exception {
530 AwkTestSupport
531 .cliTest("GAWK divzero2")
532 .argument("-f", gawkFile("divzero2.awk"))
533 .expectLines(gawkPath("divzero2.ok"))
534 .expectExit(0)
535 .runAndAssert();
536 }
537
538 @Test
539 public void test_dynlj() throws Exception {
540 AwkTestSupport
541 .cliTest("GAWK dynlj")
542 .argument("-f", gawkFile("dynlj.awk"))
543 .expectLines(gawkPath("dynlj.ok"))
544 .expectExit(0)
545 .runAndAssert();
546 }
547
548 @Test
549 public void test_eofsplit() throws Exception {
550 AwkTestSupport
551 .cliTest("GAWK eofsplit")
552 .argument("-f", gawkFile("eofsplit.awk"))
553 .expectLines(gawkPath("eofsplit.ok"))
554 .expectExit(0)
555 .runAndAssert();
556 }
557
558 @Test
559 public void test_exit2() throws Exception {
560 AwkTestSupport
561 .cliTest("GAWK exit2")
562 .argument("-f", gawkFile("exit2.awk"))
563 .expectLines(gawkPath("exit2.ok"))
564 .expectExit(0)
565 .runAndAssert();
566 }
567
568 @Test
569 public void test_exitval2() throws Exception {
570 AwkTestSupport
571 .cliTest("GAWK exitval2")
572 .argument("-f", gawkFile("exitval2.awk"))
573 .expectLines(gawkPath("exitval2.ok"))
574 .expectExit(0)
575 .runAndAssert();
576 }
577
578 @Test
579 public void test_exitval3() throws Exception {
580 skip(NON_ZERO_TRANSCRIPT_REASON);
581 }
582
583 @Test
584 public void test_fcall_exit() throws Exception {
585 skip(NON_ZERO_TRANSCRIPT_REASON);
586 }
587
588 @Test
589 public void test_fcall_exit2() throws Exception {
590 skip(NON_ZERO_TRANSCRIPT_REASON);
591 }
592
593 @Test
594 public void test_fieldassign() throws Exception {
595 AwkTestSupport
596 .cliTest("GAWK fieldassign")
597 .argument("-f", gawkFile("fieldassign.awk"))
598 .stdin(gawkText("fieldassign.in"))
599 .expectLines(gawkPath("fieldassign.ok"))
600 .expectExit(0)
601 .runAndAssert();
602 }
603
604 @Test
605 public void test_fldchg() throws Exception {
606 AwkTestSupport
607 .cliTest("GAWK fldchg")
608 .argument("-f", gawkFile("fldchg.awk"))
609 .stdin(gawkText("fldchg.in"))
610 .expectLines(gawkPath("fldchg.ok"))
611 .expectExit(0)
612 .runAndAssert();
613 }
614
615 @Test
616 public void test_fldchgnf() throws Exception {
617 AwkTestSupport
618 .cliTest("GAWK fldchgnf")
619 .argument("-f", gawkFile("fldchgnf.awk"))
620 .stdin(gawkText("fldchgnf.in"))
621 .expectLines(gawkPath("fldchgnf.ok"))
622 .expectExit(0)
623 .runAndAssert();
624 }
625
626 @Test
627 public void test_fldterm() throws Exception {
628 AwkTestSupport
629 .cliTest("GAWK fldterm")
630 .argument("-f", gawkFile("fldterm.awk"))
631 .stdin(gawkText("fldterm.in"))
632 .expectLines(gawkPath("fldterm.ok"))
633 .expectExit(0)
634 .runAndAssert();
635 }
636
637 @Test
638 public void test_fnamedat() throws Exception {
639 skip(NON_ZERO_TRANSCRIPT_REASON);
640 }
641
642 @Test
643 public void test_fnarray() throws Exception {
644 skip(NON_ZERO_TRANSCRIPT_REASON);
645 }
646
647 @Test
648 public void test_fnarray2() throws Exception {
649 skip(NON_ZERO_TRANSCRIPT_REASON);
650 }
651
652 @Test
653 public void test_fnaryscl() throws Exception {
654 skip(NON_ZERO_TRANSCRIPT_REASON);
655 }
656
657 @Test
658 public void test_fnasgnm() throws Exception {
659 skip(NON_ZERO_TRANSCRIPT_REASON);
660 }
661
662 @Test
663 public void test_fnmisc() throws Exception {
664 skip(NON_ZERO_TRANSCRIPT_REASON);
665 }
666
667 @Test
668 public void test_fordel() throws Exception {
669 AwkTestSupport
670 .cliTest("GAWK fordel")
671 .argument("-f", gawkFile("fordel.awk"))
672 .expectLines(gawkPath("fordel.ok"))
673 .expectExit(0)
674 .runAndAssert();
675 }
676
677 @Test
678 public void test_forref() throws Exception {
679 AwkTestSupport
680 .cliTest("GAWK forref")
681 .argument("-f", gawkFile("forref.awk"))
682 .expectLines(gawkPath("forref.ok"))
683 .expectExit(0)
684 .runAndAssert();
685 }
686
687 @Test
688 public void test_forsimp() throws Exception {
689 AwkTestSupport
690 .cliTest("GAWK forsimp")
691 .argument("-f", gawkFile("forsimp.awk"))
692 .expectLines(gawkPath("forsimp.ok"))
693 .expectExit(0)
694 .runAndAssert();
695 }
696
697 @Test
698 public void test_fsbs() throws Exception {
699 AwkTestSupport
700 .cliTest("GAWK fsbs")
701 .argument("-f", gawkFile("fsbs.awk"))
702 .stdin(gawkText("fsbs.in"))
703 .expectLines(gawkPath("fsbs.ok"))
704 .expectExit(0)
705 .runAndAssert();
706 }
707
708 @Test
709 public void test_fscaret() throws Exception {
710 AwkTestSupport
711 .cliTest("GAWK fscaret")
712 .argument("-f", gawkFile("fscaret.awk"))
713 .stdin(gawkText("fscaret.in"))
714 .expectLines(gawkPath("fscaret.ok"))
715 .expectExit(0)
716 .runAndAssert();
717 }
718
719 @Test
720 public void test_fsnul1() throws Exception {
721 AwkTestSupport
722 .cliTest("GAWK fsnul1")
723 .argument("-f", gawkFile("fsnul1.awk"))
724 .stdin(gawkText("fsnul1.in"))
725 .expectLines(gawkPath("fsnul1.ok"))
726 .expectExit(0)
727 .runAndAssert();
728 }
729
730 @Test
731 public void test_fsrs() throws Exception {
732 AwkTestSupport
733 .cliTest("GAWK fsrs")
734 .argument("-f", gawkFile("fsrs.awk"))
735 .stdin(gawkText("fsrs.in"))
736 .expectLines(gawkPath("fsrs.ok"))
737 .expectExit(0)
738 .runAndAssert();
739 }
740
741 @Test
742 public void test_fstabplus() throws Exception {
743 AwkTestSupport
744 .cliTest("GAWK fstabplus")
745 .argument("-f", gawkFile("fstabplus.awk"))
746 .stdin(gawkText("fstabplus.in"))
747 .expectLines(gawkPath("fstabplus.ok"))
748 .expectExit(0)
749 .runAndAssert();
750 }
751
752 @Test
753 public void test_funsemnl() throws Exception {
754 AwkTestSupport
755 .cliTest("GAWK funsemnl")
756 .argument("-f", gawkFile("funsemnl.awk"))
757 .expectLines(gawkPath("funsemnl.ok"))
758 .expectExit(0)
759 .runAndAssert();
760 }
761
762 @Test
763 public void test_funsmnam() throws Exception {
764 skip(NON_ZERO_TRANSCRIPT_REASON);
765 }
766
767 @Test
768 public void test_funstack() throws Exception {
769 AwkTestSupport
770 .cliTest("GAWK funstack")
771 .argument("-f", gawkFile("funstack.awk"))
772 .stdin(gawkText("funstack.in"))
773 .expectLines(gawkPath("funstack.ok"))
774 .expectExit(0)
775 .runAndAssert();
776 }
777
778 @Test
779 public void test_getline() throws Exception {
780 AwkTestSupport
781 .cliTest("GAWK getline")
782 .argument("-f", gawkFile("getline.awk"))
783 .stdin(gawkText("getline.in"))
784 .expectLines(gawkPath("getline.ok"))
785 .expectExit(0)
786 .runAndAssert();
787 }
788
789 @Test
790 public void test_getline3() throws Exception {
791 AwkTestSupport
792 .cliTest("GAWK getline3")
793 .argument("-f", gawkFile("getline3.awk"))
794 .expectLines(gawkPath("getline3.ok"))
795 .expectExit(0)
796 .runAndAssert();
797 }
798
799 @Test
800 public void test_getline4() throws Exception {
801 AwkTestSupport
802 .cliTest("GAWK getline4")
803 .argument("-f", gawkFile("getline4.awk"))
804 .stdin(gawkText("getline4.in"))
805 .expectLines(gawkPath("getline4.ok"))
806 .expectExit(0)
807 .runAndAssert();
808 }
809
810 @Test
811 public void test_getline5() throws Exception {
812 AwkTestSupport
813 .cliTest("GAWK getline5")
814 .argument("-f", gawkFile("getline5.awk"))
815 .expectLines(gawkPath("getline5.ok"))
816 .expectExit(0)
817 .runAndAssert();
818 }
819
820 @Test
821 public void test_getlnfa() throws Exception {
822 skip(NON_ZERO_TRANSCRIPT_REASON);
823 }
824
825 @Test
826 public void test_getnr2tb() throws Exception {
827 AwkTestSupport
828 .cliTest("GAWK getnr2tb")
829 .argument("-f", gawkFile("getnr2tb.awk"))
830 .stdin(gawkText("getnr2tb.in"))
831 .expectLines(gawkPath("getnr2tb.ok"))
832 .expectExit(0)
833 .runAndAssert();
834 }
835
836 @Test
837 public void test_getnr2tm() throws Exception {
838 AwkTestSupport
839 .cliTest("GAWK getnr2tm")
840 .argument("-f", gawkFile("getnr2tm.awk"))
841 .stdin(gawkText("getnr2tm.in"))
842 .expectLines(gawkPath("getnr2tm.ok"))
843 .expectExit(0)
844 .runAndAssert();
845 }
846
847 @Test
848 public void test_gsubasgn() throws Exception {
849 skip(NON_ZERO_TRANSCRIPT_REASON);
850 }
851
852 @Test
853 public void test_gsubtest() throws Exception {
854 AwkTestSupport
855 .cliTest("GAWK gsubtest")
856 .argument("-f", gawkFile("gsubtest.awk"))
857 .expectLines(gawkPath("gsubtest.ok"))
858 .expectExit(0)
859 .runAndAssert();
860 }
861
862 @Test
863 public void test_gsubtst2() throws Exception {
864 AwkTestSupport
865 .cliTest("GAWK gsubtst2")
866 .argument("-f", gawkFile("gsubtst2.awk"))
867 .expectLines(gawkPath("gsubtst2.ok"))
868 .expectExit(0)
869 .runAndAssert();
870 }
871
872 @Test
873 public void test_gsubtst4() throws Exception {
874 AwkTestSupport
875 .cliTest("GAWK gsubtst4")
876 .argument("-f", gawkFile("gsubtst4.awk"))
877 .expectLines(gawkPath("gsubtst4.ok"))
878 .expectExit(0)
879 .runAndAssert();
880 }
881
882 @Test
883 public void test_gsubtst5() throws Exception {
884 AwkTestSupport
885 .cliTest("GAWK gsubtst5")
886 .argument("-f", gawkFile("gsubtst5.awk"))
887 .stdin(gawkText("gsubtst5.in"))
888 .expectLines(gawkPath("gsubtst5.ok"))
889 .expectExit(0)
890 .runAndAssert();
891 }
892
893 @Test
894 public void test_gsubtst6() throws Exception {
895 AwkTestSupport
896 .cliTest("GAWK gsubtst6")
897 .argument("-f", gawkFile("gsubtst6.awk"))
898 .expectLines(gawkPath("gsubtst6.ok"))
899 .expectExit(0)
900 .runAndAssert();
901 }
902
903 @Test
904 public void test_gsubtst7() throws Exception {
905 AwkTestSupport
906 .cliTest("GAWK gsubtst7")
907 .argument("-f", gawkFile("gsubtst7.awk"))
908 .stdin(gawkText("gsubtst7.in"))
909 .expectLines(gawkPath("gsubtst7.ok"))
910 .expectExit(0)
911 .runAndAssert();
912 }
913
914 @Test
915 public void test_gsubtst8() throws Exception {
916 AwkTestSupport
917 .cliTest("GAWK gsubtst8")
918 .argument("-f", gawkFile("gsubtst8.awk"))
919 .stdin(gawkText("gsubtst8.in"))
920 .expectLines(gawkPath("gsubtst8.ok"))
921 .expectExit(0)
922 .runAndAssert();
923 }
924
925 @Test
926 public void test_hex() throws Exception {
927 AwkTestSupport
928 .cliTest("GAWK hex")
929 .argument("-f", gawkFile("hex.awk"))
930 .expectLines(gawkPath("hex.ok"))
931 .expectExit(0)
932 .runAndAssert();
933 }
934
935 @Test
936 public void test_hex2() throws Exception {
937 AwkTestSupport
938 .cliTest("GAWK hex2")
939 .argument("-f", gawkFile("hex2.awk"))
940 .stdin(gawkText("hex2.in"))
941 .expectLines(gawkPath("hex2.ok"))
942 .expectExit(0)
943 .runAndAssert();
944 }
945
946 @Test
947 public void test_hsprint() throws Exception {
948 AwkTestSupport
949 .cliTest("GAWK hsprint")
950 .argument("-f", gawkFile("hsprint.awk"))
951 .expectLines(gawkPath("hsprint.ok"))
952 .expectExit(0)
953 .runAndAssert();
954 }
955
956 @Test
957 public void test_inpref() throws Exception {
958 AwkTestSupport
959 .cliTest("GAWK inpref")
960 .argument("-f", gawkFile("inpref.awk"))
961 .stdin(gawkText("inpref.in"))
962 .expectLines(gawkPath("inpref.ok"))
963 .expectExit(0)
964 .runAndAssert();
965 }
966
967 @Test
968 public void test_inputred() throws Exception {
969 AwkTestSupport
970 .cliTest("GAWK inputred")
971 .argument("-f", gawkFile("inputred.awk"))
972 .expectLines(gawkPath("inputred.ok"))
973 .expectExit(0)
974 .runAndAssert();
975 }
976
977 @Test
978 public void test_intest() throws Exception {
979 AwkTestSupport
980 .cliTest("GAWK intest")
981 .argument("-f", gawkFile("intest.awk"))
982 .expectLines(gawkPath("intest.ok"))
983 .expectExit(0)
984 .runAndAssert();
985 }
986
987 @Test
988 public void test_intprec() throws Exception {
989 AwkTestSupport
990 .cliTest("GAWK intprec")
991 .argument("-f", gawkFile("intprec.awk"))
992 .expectLines(gawkPath("intprec.ok"))
993 .expectExit(0)
994 .runAndAssert();
995 }
996
997 @Test
998 public void test_iobug1() throws Exception {
999 AwkTestSupport
1000 .cliTest("GAWK iobug1")
1001 .argument("-f", gawkFile("iobug1.awk"))
1002 .expectLines(gawkPath("iobug1.ok"))
1003 .expectExit(0)
1004 .runAndAssert();
1005 }
1006
1007 @Test
1008 public void test_leaddig() throws Exception {
1009 AwkTestSupport
1010 .cliTest("GAWK leaddig")
1011 .argument("-f", gawkFile("leaddig.awk"))
1012 .expectLines(gawkPath("leaddig.ok"))
1013 .expectExit(0)
1014 .runAndAssert();
1015 }
1016
1017 @Test
1018 public void test_leadnl() throws Exception {
1019 AwkTestSupport
1020 .cliTest("GAWK leadnl")
1021 .argument("-f", gawkFile("leadnl.awk"))
1022 .stdin(gawkText("leadnl.in"))
1023 .expectLines(gawkPath("leadnl.ok"))
1024 .expectExit(0)
1025 .runAndAssert();
1026 }
1027
1028 @Test
1029 public void test_longsub() throws Exception {
1030 AwkTestSupport
1031 .cliTest("GAWK longsub")
1032 .argument("-f", gawkFile("longsub.awk"))
1033 .stdin(gawkText("longsub.in"))
1034 .expectLines(gawkPath("longsub.ok"))
1035 .expectExit(0)
1036 .runAndAssert();
1037 }
1038
1039 @Test
1040 public void test_manglprm() throws Exception {
1041 AwkTestSupport
1042 .cliTest("GAWK manglprm")
1043 .argument("-f", gawkFile("manglprm.awk"))
1044 .stdin(gawkText("manglprm.in"))
1045 .expectLines(gawkPath("manglprm.ok"))
1046 .expectExit(0)
1047 .runAndAssert();
1048 }
1049
1050 @Test
1051 public void test_math() throws Exception {
1052 AwkTestSupport
1053 .cliTest("GAWK math")
1054 .argument("-f", gawkFile("math.awk"))
1055 .expectLines(gawkPath("math.ok"))
1056 .expectExit(0)
1057 .runAndAssert();
1058 }
1059
1060 @Test
1061 public void test_membug1() throws Exception {
1062 AwkTestSupport
1063 .cliTest("GAWK membug1")
1064 .argument("-f", gawkFile("membug1.awk"))
1065 .stdin(gawkText("membug1.in"))
1066 .expectLines(gawkPath("membug1.ok"))
1067 .expectExit(0)
1068 .runAndAssert();
1069 }
1070
1071 @Test
1072 public void test_memleak() throws Exception {
1073 AwkTestSupport
1074 .cliTest("GAWK memleak")
1075 .argument("-f", gawkFile("memleak.awk"))
1076 .expectLines(gawkPath("memleak.ok"))
1077 .expectExit(0)
1078 .runAndAssert();
1079 }
1080
1081 @Test
1082 public void test_minusstr() throws Exception {
1083 AwkTestSupport
1084 .cliTest("GAWK minusstr")
1085 .argument("-f", gawkFile("minusstr.awk"))
1086 .expectLines(gawkPath("minusstr.ok"))
1087 .expectExit(0)
1088 .runAndAssert();
1089 }
1090
1091 @Test
1092 public void test_mmap8k() throws Exception {
1093 AwkTestSupport
1094 .cliTest("GAWK mmap8k")
1095 .argument("-f", gawkFile("mmap8k.awk"))
1096 .stdin(gawkText("mmap8k.in"))
1097 .expectLines(gawkPath("mmap8k.ok"))
1098 .expectExit(0)
1099 .runAndAssert();
1100 }
1101
1102 @Test
1103 public void test_nasty() throws Exception {
1104 AwkTestSupport
1105 .cliTest("GAWK nasty")
1106 .argument("-f", gawkFile("nasty.awk"))
1107 .expectLines(gawkPath("nasty.ok"))
1108 .expectExit(0)
1109 .runAndAssert();
1110 }
1111
1112 @Test
1113 public void test_nasty2() throws Exception {
1114 AwkTestSupport
1115 .cliTest("GAWK nasty2")
1116 .argument("-f", gawkFile("nasty2.awk"))
1117 .expectLines(gawkPath("nasty2.ok"))
1118 .expectExit(0)
1119 .runAndAssert();
1120 }
1121
1122 @Test
1123 public void test_negexp() throws Exception {
1124 AwkTestSupport
1125 .cliTest("GAWK negexp")
1126 .argument("-f", gawkFile("negexp.awk"))
1127 .expectLines(gawkPath("negexp.ok"))
1128 .expectExit(0)
1129 .runAndAssert();
1130 }
1131
1132 @Test
1133 public void test_negrange() throws Exception {
1134 AwkTestSupport
1135 .cliTest("GAWK negrange")
1136 .argument("-f", gawkFile("negrange.awk"))
1137 .expectLines(gawkPath("negrange.ok"))
1138 .expectExit(0)
1139 .runAndAssert();
1140 }
1141
1142 @Test
1143 public void test_nested() throws Exception {
1144 AwkTestSupport
1145 .cliTest("GAWK nested")
1146 .argument("-f", gawkFile("nested.awk"))
1147 .stdin(gawkText("nested.in"))
1148 .expectLines(gawkPath("nested.ok"))
1149 .expectExit(0)
1150 .runAndAssert();
1151 }
1152
1153 @Test
1154 public void test_nfldstr() throws Exception {
1155 AwkTestSupport
1156 .cliTest("GAWK nfldstr")
1157 .argument("-f", gawkFile("nfldstr.awk"))
1158 .stdin(gawkText("nfldstr.in"))
1159 .expectLines(gawkPath("nfldstr.ok"))
1160 .expectExit(0)
1161 .runAndAssert();
1162 }
1163
1164 @Test
1165 public void test_nfloop() throws Exception {
1166 AwkTestSupport
1167 .cliTest("GAWK nfloop")
1168 .argument("-f", gawkFile("nfloop.awk"))
1169 .expectLines(gawkPath("nfloop.ok"))
1170 .expectExit(0)
1171 .runAndAssert();
1172 }
1173
1174 @Test
1175 public void test_nfneg() throws Exception {
1176 skip(NON_ZERO_TRANSCRIPT_REASON);
1177 }
1178
1179 @Test
1180 public void test_nfset() throws Exception {
1181 AwkTestSupport
1182 .cliTest("GAWK nfset")
1183 .argument("-f", gawkFile("nfset.awk"))
1184 .stdin(gawkText("nfset.in"))
1185 .expectLines(gawkPath("nfset.ok"))
1186 .expectExit(0)
1187 .runAndAssert();
1188 }
1189
1190 @Test
1191 public void test_nlfldsep() throws Exception {
1192 AwkTestSupport
1193 .cliTest("GAWK nlfldsep")
1194 .argument("-f", gawkFile("nlfldsep.awk"))
1195 .stdin(gawkText("nlfldsep.in"))
1196 .expectLines(gawkPath("nlfldsep.ok"))
1197 .expectExit(0)
1198 .runAndAssert();
1199 }
1200
1201 @Test
1202 public void test_nlinstr() throws Exception {
1203 AwkTestSupport
1204 .cliTest("GAWK nlinstr")
1205 .argument("-f", gawkFile("nlinstr.awk"))
1206 .stdin(gawkText("nlinstr.in"))
1207 .expectLines(gawkPath("nlinstr.ok"))
1208 .expectExit(0)
1209 .runAndAssert();
1210 }
1211
1212 @Test
1213 public void test_nlstrina() throws Exception {
1214 AwkTestSupport
1215 .cliTest("GAWK nlstrina")
1216 .argument("-f", gawkFile("nlstrina.awk"))
1217 .expectLines(gawkPath("nlstrina.ok"))
1218 .expectExit(0)
1219 .runAndAssert();
1220 }
1221
1222 @Test
1223 public void test_noloop1() throws Exception {
1224 AwkTestSupport
1225 .cliTest("GAWK noloop1")
1226 .argument("-f", gawkFile("noloop1.awk"))
1227 .stdin(gawkText("noloop1.in"))
1228 .expectLines(gawkPath("noloop1.ok"))
1229 .expectExit(0)
1230 .runAndAssert();
1231 }
1232
1233 @Test
1234 public void test_noloop2() throws Exception {
1235 AwkTestSupport
1236 .cliTest("GAWK noloop2")
1237 .argument("-f", gawkFile("noloop2.awk"))
1238 .stdin(gawkText("noloop2.in"))
1239 .expectLines(gawkPath("noloop2.ok"))
1240 .expectExit(0)
1241 .runAndAssert();
1242 }
1243
1244 @Test
1245 public void test_noparms() throws Exception {
1246 skip(NON_ZERO_TRANSCRIPT_REASON);
1247 }
1248
1249 @Test
1250 public void test_nulinsrc() throws Exception {
1251 skip(NON_ZERO_TRANSCRIPT_REASON);
1252 }
1253
1254 @Test
1255 public void test_nulrsend() throws Exception {
1256 AwkTestSupport
1257 .cliTest("GAWK nulrsend")
1258 .argument("-f", gawkFile("nulrsend.awk"))
1259 .stdin(gawkText("nulrsend.in"))
1260 .expectLines(gawkPath("nulrsend.ok"))
1261 .expectExit(0)
1262 .runAndAssert();
1263 }
1264
1265 @Test
1266 public void test_numindex() throws Exception {
1267 AwkTestSupport
1268 .cliTest("GAWK numindex")
1269 .argument("-f", gawkFile("numindex.awk"))
1270 .stdin(gawkText("numindex.in"))
1271 .expectLines(gawkPath("numindex.ok"))
1272 .expectExit(0)
1273 .runAndAssert();
1274 }
1275
1276 @Test
1277 public void test_numrange() throws Exception {
1278 AwkTestSupport
1279 .cliTest("GAWK numrange")
1280 .argument("-f", gawkFile("numrange.awk"))
1281 .expectLines(gawkPath("numrange.ok"))
1282 .expectExit(0)
1283 .runAndAssert();
1284 }
1285
1286 @Test
1287 public void test_numstr1() throws Exception {
1288 AwkTestSupport
1289 .cliTest("GAWK numstr1")
1290 .argument("-f", gawkFile("numstr1.awk"))
1291 .expectLines(gawkPath("numstr1.ok"))
1292 .expectExit(0)
1293 .runAndAssert();
1294 }
1295
1296 @Test
1297 public void test_numsubstr() throws Exception {
1298 AwkTestSupport
1299 .cliTest("GAWK numsubstr")
1300 .argument("-f", gawkFile("numsubstr.awk"))
1301 .stdin(gawkText("numsubstr.in"))
1302 .expectLines(gawkPath("numsubstr.ok"))
1303 .expectExit(0)
1304 .runAndAssert();
1305 }
1306
1307 @Test
1308 public void test_octsub() throws Exception {
1309 AwkTestSupport
1310 .cliTest("GAWK octsub")
1311 .argument("-f", gawkFile("octsub.awk"))
1312 .expectLines(gawkPath("octsub.ok"))
1313 .expectExit(0)
1314 .runAndAssert();
1315 }
1316
1317 @Test
1318 public void test_ofmt() throws Exception {
1319 AwkTestSupport
1320 .cliTest("GAWK ofmt")
1321 .argument("-f", gawkFile("ofmt.awk"))
1322 .stdin(gawkText("ofmt.in"))
1323 .expectLines(gawkPath("ofmt.ok"))
1324 .expectExit(0)
1325 .runAndAssert();
1326 }
1327
1328 @Test
1329 public void test_ofmta() throws Exception {
1330 AwkTestSupport
1331 .cliTest("GAWK ofmta")
1332 .argument("-f", gawkFile("ofmta.awk"))
1333 .expectLines(gawkPath("ofmta.ok"))
1334 .expectExit(0)
1335 .runAndAssert();
1336 }
1337
1338 @Test
1339 public void test_ofmtbig() throws Exception {
1340 AwkTestSupport
1341 .cliTest("GAWK ofmtbig")
1342 .argument("-f", gawkFile("ofmtbig.awk"))
1343 .stdin(gawkText("ofmtbig.in"))
1344 .expectLines(gawkPath("ofmtbig.ok"))
1345 .expectExit(0)
1346 .runAndAssert();
1347 }
1348
1349 @Test
1350 public void test_ofmtfidl() throws Exception {
1351 AwkTestSupport
1352 .cliTest("GAWK ofmtfidl")
1353 .argument("-f", gawkFile("ofmtfidl.awk"))
1354 .stdin(gawkText("ofmtfidl.in"))
1355 .expectLines(gawkPath("ofmtfidl.ok"))
1356 .expectExit(0)
1357 .runAndAssert();
1358 }
1359
1360 @Test
1361 public void test_ofmts() throws Exception {
1362 AwkTestSupport
1363 .cliTest("GAWK ofmts")
1364 .argument("-f", gawkFile("ofmts.awk"))
1365 .stdin(gawkText("ofmts.in"))
1366 .expectLines(gawkPath("ofmts.ok"))
1367 .expectExit(0)
1368 .runAndAssert();
1369 }
1370
1371 @Test
1372 public void test_ofmtstrnum() throws Exception {
1373 AwkTestSupport
1374 .cliTest("GAWK ofmtstrnum")
1375 .argument("-f", gawkFile("ofmtstrnum.awk"))
1376 .expectLines(gawkPath("ofmtstrnum.ok"))
1377 .expectExit(0)
1378 .runAndAssert();
1379 }
1380
1381 @Test
1382 public void test_ofs1() throws Exception {
1383 AwkTestSupport
1384 .cliTest("GAWK ofs1")
1385 .argument("-f", gawkFile("ofs1.awk"))
1386 .stdin(gawkText("ofs1.in"))
1387 .expectLines(gawkPath("ofs1.ok"))
1388 .expectExit(0)
1389 .runAndAssert();
1390 }
1391
1392 @Test
1393 public void test_onlynl() throws Exception {
1394 AwkTestSupport
1395 .cliTest("GAWK onlynl")
1396 .argument("-f", gawkFile("onlynl.awk"))
1397 .stdin(gawkText("onlynl.in"))
1398 .expectLines(gawkPath("onlynl.ok"))
1399 .expectExit(0)
1400 .runAndAssert();
1401 }
1402
1403 @Test
1404 public void test_opasnidx() throws Exception {
1405 AwkTestSupport
1406 .cliTest("GAWK opasnidx")
1407 .argument("-f", gawkFile("opasnidx.awk"))
1408 .expectLines(gawkPath("opasnidx.ok"))
1409 .expectExit(0)
1410 .runAndAssert();
1411 }
1412
1413 @Test
1414 public void test_opasnslf() throws Exception {
1415 AwkTestSupport
1416 .cliTest("GAWK opasnslf")
1417 .argument("-f", gawkFile("opasnslf.awk"))
1418 .expectLines(gawkPath("opasnslf.ok"))
1419 .expectExit(0)
1420 .runAndAssert();
1421 }
1422
1423 @Test
1424 public void test_paramdup() throws Exception {
1425 skip(NON_ZERO_TRANSCRIPT_REASON);
1426 }
1427
1428 @Test
1429 public void test_paramres() throws Exception {
1430 skip(NON_ZERO_TRANSCRIPT_REASON);
1431 }
1432
1433 @Test
1434 public void test_paramtyp() throws Exception {
1435 AwkTestSupport
1436 .cliTest("GAWK paramtyp")
1437 .argument("-f", gawkFile("paramtyp.awk"))
1438 .expectLines(gawkPath("paramtyp.ok"))
1439 .expectExit(0)
1440 .runAndAssert();
1441 }
1442
1443 @Test
1444 public void test_paramuninitglobal() throws Exception {
1445 AwkTestSupport
1446 .cliTest("GAWK paramuninitglobal")
1447 .argument("-f", gawkFile("paramuninitglobal.awk"))
1448 .expectLines(gawkPath("paramuninitglobal.ok"))
1449 .expectExit(0)
1450 .runAndAssert();
1451 }
1452
1453 @Test
1454 public void test_parse1() throws Exception {
1455 AwkTestSupport
1456 .cliTest("GAWK parse1")
1457 .argument("-f", gawkFile("parse1.awk"))
1458 .stdin(gawkText("parse1.in"))
1459 .expectLines(gawkPath("parse1.ok"))
1460 .expectExit(0)
1461 .runAndAssert();
1462 }
1463
1464 @Test
1465 public void test_parsefld() throws Exception {
1466 AwkTestSupport
1467 .cliTest("GAWK parsefld")
1468 .argument("-f", gawkFile("parsefld.awk"))
1469 .stdin(gawkText("parsefld.in"))
1470 .expectLines(gawkPath("parsefld.ok"))
1471 .expectExit(0)
1472 .runAndAssert();
1473 }
1474
1475 @Test
1476 public void test_parseme() throws Exception {
1477 skip(NON_ZERO_TRANSCRIPT_REASON);
1478 }
1479
1480 @Test
1481 public void test_pcntplus() throws Exception {
1482 AwkTestSupport
1483 .cliTest("GAWK pcntplus")
1484 .argument("-f", gawkFile("pcntplus.awk"))
1485 .expectLines(gawkPath("pcntplus.ok"))
1486 .expectExit(0)
1487 .runAndAssert();
1488 }
1489
1490 @Test
1491 public void test_prdupval() throws Exception {
1492 AwkTestSupport
1493 .cliTest("GAWK prdupval")
1494 .argument("-f", gawkFile("prdupval.awk"))
1495 .stdin(gawkText("prdupval.in"))
1496 .expectLines(gawkPath("prdupval.ok"))
1497 .expectExit(0)
1498 .runAndAssert();
1499 }
1500
1501 @Test
1502 public void test_prec() throws Exception {
1503 AwkTestSupport
1504 .cliTest("GAWK prec")
1505 .argument("-f", gawkFile("prec.awk"))
1506 .expectLines(gawkPath("prec.ok"))
1507 .expectExit(0)
1508 .runAndAssert();
1509 }
1510
1511 @Test
1512 public void test_printf1() throws Exception {
1513 AwkTestSupport
1514 .cliTest("GAWK printf1")
1515 .argument("-f", gawkFile("printf1.awk"))
1516 .expectLines(gawkPath("printf1.ok"))
1517 .expectExit(0)
1518 .runAndAssert();
1519 }
1520
1521 @Test
1522 public void test_printfchar() throws Exception {
1523 AwkTestSupport
1524 .cliTest("GAWK printfchar")
1525 .argument("-f", gawkFile("printfchar.awk"))
1526 .expectLines(gawkPath("printfchar.ok"))
1527 .expectExit(0)
1528 .runAndAssert();
1529 }
1530
1531 @Test
1532 public void test_prmarscl() throws Exception {
1533 skip(NON_ZERO_TRANSCRIPT_REASON);
1534 }
1535
1536 @Test
1537 public void test_prmreuse() throws Exception {
1538 AwkTestSupport
1539 .cliTest("GAWK prmreuse")
1540 .argument("-f", gawkFile("prmreuse.awk"))
1541 .expectLines(gawkPath("prmreuse.ok"))
1542 .expectExit(0)
1543 .runAndAssert();
1544 }
1545
1546 @Test
1547 public void test_prt1eval() throws Exception {
1548 AwkTestSupport
1549 .cliTest("GAWK prt1eval")
1550 .argument("-f", gawkFile("prt1eval.awk"))
1551 .expectLines(gawkPath("prt1eval.ok"))
1552 .expectExit(0)
1553 .runAndAssert();
1554 }
1555
1556 @Test
1557 public void test_prtoeval() throws Exception {
1558 AwkTestSupport
1559 .cliTest("GAWK prtoeval")
1560 .argument("-f", gawkFile("prtoeval.awk"))
1561 .expectLines(gawkPath("prtoeval.ok"))
1562 .expectExit(0)
1563 .runAndAssert();
1564 }
1565
1566 @Test
1567 public void test_rand() throws Exception {
1568 AwkTestSupport
1569 .cliTest("GAWK rand")
1570 .argument("-f", gawkFile("rand.awk"))
1571 .expectLines(gawkPath("rand.ok"))
1572 .expectExit(0)
1573 .runAndAssert();
1574 }
1575
1576 @Test
1577 public void test_randtest() throws Exception {
1578 skip(
1579 "Shell-script target generated by Maketests; the in-process Jawk harness does not execute external shell scripts.");
1580 }
1581
1582 @Test
1583 public void test_range1() throws Exception {
1584 AwkTestSupport
1585 .cliTest("GAWK range1")
1586 .argument("-f", gawkFile("range1.awk"))
1587 .stdin(gawkText("range1.in"))
1588 .expectLines(gawkPath("range1.ok"))
1589 .expectExit(0)
1590 .runAndAssert();
1591 }
1592
1593 @Test
1594 public void test_range2() throws Exception {
1595 AwkTestSupport
1596 .cliTest("GAWK range2")
1597 .argument("-f", gawkFile("range2.awk"))
1598 .expectLines(gawkPath("range2.ok"))
1599 .expectExit(0)
1600 .runAndAssert();
1601 }
1602
1603 @Test
1604 public void test_readbuf() throws Exception {
1605 skip(NON_ZERO_TRANSCRIPT_REASON);
1606 }
1607
1608 @Test
1609 public void test_rebrackloc() throws Exception {
1610 AwkTestSupport
1611 .cliTest("GAWK rebrackloc")
1612 .argument("-f", gawkFile("rebrackloc.awk"))
1613 .stdin(gawkText("rebrackloc.in"))
1614 .expectLines(gawkPath("rebrackloc.ok"))
1615 .expectExit(0)
1616 .runAndAssert();
1617 }
1618
1619 @Test
1620 public void test_rebt8b1() throws Exception {
1621 skip(NON_UTF8_EXPECTED_REASON);
1622 }
1623
1624 @Test
1625 public void test_rebuild() throws Exception {
1626 AwkTestSupport
1627 .cliTest("GAWK rebuild")
1628 .argument("-f", gawkFile("rebuild.awk"))
1629 .stdin(gawkText("rebuild.in"))
1630 .expectLines(gawkPath("rebuild.ok"))
1631 .expectExit(0)
1632 .runAndAssert();
1633 }
1634
1635 @Test
1636 public void test_regeq() throws Exception {
1637 AwkTestSupport
1638 .cliTest("GAWK regeq")
1639 .argument("-f", gawkFile("regeq.awk"))
1640 .stdin(gawkText("regeq.in"))
1641 .expectLines(gawkPath("regeq.ok"))
1642 .expectExit(0)
1643 .runAndAssert();
1644 }
1645
1646 @Test
1647 public void test_regex3minus() throws Exception {
1648 AwkTestSupport
1649 .cliTest("GAWK regex3minus")
1650 .argument("-f", gawkFile("regex3minus.awk"))
1651 .expectLines(gawkPath("regex3minus.ok"))
1652 .expectExit(0)
1653 .runAndAssert();
1654 }
1655
1656 @Test
1657 public void test_regexpbad() throws Exception {
1658 skip(NON_ZERO_TRANSCRIPT_REASON);
1659 }
1660
1661 @Test
1662 public void test_regexpbrack() throws Exception {
1663 AwkTestSupport
1664 .cliTest("GAWK regexpbrack")
1665 .argument("-f", gawkFile("regexpbrack.awk"))
1666 .stdin(gawkText("regexpbrack.in"))
1667 .expectLines(gawkPath("regexpbrack.ok"))
1668 .expectExit(0)
1669 .runAndAssert();
1670 }
1671
1672 @Test
1673 public void test_regexpbrack2() throws Exception {
1674 AwkTestSupport
1675 .cliTest("GAWK regexpbrack2")
1676 .argument("-f", gawkFile("regexpbrack2.awk"))
1677 .stdin(gawkText("regexpbrack2.in"))
1678 .expectLines(gawkPath("regexpbrack2.ok"))
1679 .expectExit(0)
1680 .runAndAssert();
1681 }
1682
1683 @Test
1684 public void test_regexprange() throws Exception {
1685 AwkTestSupport
1686 .cliTest("GAWK regexprange")
1687 .argument("-f", gawkFile("regexprange.awk"))
1688 .expectLines(gawkPath("regexprange.ok"))
1689 .expectExit(0)
1690 .runAndAssert();
1691 }
1692
1693 @Test
1694 public void test_regrange() throws Exception {
1695 AwkTestSupport
1696 .cliTest("GAWK regrange")
1697 .argument("-f", gawkFile("regrange.awk"))
1698 .expectLines(gawkPath("regrange.ok"))
1699 .expectExit(0)
1700 .runAndAssert();
1701 }
1702
1703 @Test
1704 public void test_reindops() throws Exception {
1705 AwkTestSupport
1706 .cliTest("GAWK reindops")
1707 .argument("-f", gawkFile("reindops.awk"))
1708 .stdin(gawkText("reindops.in"))
1709 .expectLines(gawkPath("reindops.ok"))
1710 .expectExit(0)
1711 .runAndAssert();
1712 }
1713
1714 @Test
1715 public void test_reparse() throws Exception {
1716 AwkTestSupport
1717 .cliTest("GAWK reparse")
1718 .argument("-f", gawkFile("reparse.awk"))
1719 .stdin(gawkText("reparse.in"))
1720 .expectLines(gawkPath("reparse.ok"))
1721 .expectExit(0)
1722 .runAndAssert();
1723 }
1724
1725 @Test
1726 public void test_resplit() throws Exception {
1727 AwkTestSupport
1728 .cliTest("GAWK resplit")
1729 .argument("-f", gawkFile("resplit.awk"))
1730 .stdin(gawkText("resplit.in"))
1731 .expectLines(gawkPath("resplit.ok"))
1732 .expectExit(0)
1733 .runAndAssert();
1734 }
1735
1736 @Test
1737 public void test_rri1() throws Exception {
1738 skip(NON_UTF8_STDIN_REASON);
1739 }
1740
1741 @Test
1742 public void test_rs() throws Exception {
1743 AwkTestSupport
1744 .cliTest("GAWK rs")
1745 .argument("-f", gawkFile("rs.awk"))
1746 .stdin(gawkText("rs.in"))
1747 .expectLines(gawkPath("rs.ok"))
1748 .expectExit(0)
1749 .runAndAssert();
1750 }
1751
1752 @Test
1753 public void test_rsnul1nl() throws Exception {
1754 AwkTestSupport
1755 .cliTest("GAWK rsnul1nl")
1756 .argument("-f", gawkFile("rsnul1nl.awk"))
1757 .stdin(gawkText("rsnul1nl.in"))
1758 .expectLines(gawkPath("rsnul1nl.ok"))
1759 .expectExit(0)
1760 .runAndAssert();
1761 }
1762
1763 @Test
1764 public void test_rsnullre() throws Exception {
1765 AwkTestSupport
1766 .cliTest("GAWK rsnullre")
1767 .argument("-f", gawkFile("rsnullre.awk"))
1768 .stdin(gawkText("rsnullre.in"))
1769 .expectLines(gawkPath("rsnullre.ok"))
1770 .expectExit(0)
1771 .runAndAssert();
1772 }
1773
1774 @Test
1775 public void test_rsnulw() throws Exception {
1776 AwkTestSupport
1777 .cliTest("GAWK rsnulw")
1778 .argument("-f", gawkFile("rsnulw.awk"))
1779 .stdin(gawkText("rsnulw.in"))
1780 .expectLines(gawkPath("rsnulw.ok"))
1781 .expectExit(0)
1782 .runAndAssert();
1783 }
1784
1785 @Test
1786 public void test_rstest1() throws Exception {
1787 AwkTestSupport
1788 .cliTest("GAWK rstest1")
1789 .argument("-f", gawkFile("rstest1.awk"))
1790 .expectLines(gawkPath("rstest1.ok"))
1791 .expectExit(0)
1792 .runAndAssert();
1793 }
1794
1795 @Test
1796 public void test_rstest2() throws Exception {
1797 AwkTestSupport
1798 .cliTest("GAWK rstest2")
1799 .argument("-f", gawkFile("rstest2.awk"))
1800 .expectLines(gawkPath("rstest2.ok"))
1801 .expectExit(0)
1802 .runAndAssert();
1803 }
1804
1805 @Test
1806 public void test_rstest3() throws Exception {
1807 AwkTestSupport
1808 .cliTest("GAWK rstest3")
1809 .argument("-f", gawkFile("rstest3.awk"))
1810 .expectLines(gawkPath("rstest3.ok"))
1811 .expectExit(0)
1812 .runAndAssert();
1813 }
1814
1815 @Test
1816 public void test_rstest4() throws Exception {
1817 AwkTestSupport
1818 .cliTest("GAWK rstest4")
1819 .argument("-f", gawkFile("rstest4.awk"))
1820 .expectLines(gawkPath("rstest4.ok"))
1821 .expectExit(0)
1822 .runAndAssert();
1823 }
1824
1825 @Test
1826 public void test_rstest5() throws Exception {
1827 AwkTestSupport
1828 .cliTest("GAWK rstest5")
1829 .argument("-f", gawkFile("rstest5.awk"))
1830 .expectLines(gawkPath("rstest5.ok"))
1831 .expectExit(0)
1832 .runAndAssert();
1833 }
1834
1835 @Test
1836 public void test_rswhite() throws Exception {
1837 AwkTestSupport
1838 .cliTest("GAWK rswhite")
1839 .argument("-f", gawkFile("rswhite.awk"))
1840 .stdin(gawkText("rswhite.in"))
1841 .expectLines(gawkPath("rswhite.ok"))
1842 .expectExit(0)
1843 .runAndAssert();
1844 }
1845
1846 @Test
1847 public void test_scalar() throws Exception {
1848 skip(NON_ZERO_TRANSCRIPT_REASON);
1849 }
1850
1851 @Test
1852 public void test_sclforin() throws Exception {
1853 skip(NON_ZERO_TRANSCRIPT_REASON);
1854 }
1855
1856 @Test
1857 public void test_sclifin() throws Exception {
1858 skip(NON_ZERO_TRANSCRIPT_REASON);
1859 }
1860
1861 @Test
1862 public void test_setrec0() throws Exception {
1863 AwkTestSupport
1864 .cliTest("GAWK setrec0")
1865 .argument("-f", gawkFile("setrec0.awk"))
1866 .stdin(gawkText("setrec0.in"))
1867 .expectLines(gawkPath("setrec0.ok"))
1868 .expectExit(0)
1869 .runAndAssert();
1870 }
1871
1872 @Test
1873 public void test_setrec1() throws Exception {
1874 AwkTestSupport
1875 .cliTest("GAWK setrec1")
1876 .argument("-f", gawkFile("setrec1.awk"))
1877 .expectLines(gawkPath("setrec1.ok"))
1878 .expectExit(0)
1879 .runAndAssert();
1880 }
1881
1882 @Test
1883 public void test_sigpipe1() throws Exception {
1884 AwkTestSupport
1885 .cliTest("GAWK sigpipe1")
1886 .argument("-f", gawkFile("sigpipe1.awk"))
1887 .expectLines(gawkPath("sigpipe1.ok"))
1888 .expectExit(0)
1889 .runAndAssert();
1890 }
1891
1892 @Test
1893 public void test_sortempty() throws Exception {
1894 AwkTestSupport
1895 .cliTest("GAWK sortempty")
1896 .argument("-f", gawkFile("sortempty.awk"))
1897 .expectLines(gawkPath("sortempty.ok"))
1898 .expectExit(0)
1899 .runAndAssert();
1900 }
1901
1902 @Test
1903 public void test_sortglos() throws Exception {
1904 AwkTestSupport
1905 .cliTest("GAWK sortglos")
1906 .argument("-f", gawkFile("sortglos.awk"))
1907 .stdin(gawkText("sortglos.in"))
1908 .expectLines(gawkPath("sortglos.ok"))
1909 .expectExit(0)
1910 .runAndAssert();
1911 }
1912
1913 @Test
1914 public void test_splitargv() throws Exception {
1915 AwkTestSupport
1916 .cliTest("GAWK splitargv")
1917 .argument("-f", gawkFile("splitargv.awk"))
1918 .stdin(gawkText("splitargv.in"))
1919 .expectLines(gawkPath("splitargv.ok"))
1920 .expectExit(0)
1921 .runAndAssert();
1922 }
1923
1924 @Test
1925 public void test_splitarr() throws Exception {
1926 AwkTestSupport
1927 .cliTest("GAWK splitarr")
1928 .argument("-f", gawkFile("splitarr.awk"))
1929 .expectLines(gawkPath("splitarr.ok"))
1930 .expectExit(0)
1931 .runAndAssert();
1932 }
1933
1934 @Test
1935 public void test_splitdef() throws Exception {
1936 AwkTestSupport
1937 .cliTest("GAWK splitdef")
1938 .argument("-f", gawkFile("splitdef.awk"))
1939 .expectLines(gawkPath("splitdef.ok"))
1940 .expectExit(0)
1941 .runAndAssert();
1942 }
1943
1944 @Test
1945 public void test_splitvar() throws Exception {
1946 AwkTestSupport
1947 .cliTest("GAWK splitvar")
1948 .argument("-f", gawkFile("splitvar.awk"))
1949 .stdin(gawkText("splitvar.in"))
1950 .expectLines(gawkPath("splitvar.ok"))
1951 .expectExit(0)
1952 .runAndAssert();
1953 }
1954
1955 @Test
1956 public void test_splitwht() throws Exception {
1957 AwkTestSupport
1958 .cliTest("GAWK splitwht")
1959 .argument("-f", gawkFile("splitwht.awk"))
1960 .expectLines(gawkPath("splitwht.ok"))
1961 .expectExit(0)
1962 .runAndAssert();
1963 }
1964
1965 @Test
1966 public void test_strcat1() throws Exception {
1967 AwkTestSupport
1968 .cliTest("GAWK strcat1")
1969 .argument("-f", gawkFile("strcat1.awk"))
1970 .expectLines(gawkPath("strcat1.ok"))
1971 .expectExit(0)
1972 .runAndAssert();
1973 }
1974
1975 @Test
1976 public void test_strfieldnum() throws Exception {
1977 AwkTestSupport
1978 .cliTest("GAWK strfieldnum")
1979 .argument("-f", gawkFile("strfieldnum.awk"))
1980 .stdin(gawkText("strfieldnum.in"))
1981 .expectLines(gawkPath("strfieldnum.ok"))
1982 .expectExit(0)
1983 .runAndAssert();
1984 }
1985
1986 @Test
1987 public void test_strnum1() throws Exception {
1988 AwkTestSupport
1989 .cliTest("GAWK strnum1")
1990 .argument("-f", gawkFile("strnum1.awk"))
1991 .expectLines(gawkPath("strnum1.ok"))
1992 .expectExit(0)
1993 .runAndAssert();
1994 }
1995
1996 @Test
1997 public void test_strnum2() throws Exception {
1998 AwkTestSupport
1999 .cliTest("GAWK strnum2")
2000 .argument("-f", gawkFile("strnum2.awk"))
2001 .expectLines(gawkPath("strnum2.ok"))
2002 .expectExit(0)
2003 .runAndAssert();
2004 }
2005
2006 @Test
2007 public void test_strtod() throws Exception {
2008 AwkTestSupport
2009 .cliTest("GAWK strtod")
2010 .argument("-f", gawkFile("strtod.awk"))
2011 .stdin(gawkText("strtod.in"))
2012 .expectLines(gawkPath("strtod.ok"))
2013 .expectExit(0)
2014 .runAndAssert();
2015 }
2016
2017 @Test
2018 public void test_subamp() throws Exception {
2019 AwkTestSupport
2020 .cliTest("GAWK subamp")
2021 .argument("--locale", "en-US")
2022 .argument("-f", gawkFile("subamp.awk"))
2023 .stdin(gawkText("subamp.in"))
2024 .expectLines(gawkPath("subamp.ok"))
2025 .expectExit(0)
2026 .runAndAssert();
2027 }
2028
2029 @Test
2030 public void test_subback() throws Exception {
2031 AwkTestSupport
2032 .cliTest("GAWK subback")
2033 .argument("-f", gawkFile("subback.awk"))
2034 .stdin(gawkText("subback.in"))
2035 .expectLines(gawkPath("subback.ok"))
2036 .expectExit(0)
2037 .runAndAssert();
2038 }
2039
2040 @Test
2041 public void test_subi18n() throws Exception {
2042 AwkTestSupport
2043 .cliTest("GAWK subi18n")
2044 .argument("--locale", "en-US")
2045 .argument("-f", gawkFile("subi18n.awk"))
2046 .expectLines(gawkPath("subi18n.ok"))
2047 .expectExit(0)
2048 .runAndAssert();
2049 }
2050
2051 @Test
2052 public void test_subsepnm() throws Exception {
2053 AwkTestSupport
2054 .cliTest("GAWK subsepnm")
2055 .argument("-f", gawkFile("subsepnm.awk"))
2056 .expectLines(gawkPath("subsepnm.ok"))
2057 .expectExit(0)
2058 .runAndAssert();
2059 }
2060
2061 @Test
2062 public void test_subslash() throws Exception {
2063 AwkTestSupport
2064 .cliTest("GAWK subslash")
2065 .argument("-f", gawkFile("subslash.awk"))
2066 .expectLines(gawkPath("subslash.ok"))
2067 .expectExit(0)
2068 .runAndAssert();
2069 }
2070
2071 @Test
2072 public void test_substr() throws Exception {
2073 AwkTestSupport
2074 .cliTest("GAWK substr")
2075 .argument("-f", gawkFile("substr.awk"))
2076 .expectLines(gawkPath("substr.ok"))
2077 .expectExit(0)
2078 .runAndAssert();
2079 }
2080
2081 @Test
2082 public void test_swaplns() throws Exception {
2083 AwkTestSupport
2084 .cliTest("GAWK swaplns")
2085 .argument("-f", gawkFile("swaplns.awk"))
2086 .stdin(gawkText("swaplns.in"))
2087 .expectLines(gawkPath("swaplns.ok"))
2088 .expectExit(0)
2089 .runAndAssert();
2090 }
2091
2092 @Test
2093 public void test_synerr1() throws Exception {
2094 skip(NON_ZERO_TRANSCRIPT_REASON);
2095 }
2096
2097 @Test
2098 public void test_synerr2() throws Exception {
2099 skip(NON_ZERO_TRANSCRIPT_REASON);
2100 }
2101
2102 @Test
2103 public void test_synerr3() throws Exception {
2104 skip(NON_ZERO_TRANSCRIPT_REASON);
2105 }
2106
2107 @Test
2108 public void test_tailrecurse() throws Exception {
2109 AwkTestSupport
2110 .cliTest("GAWK tailrecurse")
2111 .argument("-f", gawkFile("tailrecurse.awk"))
2112 .expectLines(gawkPath("tailrecurse.ok"))
2113 .expectExit(0)
2114 .runAndAssert();
2115 }
2116
2117 @Test
2118 public void test_trailbs() throws Exception {
2119 skip(NON_UTF8_EXPECTED_REASON);
2120 }
2121
2122 @Test
2123 public void test_unterm() throws Exception {
2124 skip(NON_ZERO_TRANSCRIPT_REASON);
2125 }
2126
2127 @Test
2128 public void test_uparrfs() throws Exception {
2129 AwkTestSupport
2130 .cliTest("GAWK uparrfs")
2131 .argument("-f", gawkFile("uparrfs.awk"))
2132 .stdin(gawkText("uparrfs.in"))
2133 .expectLines(gawkPath("uparrfs.ok"))
2134 .expectExit(0)
2135 .runAndAssert();
2136 }
2137
2138 @Test
2139 public void test_uplus() throws Exception {
2140 AwkTestSupport
2141 .cliTest("GAWK uplus")
2142 .argument("-f", gawkFile("uplus.awk"))
2143 .expectLines(gawkPath("uplus.ok"))
2144 .expectExit(0)
2145 .runAndAssert();
2146 }
2147
2148 @Test
2149 public void test_wideidx() throws Exception {
2150 AwkTestSupport
2151 .cliTest("GAWK wideidx")
2152 .argument("--locale", "en-US")
2153 .argument("-f", gawkFile("wideidx.awk"))
2154 .stdin(gawkText("wideidx.in"))
2155 .expectLines(gawkPath("wideidx.ok"))
2156 .expectExit(0)
2157 .runAndAssert();
2158 }
2159
2160 @Test
2161 public void test_wideidx2() throws Exception {
2162 AwkTestSupport
2163 .cliTest("GAWK wideidx2")
2164 .argument("--locale", "en-US")
2165 .argument("-f", gawkFile("wideidx2.awk"))
2166 .expectLines(gawkPath("wideidx2.ok"))
2167 .expectExit(0)
2168 .runAndAssert();
2169 }
2170
2171 @Test
2172 public void test_widesub() throws Exception {
2173 AwkTestSupport
2174 .cliTest("GAWK widesub")
2175 .argument("--locale", "en-US")
2176 .argument("-f", gawkFile("widesub.awk"))
2177 .expectLines(gawkPath("widesub.ok"))
2178 .expectExit(0)
2179 .runAndAssert();
2180 }
2181
2182 @Test
2183 public void test_widesub2() throws Exception {
2184 AwkTestSupport
2185 .cliTest("GAWK widesub2")
2186 .argument("--locale", "en-US")
2187 .argument("-f", gawkFile("widesub2.awk"))
2188 .expectLines(gawkPath("widesub2.ok"))
2189 .expectExit(0)
2190 .runAndAssert();
2191 }
2192
2193 @Test
2194 public void test_widesub3() throws Exception {
2195 AwkTestSupport
2196 .cliTest("GAWK widesub3")
2197 .argument("--locale", "en-US")
2198 .argument("-f", gawkFile("widesub3.awk"))
2199 .stdin(gawkText("widesub3.in"))
2200 .expectLines(gawkPath("widesub3.ok"))
2201 .expectExit(0)
2202 .runAndAssert();
2203 }
2204
2205 @Test
2206 public void test_widesub4() throws Exception {
2207 AwkTestSupport
2208 .cliTest("GAWK widesub4")
2209 .argument("--locale", "en-US")
2210 .argument("-f", gawkFile("widesub4.awk"))
2211 .expectLines(gawkPath("widesub4.ok"))
2212 .expectExit(0)
2213 .runAndAssert();
2214 }
2215
2216 @Test
2217 public void test_wjposer1() throws Exception {
2218 AwkTestSupport
2219 .cliTest("GAWK wjposer1")
2220 .argument("-f", gawkFile("wjposer1.awk"))
2221 .stdin(gawkText("wjposer1.in"))
2222 .expectLines(gawkPath("wjposer1.ok"))
2223 .expectExit(0)
2224 .runAndAssert();
2225 }
2226
2227 @Test
2228 public void test_zero2() throws Exception {
2229 AwkTestSupport
2230 .cliTest("GAWK zero2")
2231 .argument("-f", gawkFile("zero2.awk"))
2232 .expectLines(gawkPath("zero2.ok"))
2233 .expectExit(0)
2234 .runAndAssert();
2235 }
2236
2237 @Test
2238 public void test_zeroe0() throws Exception {
2239 AwkTestSupport
2240 .cliTest("GAWK zeroe0")
2241 .argument("-f", gawkFile("zeroe0.awk"))
2242 .expectLines(gawkPath("zeroe0.ok"))
2243 .expectExit(0)
2244 .runAndAssert();
2245 }
2246
2247 @Test
2248 public void test_zeroflag() throws Exception {
2249 AwkTestSupport
2250 .cliTest("GAWK zeroflag")
2251 .argument("-f", gawkFile("zeroflag.awk"))
2252 .expectLines(gawkPath("zeroflag.ok"))
2253 .expectExit(0)
2254 .runAndAssert();
2255 }
2256
2257 @Test
2258 public void test_fflush() throws Exception {
2259 skip(
2260 "Shell-script target generated by Maketests; the in-process Jawk harness does not execute external shell scripts.");
2261 }
2262
2263 @Test
2264 public void test_getlnhd() throws Exception {
2265 AwkTestSupport
2266 .cliTest("GAWK getlnhd")
2267 .argument("-f", gawkFile("getlnhd.awk"))
2268 .expectLines(gawkPath("getlnhd.ok"))
2269 .expectExit(0)
2270 .runAndAssert();
2271 }
2272
2273 @Test
2274 public void test_localenl() throws Exception {
2275 skip(
2276 "Shell-script target generated by Maketests; the in-process Jawk harness does not execute external shell scripts.");
2277 }
2278
2279 @Test
2280 public void test_rtlen() throws Exception {
2281 skip(
2282 "Shell-script target generated by Maketests; the in-process Jawk harness does not execute external shell scripts.");
2283 }
2284
2285 @Test
2286 public void test_rtlen01() throws Exception {
2287 skip(
2288 "Shell-script target generated by Maketests; the in-process Jawk harness does not execute external shell scripts.");
2289 }
2290
2291 @Test
2292 public void test_poundbang() throws Exception {
2293 skip(MANUAL_SKIP_REASON);
2294 }
2295
2296 @Test
2297 public void test_messages() throws Exception {
2298 skip(MANUAL_SKIP_REASON);
2299 }
2300
2301 @Test
2302 public void test_argarray() throws Exception {
2303 AwkTestSupport
2304 .cliTest("GAWK argarray")
2305 .argument("-f", gawkFile("argarray.awk"))
2306 .stdin("just a test\n")
2307 .operand(gawkFile("argarray.in"), "-")
2308 .postProcessWith(output -> output.replace(gawkFile("argarray.in"), "./argarray.input"))
2309 .expectLines(gawkPath("argarray.ok"))
2310 .expectExit(0)
2311 .runAndAssert();
2312 }
2313
2314 @Test
2315 public void test_regtest() throws Exception {
2316 skip(MANUAL_SKIP_REASON);
2317 }
2318
2319 @Test
2320 public void test_compare() throws Exception {
2321 skip(MANUAL_SKIP_REASON);
2322 }
2323
2324 @Test
2325 public void test_inftest() throws Exception {
2326 skip(MANUAL_SKIP_REASON);
2327 }
2328
2329 @Test
2330 public void test_getline2() throws Exception {
2331 skip(MANUAL_SKIP_REASON);
2332 }
2333
2334 @Test
2335 public void test_awkpath() throws Exception {
2336 skip(MANUAL_SKIP_REASON);
2337 }
2338
2339 @Test
2340 public void test_tweakfld() throws Exception {
2341 skip(MANUAL_SKIP_REASON);
2342 }
2343
2344 @Test
2345 public void test_pid() throws Exception {
2346 skip(MANUAL_SKIP_REASON);
2347 }
2348
2349 @Test
2350 public void test_strftlng() throws Exception {
2351 skip(MANUAL_SKIP_REASON);
2352 }
2353
2354 @Test
2355 public void test_nors() throws Exception {
2356 skip(MANUAL_SKIP_REASON);
2357 }
2358
2359 @Test
2360 public void test_pipeio1() throws Exception {
2361 skip(MANUAL_SKIP_REASON);
2362 }
2363
2364 @Test
2365 public void test_pipeio2() throws Exception {
2366 skip(MANUAL_SKIP_REASON);
2367 }
2368
2369 @Test
2370 public void test_clobber() throws Exception {
2371 skip(MANUAL_SKIP_REASON);
2372 }
2373
2374 @Test
2375 public void test_arynocls() throws Exception {
2376 skip(MANUAL_SKIP_REASON);
2377 }
2378
2379 @Test
2380 public void test_getlnbuf() throws Exception {
2381 skip(MANUAL_SKIP_REASON);
2382 }
2383
2384 @Test
2385 public void test_inetechu() throws Exception {
2386 skip(MANUAL_SKIP_REASON);
2387 }
2388
2389 @Test
2390 public void test_inetecht() throws Exception {
2391 skip(MANUAL_SKIP_REASON);
2392 }
2393
2394 @Test
2395 public void test_inetdayu() throws Exception {
2396 skip(MANUAL_SKIP_REASON);
2397 }
2398
2399 @Test
2400 public void test_inetdayt() throws Exception {
2401 skip(MANUAL_SKIP_REASON);
2402 }
2403
2404 @Test
2405 public void test_redfilnm() throws Exception {
2406 skip(MANUAL_SKIP_REASON);
2407 }
2408
2409 @Test
2410 public void test_space() throws Exception {
2411 skip(MANUAL_SKIP_REASON);
2412 }
2413
2414 @Test
2415 public void test_rsnulbig() throws Exception {
2416 skip(MANUAL_SKIP_REASON);
2417 }
2418
2419 @Test
2420 public void test_rsnulbig2() throws Exception {
2421 skip(MANUAL_SKIP_REASON);
2422 }
2423
2424 @Test
2425 public void test_exitval1() throws Exception {
2426 skip(MANUAL_SKIP_REASON);
2427 }
2428
2429 @Test
2430 public void test_fsspcoln() throws Exception {
2431 skip(MANUAL_SKIP_REASON);
2432 }
2433
2434 @Test
2435 public void test_nofile() throws Exception {
2436 skip(MANUAL_SKIP_REASON);
2437 }
2438
2439 @Test
2440 public void test_ignrcas3() throws Exception {
2441 skip(MANUAL_SKIP_REASON);
2442 }
2443
2444 @Test
2445 public void test_eofsrc1() throws Exception {
2446 skip(
2447 "This handwritten case compares gawk parser diagnostics on stderr and is intentionally skipped in the explicit AwkTestSupport.cliTest suite.");
2448 }
2449
2450 @Test
2451 public void test_longwrds() throws Exception {
2452 AwkTestSupport
2453 .cliTest("GAWK longwrds")
2454 .argument("-v", "SORT=sort")
2455 .argument("-f", gawkFile("longwrds.awk"))
2456 .stdin(gawkText("longwrds.in"))
2457 .expectLines(gawkPath("longwrds.ok"))
2458 .expectExit(0)
2459 .runAndAssert();
2460 }
2461
2462 @Test
2463 public void test_argcasfile() throws Exception {
2464 AwkTestSupport
2465 .cliTest("GAWK argcasfile")
2466 .argument("-f", gawkFile("argcasfile.awk"))
2467 .stdin(gawkText("argcasfile.in"))
2468 .operand("ARGC=1", " /no/such/file")
2469 .expectLines(gawkPath("argcasfile.ok"))
2470 .expectExit(0)
2471 .runAndAssert();
2472 }
2473
2474 }