Re: How to unit-test a phobos module?

2020-11-27 Thread aberba via Digitalmars-d-learn
On Friday, 27 November 2020 at 04:08:33 UTC, Q. Schroll wrote: On Thursday, 26 November 2020 at 05:29:16 UTC, Mike Parker wrote: Tomorrow, I'll try setting up a dual boot and give it a shot there. (Not the dub experience but following https://wiki.dlang.org/Building_under_Posix) Have you

Re: How to unit-test a phobos module?

2020-11-27 Thread Vladimir Panteleev via Digitalmars-d-learn
On Friday, 27 November 2020 at 04:08:33 UTC, Q. Schroll wrote: I think using digger in principle works and I assume the problems I got aren't Digger's fault, but ae's. Building DMD + DRuntime failed. Sorry about this. It was caused by a breaking change in Druntime's build script:

Re: How to unit-test a phobos module?

2020-11-26 Thread Q. Schroll via Digitalmars-d-learn
On Thursday, 26 November 2020 at 05:29:16 UTC, Mike Parker wrote: On Wednesday, 25 November 2020 at 21:36:36 UTC, Q. Schroll wrote: [1] https://wiki.dlang.org/Building_under_Windows You might try Digger. That will hide all the tedious bits. https://code.dlang.org/packages/digger I think

Re: How to unit-test a phobos module?

2020-11-26 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/25/20 7:17 PM, Q. Schroll wrote: On Wednesday, 25 November 2020 at 21:57:12 UTC, H. S. Teoh wrote: On Wed, Nov 25, 2020 at 09:49:12PM +, Paul Backus via Digitalmars-d-learn wrote: On Wednesday, 25 November 2020 at 21:16:06 UTC, Q. Schroll wrote: > On Wednesday, 25 November 2020 at

Re: How to unit-test a phobos module?

2020-11-25 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 25 November 2020 at 21:36:36 UTC, Q. Schroll wrote: [1] https://wiki.dlang.org/Building_under_Windows You might try Digger. That will hide all the tedious bits. https://code.dlang.org/packages/digger

Re: How to unit-test a phobos module?

2020-11-25 Thread Max Haughton via Digitalmars-d-learn
On Wednesday, 25 November 2020 at 21:36:36 UTC, Q. Schroll wrote: On Wednesday, 25 November 2020 at 21:16:15 UTC, Steven Schveighoffer wrote: I typically do: make -f posix.mak std/.test -Steve For some reason, [1] says `make.exe` would be installed by the DMD installer, but I found none.

Re: How to unit-test a phobos module?

2020-11-25 Thread Paul Backus via Digitalmars-d-learn
On Thursday, 26 November 2020 at 00:17:26 UTC, Q. Schroll wrote: One of the issues is, I don't know what DRuntime really is. As far as I understand on the surface-level, it's functionality one would expect to be implemented by the compiler, but actually implemented in plain D code. A

Re: How to unit-test a phobos module?

2020-11-25 Thread Q. Schroll via Digitalmars-d-learn
On Wednesday, 25 November 2020 at 21:57:12 UTC, H. S. Teoh wrote: On Wed, Nov 25, 2020 at 09:49:12PM +, Paul Backus via Digitalmars-d-learn wrote: On Wednesday, 25 November 2020 at 21:16:06 UTC, Q. Schroll wrote: > On Wednesday, 25 November 2020 at 21:11:24 UTC, Paul Backus > wrote: > > On

Re: How to unit-test a phobos module?

2020-11-25 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Nov 25, 2020 at 09:49:12PM +, Paul Backus via Digitalmars-d-learn wrote: > On Wednesday, 25 November 2020 at 21:16:06 UTC, Q. Schroll wrote: > > On Wednesday, 25 November 2020 at 21:11:24 UTC, Paul Backus wrote: > > > On Wednesday, 25 November 2020 at 20:58:20 UTC, Q. Schroll wrote: >

Re: How to unit-test a phobos module?

2020-11-25 Thread Paul Backus via Digitalmars-d-learn
On Wednesday, 25 November 2020 at 21:16:06 UTC, Q. Schroll wrote: On Wednesday, 25 November 2020 at 21:11:24 UTC, Paul Backus wrote: On Wednesday, 25 November 2020 at 20:58:20 UTC, Q. Schroll wrote: My setup: * A fresh DMD installed a few minutes ago. * Clone of my Phobos fork with up-to-date

Re: How to unit-test a phobos module?

2020-11-25 Thread Q. Schroll via Digitalmars-d-learn
On Wednesday, 25 November 2020 at 21:16:15 UTC, Steven Schveighoffer wrote: I typically do: make -f posix.mak std/.test -Steve For some reason, [1] says `make.exe` would be installed by the DMD installer, but I found none. It explicitly says not to use GNU make. (I'm on Windows.) [1]

Re: How to unit-test a phobos module?

2020-11-25 Thread Q. Schroll via Digitalmars-d-learn
On Wednesday, 25 November 2020 at 21:11:24 UTC, Paul Backus wrote: On Wednesday, 25 November 2020 at 20:58:20 UTC, Q. Schroll wrote: My setup: * A fresh DMD installed a few minutes ago. * Clone of my Phobos fork with up-to-date changes from dlang/phobos/master. Do you have clones of dmd and

Re: How to unit-test a phobos module?

2020-11-25 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/25/20 3:58 PM, Q. Schroll wrote: When trying to unit-test an unchanged phobos module from phobos/master, I get errors such as     module core.lifetime import copyEmplace not found and template instantiation errors. What is the correct arguments to pass to (r)dmd? I know it worked for

Re: How to unit-test a phobos module?

2020-11-25 Thread Paul Backus via Digitalmars-d-learn
On Wednesday, 25 November 2020 at 20:58:20 UTC, Q. Schroll wrote: My setup: * A fresh DMD installed a few minutes ago. * Clone of my Phobos fork with up-to-date changes from dlang/phobos/master. Do you have clones of dmd and druntime too? If not, try following these instructions:

How to unit-test a phobos module?

2020-11-25 Thread Q. Schroll via Digitalmars-d-learn
When trying to unit-test an unchanged phobos module from phobos/master, I get errors such as module core.lifetime import copyEmplace not found and template instantiation errors. What is the correct arguments to pass to (r)dmd? I know it worked for me some years ago, but somehow, it