Skip to content

Update runnable module list#5142

Closed
wilzbach wants to merge 1 commit intodlang:masterfrom
wilzbach:update-runnable-module-list
Closed

Update runnable module list#5142
wilzbach wants to merge 1 commit intodlang:masterfrom
wilzbach:update-runnable-module-list

Conversation

@wilzbach
Copy link
Contributor

@wilzbach wilzbach commented Feb 17, 2017

Unittest examples are finally runnable on the releases docs :)
This fixes the remaining modules, s.t. all public examples can be run on dlang.org (except for typecons.d and traits.d as they aren't parsable with libdparse and ndslice/selection.d as its deprecated anyways)

This depends on dlang/tools#215 (version bump to libdparse) and dlang/tools#216 (small bug fix to the tests_extractor)

@wilzbach wilzbach force-pushed the update-runnable-module-list branch from c1770c1 to 2a59f99 Compare February 18, 2017 03:24
@wilzbach wilzbach force-pushed the update-runnable-module-list branch 2 times, most recently from 3c2b839 to 65adf43 Compare March 1, 2017 01:47
@wilzbach wilzbach force-pushed the update-runnable-module-list branch from 65adf43 to 0071fa5 Compare March 1, 2017 02:03
@wilzbach
Copy link
Contributor Author

wilzbach commented Mar 1, 2017

This depends on dlang/tools#215 (version bump to libdparse)

It seems like libdparse can recover from the syntax errors, so I can remove the "Blocked" status here :)
Nevertheless it would be great if we could pull the libdparse update for the scope fixes.

With the dlang/tools#216 slightly more tests get parsed and interestingly in stdx.allocator.building_blocks.free_list there were some bits that only get tested in "DDoc" mode :S

posix.mak Outdated
# parse all public unittests from Phobos, for now some modules are excluded
rm -rf ./out
DFLAGS="$(DFLAGS) $(LIB) -defaultlib= -debuglib= $(LINKDL)" $(DUB) --compiler=$${PWD}/$(DMD) --single ../tools/phobos_tests_extractor.d -- --inputdir . --ignore "base64.d,building_blocks/free_list,building_blocks/quantizer,digest/hmac.d,file.d,index.d,math.d,ndslice/selection.d,stdio.d,traits.d,typecons.d,uuid.d" --outputdir ./out
DFLAGS="$(DFLAGS) $(LIB) -defaultlib= -debuglib= $(LINKDL)" $(DUB) --compiler=$${PWD}/$(DMD) --root=../tools/styles -c tests_extractor -- --inputdir . --ignore "index.d,ndslice/selection.d,traits.d,typecons.d,digest/hmac.d" --outputdir ./out
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure how this pseudo unittest from std.digest.hmac should be handled:

https://github.com/dlang/phobos/blob/master/std/digest/hmac.d#L34

(it tries to parse from stdin)

a.min = 64;
a.setBounds(64, 128); // equivalent
assert(a.max == 128);
a.setBounds(64, 128);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bounds can only be set once

@wilzbach wilzbach force-pushed the update-runnable-module-list branch from 0071fa5 to a7fd4de Compare March 2, 2017 05:14
@wilzbach wilzbach added this to the 2.074.0 milestone Mar 2, 2017
@JackStouffer JackStouffer modified the milestones: 2.075.0, 2.074.0 Mar 7, 2017
@wilzbach wilzbach force-pushed the update-runnable-module-list branch 2 times, most recently from 8005736 to c6d25ad Compare May 12, 2017 13:31
@MartinNowak MartinNowak removed this from the 2.075.0 milestone Jun 25, 2017
@wilzbach
Copy link
Contributor Author

wilzbach commented Jul 9, 2017

Mostly superseded by #5582

@wilzbach wilzbach closed this Jul 9, 2017
@wilzbach wilzbach deleted the update-runnable-module-list branch July 9, 2017 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants