Mercurial > projects > ldc
changeset 418:94c4e090c1af
clean out obj dir before running mini test.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 28 Jul 2008 07:25:13 +0200 |
parents | d3689b183f45 |
children | 023fa78c1203 |
files | tests/runminitest.d |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/runminitest.d Mon Jul 28 03:18:15 2008 +0200 +++ b/tests/runminitest.d Mon Jul 28 07:25:13 2008 +0200 @@ -22,9 +22,15 @@ string[] norunfailed; chdir("mini"); - if(!exists("obj")) + + if (!exists("obj")) mkdir("obj"); + foreach(f; listdir("./obj", "*")) + { + std.file.remove(f); + } + static int classify(char[] name) { if (find(name, "compile_") == 0) @@ -42,6 +48,7 @@ foreach(c; contents) { auto testname = getName(getBaseName(c)); writefln("TEST NAME: ", testname); + string cmd = format("llvmdc %s -quiet -ofobj/%s -odobj", c, testname); foreach(v; args[1..$]) { cmd ~= ' ';