Bug 16984 – Make more modules runnable on dlang.org

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-12-19T17:00:46Z
Last change time
2017-10-16T09:58:14Z
Assigned to
Alexandru Razvan Caciulescu
Creator
greenify

Comments

Comment #0 by greeenify — 2016-12-19T17:00:46Z
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
Comment #1 by greensunny12 — 2017-07-12T16:45:41Z
https://github.com/dlang/phobos/pull/5582 reduces the list again and contains a list of missing modules on the blacklist: - std.math - std.stdio - stdx.allocator.building_blocks.quantizer - stdx.allocator.building_blocks.free_list - std.traits
Comment #2 by github-bugzilla — 2017-10-07T21:52:02Z
Comment #3 by github-bugzilla — 2017-10-16T09:58:14Z