[Issue 9662] rdmd should have a test suite

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 15 02:13:14 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9662



--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2013-06-15 02:13:08 PDT ---
(In reply to comment #2)
> Guys, how do I ignore the first line in the D tester when comparing against
> TEST_OUTPUT? I need to ignore the first line of --help here:
> 
> rdmd build 20130614
> Usage: rdmd [RDMD AND DMD OPTIONS]... program [PROGRAM OPTIONS]...
> Builds (with dependents) and runs a D program.
> Example: rdmd -release myprog --myprogparm 5
> ...
> 
> Because the build time changes often.

In dmd/test/d_do_test.d, similar thing is already done.

https://github.com/D-Programming-Language/dmd/blob/master/test/d_do_test.d#L434

Debug build DMD will print "DMD v2.0xx DEBUG" as the first compiler output. To
skip it, d_do_test uses std.regex.replace.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list