www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - code coverage under Linux

reply Amaury <ammo32uzi hotmail.com> writes:
Hello,
I'm looking for testing the code coverage fonctionnality with dmd under Ubuntu
but it seems no to work.
The command :

$ dmd sieve -cov
$ sieve

Doesn't create a sieve.lst file... why ?

Thanks

Amaury
Nov 19 2008
next sibling parent reply Olli Aalto <oaalto gmail.com> writes:
Amaury wrote:
 Hello,
 I'm looking for testing the code coverage fonctionnality with dmd under Ubuntu
but it seems no to work.
 The command :
 
 $ dmd sieve -cov
 $ sieve
 
 Doesn't create a sieve.lst file... why ?
 

try: dmd -cov sieve.d ./sieve Works for me. O.
Nov 19 2008
parent reply Amaury <ammo32uzi hotmail.com> writes:
Hi,
I have already tried this and it doesn't work, I also tried with a sudo
command... Do I need something else than just dmd ?
Amaury

Olli Aalto Wrote:

 Amaury wrote:
 Hello,
 I'm looking for testing the code coverage fonctionnality with dmd under Ubuntu
but it seems no to work.
 The command :
 
 $ dmd sieve -cov
 $ sieve
 
 Doesn't create a sieve.lst file... why ?
 

try: dmd -cov sieve.d ./sieve Works for me. O.

Nov 20 2008
parent Walter Bright <newshound1 digitalmars.com> writes:
Amaury wrote:
 Hi, I have already tried this and it doesn't work, I also tried with
 a sudo command... Do I need something else than just dmd ? Amaury

No, you shouldn't need anything other than dmd.
Nov 20 2008
prev sibling parent reply Walter Bright <newshound1 digitalmars.com> writes:
Amaury wrote:
 Doesn't create a sieve.lst file... why ?

Looks like the problem is in libdruntime.a. It'll be fixed in the next update.
Nov 23 2008
next sibling parent Amaury <ammo32uzi hotmail.com> writes:
Walter Bright Wrote:

 Amaury wrote:
 Doesn't create a sieve.lst file... why ?

Looks like the problem is in libdruntime.a. It'll be fixed in the next update.

It would be great and useful. Thanks Amaury
Nov 24 2008
prev sibling parent Sean Kelly <sean invisibleduck.org> writes:
== Quote from Walter Bright (newshound1 digitalmars.com)'s article
 Amaury wrote:
 Doesn't create a sieve.lst file... why ?

update.

I believe I've fixed this in the druntime svn trunk (still have to merge the changes to the D 1.0 branch). Sean
Nov 24 2008