www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9662] New: rdmd should have a test suite

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9662

           Summary: rdmd should have a test suite
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrei erdani.com


--- Comment #0 from Andrei Alexandrescu <andrei erdani.com> 2013-03-07 13:12:35
PST ---
Currently there's no test suite for rdmd, and it has happened that changes to
rdmd broke existing behaviors.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 07 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9662


Andrei Alexandrescu <andrei erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 07 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9662


David Nadlinger <code klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code klickverbot.at


--- Comment #1 from David Nadlinger <code klickverbot.at> 2013-03-07 13:19:42
PST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 07 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9662



--- Comment #2 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-06-14
15:20:03 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 14 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9662



--- Comment #3 from Kenji Hara <k.hara.pg 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: -------
Jun 15 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9662


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
            Summary|rdmd should have a test     |Implement RDMD test suite
                   |suite                       |
           Severity|enhancement                 |normal


--- Comment #4 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-06-20
16:14:50 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2235

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 20 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9662



--- Comment #5 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-10-20
13:34:51 PDT ---
New pull:

https://github.com/D-Programming-Language/tools/pull/86

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