mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
clean out obj dir before running mini test.
This commit is contained in:
@@ -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 ~= ' ';
|
||||
|
||||
Reference in New Issue
Block a user