clean out obj dir before running mini test.

This commit is contained in:
Tomas Lindquist Olsen
2008-07-28 07:25:13 +02:00
parent dbebf04b85
commit 713dfe71b5

View File

@@ -22,9 +22,15 @@ int main(string[] args)
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 @@ int main(string[] args)
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 ~= ' ';