[Issue 16984] New: Make more modules runnable on dlang.org

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Dec 19 09:00:46 PST 2016


https://issues.dlang.org/show_bug.cgi?id=16984

          Issue ID: 16984
           Summary: Make more modules runnable on dlang.org
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: greeenify at gmail.com

With https://github.com/dlang/dlang.org/pull/1297 public unittests can be
executed on dlang.org. There is a special Makefile target that ensures that the
unittest blocks can be compiled correctly, i.e. don't miss any imports:

https://github.com/dlang/phobos/blob/master/posix.mak#L520

(the script just extracts all "ddoced" tests, puts them in a separate file and
runs it with rdmd -unittest -main)

However, as fixing the imports in all Phobos modules would have been a too
ambitious project, a hard-coded exclude list has been created.
This list can be reduced gradually by removing a module from the exclusion
list, have a look at the missing imports and making a PR to Phobos.

One the PR is accepted, the hard-coded exclusion list on dlang.org should be
updated as well:

https://github.com/dlang/dlang.org/blob/master/js/run_examples.js#L53

--


More information about the Digitalmars-d-bugs mailing list