comparison tests/runminitest.d @ 342:d8b165faae9b trunk

[svn r363] Fixed a problem with the mini-test-driver.
author lindquist
date Sun, 13 Jul 2008 02:55:41 +0200
parents 1bb99290e03a
children c028fd91b3b0
comparison
equal deleted inserted replaced
341:1bb99290e03a 342:d8b165faae9b
2 2
3 import std.file; 3 import std.file;
4 import std.path; 4 import std.path;
5 import std.process; 5 import std.process;
6 import std.stdio; 6 import std.stdio;
7 import std.string;
7 8
8 int main(string[] args) { 9 int main(string[] args) {
9 string[] bad; 10 string[] bad;
10 string[] badrun; 11 string[] badrun;
11 12
12 chdir("mini"); 13 chdir("mini");
13 14
14 auto contents = listdir(".", "*.d"); 15 auto contents = listdir(".", "*.d");
15 foreach(c; contents) { 16 foreach(c; contents) {
16 string cmd = "llvmdc -quiet "~c; 17 string cmd = format("llvmdc %s -quiet -of%s", c, getName(c));
17 foreach(v; args[1..$]) { 18 foreach(v; args[1..$]) {
18 cmd ~= ' '; 19 cmd ~= ' ';
19 cmd ~= v; 20 cmd ~= v;
20 } 21 }
21 writefln(cmd); 22 writefln(cmd);