On 5/30/2011 12:56 PM, Robert Clipsham wrote:
> On 30 May 2011 09:21, Walter Bright <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>     On 5/29/2011 1:53 PM, Robert Clipsham wrote:
> 
> 
>         .....
> 
>         ## Running the test suite
> 
>         I actually don't know how to do this, but some instructions should go 
> here. Also take a look at
>         http://github.github.com/github-flavored-markdown/ for information on 
> formatting in this file.
>         ----
> 
>         I could clean this up and make a pull request if you're interested? ;)
> 
> 
>     Sure!
> 
> 
> I've just spent the past 10 minutes trying to figure out how to run the test 
> suite so I can add instructions/make a pull
> request and can't manage it... It's no wonder it's not getting run!
> 
> I can get a range of different errors, I can't seem to manage to get dmd.conf 
> set up correctly to remove all errors
> though. Perhaps it would be a good idea to include the relevant dmd.conf in 
> the tests/ directory?
>  

Lemee make this simple.. here's a simple makefile and dmd.conf file that 'just 
work'.

The make file are more complicated than the minimal necessary because they have 
a bunch of targets that I use while
developing from time to time.  The default target, however, is enough to clone, 
build, and test all three packages.

DMD=$(PWD)/dmd/src/dmd
#DRUNTIME_PATH=$(PWD)/druntime
MODEL=32

all: init build test

update: dmd_update druntime_update phobos_update

build: dmd_build druntime_build phobos_build

test: druntime_test phobos_test dmd_test

clean: dmd_clean druntime_clean phobos_clean

nuke:
        rm -rf dmd
        rm -rf druntime
        rm -rf phobos

dmd_update:
        cd dmd; git pull origin

druntime_update:
        cd druntime; git pull origin

phobos_update:
        cd phobos; git pull origin

dmd_build:
        $(MAKE) -C dmd/src -j3 -f linux.mak

druntime_build:
        $(MAKE) DMD=$(DMD) -C druntime -f posix.mak

phobos_build:
        $(MAKE) DMD=$(DMD) -C phobos -f posix.mak

dmd_test:
        $(MAKE) -C dmd/test -j3

druntime_test:
        $(MAKE) DMD=$(DMD) -C druntime -f posix.mak unittest

phobos_test:
        $(MAKE) DMD=$(DMD) -C phobos -f posix.mak unittest

dmd_clean:
        $(MAKE) -C dmd/src -f linux.mak clean
        $(MAKE) -C dmd/test clean

druntime_clean:
        $(MAKE) -C druntime -f posix.mak clean

phobos_clean:
        $(MAKE) -C phobos -f posix.mak clean

dmd: dmd_clean dmd_build

druntime: druntime_clean druntime_build druntime_test

phobos: phobos_clean phobos_build phobos_test

dmd/.git:
        git clone git://github.com/D-Programming-Language/dmd dmd
        cp dmd.conf dmd/src

druntime/.git:
        git clone git://github.com/D-Programming-Language/druntime druntime

phobos/.git:
        git clone git://github.com/D-Programming-Language/phobos phobos

init: dmd/.git druntime/.git phobos/.git

[Environment]

DFLAGS=-L--export-dynamic -I%@P%/../../phobos -I%@P%/../../druntime/import 
-L-L%@P%/../../druntime/lib -L-L%@P%/../../phobos/generated/linux/release/32 
-L-lrt

_______________________________________________
dmd-internals mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-internals

Reply via email to