Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dub's actual (and special) dub test configuration #173

Merged
merged 14 commits into from
Nov 23, 2022

Conversation

kinke
Copy link
Contributor

@kinke kinke commented Jul 13, 2022

dub test adds a special test configuration if there's either no unittest config, or its targetType isn't executable. That special config is derived from the unittest (or default) configuration, incl. generating and compiling-in an extra dub_test_root module with a main() entry point (and an AliasSeq of all root project modules). See dlang/dub#2218 for details. That PR landed after the dub v1.29 branch-off, so will land in v1.30. dlang/dub#2288 and dlang/dub#2300 are additionally required for reggae and will land in v1.30 too.

@kinke kinke force-pushed the dub_unittest branch 3 times, most recently from 1c04888 to d961c1c Compare July 13, 2022 22:17
kinke added 5 commits July 14, 2022 05:03
Those using dub projects with a special test configuration.

Mainly adapt to changed test runner filenames, and the automatic
exclusion/replacement of mainSourceFile (and so all unittests in
source/app.d etc. being excluded).
As there should now always be a `unittest` entry in `configToDubInfo` -
except for some `targetType "none"` edge cases.
kinke added a commit to symmetryinvestments/ldc that referenced this pull request Jul 16, 2022
Using current dub master and supporting the actual `dub test` config,
see atilaneves/reggae#173.
Unfortunately requiring a new workaround for an undefined symbol for
the unittests.
dub.selections.json Outdated Show resolved Hide resolved
As with bootstrap.sh I'm hitting

undefined symbol: _D3std8typecons__T5TupleTS3dub18dependencyresolver__T18DependencyResolverTSQBx10dependency10DependencyTQBdZQCc8TreeNodeTSQDrQDq__TQCzTQCiTQCmZQDl9TreeNodesZQFi__T5opCmpTxSQGnQGm__TQGgTQGdTQCqZQGsZQBiMxFxQBhZi

with DMD v2.100.1 on Linux since the dub bump...
As bootstrapping fails with DMD v2.098.0 on Linux and Mac - *not*
related to the -allinst removal, but to the dub bump, which is now
using std.sumtype.
@kinke kinke marked this pull request as ready for review November 15, 2022 12:57
@kinke
Copy link
Contributor Author

kinke commented Nov 15, 2022

Still a bit cautious wrt. the dub bump, as dub v1.30.0 is a pretty big update.

@atilaneves atilaneves merged commit 67f996c into atilaneves:master Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants