Bug 9662 – Implement RDMD test suite

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-07T13:12:00Z
Last change time
2014-02-03T05:57:50Z
Keywords
preapproved, pull
Assigned to
andrej.mitrovich
Creator
andrei

Comments

Comment #0 by andrei — 2013-03-07T13:12:35Z
Currently there's no test suite for rdmd, and it has happened that changes to rdmd broke existing behaviors.
Comment #1 by code — 2013-03-07T13:19:42Z
A test suite for rdmd would indirectly also be helpful for LDC development: Currently, ldmd2 does not quite handle output file placement in the same way as DMD (thus failing its purpose as a drop-in replacement), but it is unclear what needs to be changed. Having a set of test cases for the various options would make that much easier, and I imagine an rdmd test suite might quite naturally contain a number of them.
Comment #2 by andrej.mitrovich — 2013-06-14T15:20:03Z
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.
Comment #3 by k.hara.pg — 2013-06-15T02:13:08Z
(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.
Comment #4 by andrej.mitrovich — 2013-06-20T16:14:50Z
Comment #5 by andrej.mitrovich — 2013-10-20T13:34:51Z