-
-
Notifications
You must be signed in to change notification settings - Fork 685
Run dmd internal unittests on CIs #6767
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ ECTAGS_FILES = src/*.[chd] src/backend/*.[chd] src/root/*.[chd] src/tk/*.[chd] | |
| .PHONY: all clean test install auto-tester-build auto-tester-test toolchain-info | ||
|
|
||
| all: | ||
| $(QUIET)$(MAKE) -C src -f posix.mak | ||
| $(QUIET)$(MAKE) -C src -f posix.mak all | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This makes the default Makefile target explicit (
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a disadvantage to assume the default target builds all? After all, if it's not it means we wrote that makefile poorly.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Explicitly for the win - it was helpful during debugging this. |
||
|
|
||
| auto-tester-build: toolchain-info | ||
| $(QUIET)$(MAKE) -C src -f posix.mak auto-tester-build ENABLE_RELEASE=1 | ||
|
|
@@ -21,6 +21,7 @@ clean: | |
| $(RM) tags | ||
|
|
||
| test: | ||
| $(QUIET)$(MAKE) -C src -f posix.mak unittest | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like you don't have to modify ifdef ENABLE_DEBUG
CXXFLAGS += -g -g3 -DDEBUG=1 -DUNITTEST
DFLAGS += -g -debug -unittestI think going with this option, instead of introducing a new target there would be simpler/better. What do you think?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I prefer a separate target because then it's a lot easier to run the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alright, you make a good point. |
||
| $(QUIET)$(MAKE) -C test -f Makefile | ||
|
|
||
| html: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would a
lnsuffice here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, the idea was too avoid any issues with rebuilding DMD with other configs. At the moment there aren't any anymore for this setup, but explicitly really helped a lot during debugging here.