Mercurial > projects > ldc
diff tests/runminitest.d @ 383:c028fd91b3b0
.hgignore updates. runminitest stores object files separately.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Wed, 23 Jul 2008 18:53:44 +0200 |
parents | d8b165faae9b |
children | 76bf1eaaf4dc |
line wrap: on
line diff
--- a/tests/runminitest.d Wed Jul 23 18:04:06 2008 +0200 +++ b/tests/runminitest.d Wed Jul 23 18:53:44 2008 +0200 @@ -11,10 +11,12 @@ string[] badrun; chdir("mini"); + if(!exists("obj")) + mkdir("obj"); auto contents = listdir(".", "*.d"); foreach(c; contents) { - string cmd = format("llvmdc %s -quiet -of%s", c, getName(c)); + string cmd = format("llvmdc %s -quiet -ofobj/%s", c, getName(c)); foreach(v; args[1..$]) { cmd ~= ' '; cmd ~= v; @@ -23,7 +25,7 @@ if (system(cmd) != 0) { bad ~= c; } - else if (system(getName(c)) != 0) { + else if (system("obj/" ~ getName(c)) != 0) { badrun ~= c; } }