Re: COBOL test cases

2025-03-15 Thread Andreas Schwab
On Mär 15 2025, Jakub Jelinek via Gcc wrote: > Of course, if the output is huge, perhaps we should write some dg- directive > for specifying file with expected output and compare against that rather than > the dg-output directives. Perhaps something similar to regexp_diff in binutils/testsuite/li

RE: COBOL test cases

2025-03-15 Thread Robert Dubner
> -Original Message- > From: Jakub Jelinek > Sent: Saturday, March 15, 2025 13:38 > To: Robert Dubner > Cc: GCC Mailing List ; James K. Lowden > ; Richard Biener > Subject: Re: COBOL test cases > > On Sat, Mar 15, 2025 at 12:20:14PM -0500, Robert Dubner wrot

Re: COBOL test cases

2025-03-15 Thread Jakub Jelinek via Gcc
On Sat, Mar 15, 2025 at 12:20:14PM -0500, Robert Dubner wrote: > Details. Easy-peasy. I'll probably create some python scripts for doing > it in a more general way for my directory structures, where each test is > in its own directory. > > And then for UAT I'll have to extract both the source co

Re: COBOL test cases

2025-03-15 Thread Richard Biener via Gcc
> Am 15.03.2025 um 18:20 schrieb Robert Dubner : > >  >> >> -Original Message- >> From: Jakub Jelinek >> Sent: Saturday, March 15, 2025 12:58 >> To: Robert Dubner ; 'GCC Mailing List' >> ; 'James K. Lowden' ; >

RE: COBOL test cases

2025-03-15 Thread Robert Dubner
> -Original Message- > From: Jakub Jelinek > Sent: Saturday, March 15, 2025 12:58 > To: Robert Dubner ; 'GCC Mailing List' > ; 'James K. Lowden' ; 'Richard > Biener' > Subject: Re: COBOL test cases > > On Sat, Mar 15, 2025 at 05:3

RE: COBOL test cases

2025-03-15 Thread Robert Dubner
> -Original Message- > From: Jakub Jelinek > Sent: Saturday, March 15, 2025 12:34 > To: Robert Dubner > Cc: 'GCC Mailing List' ; 'James K. Lowden' > ; 'Richard Biener' > Subject: Re: COBOL test cases > > On Sat, Mar 15, 2025 at 1

Re: COBOL test cases

2025-03-15 Thread Jakub Jelinek via Gcc
On Sat, Mar 15, 2025 at 05:34:21PM +0100, Jakub Jelinek via Gcc wrote: > So, if you have test-0001.cob and test-0001.expected-output, you could do > for i in *.cob; do \ > sed 's/\([].*()[]\)/\\\1/g;s/^/*> { dg-output {/;s/$/(\\n|\\r\\n|\\r)} > }/;$s/.\{12\}} }$/} }/' \ > < $i.expected-output >> $

Re: COBOL test cases

2025-03-15 Thread Jakub Jelinek via Gcc
On Sat, Mar 15, 2025 at 11:02:59AM -0500, Robert Dubner wrote: > I am struggling with the learning curves, here. I am trying to understand > dejagnu, and I am trying to understand tcl, and I am trying to understand > the testsuite chain of commands and files that result, somehow, in the > programs