mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-10 09:24:09 +02:00
[svn r15] * Fixed a bunch problems with virtual calls. Seems I did some rather poor testing.
* Now 50/51 tests compile. * Added a simple runalltests.d scripts that should be run with 'gdmd -run runalltests.d' - LLVMDC will not compile it yet.
This commit is contained in:
33
runalltests.d
Normal file
33
runalltests.d
Normal file
@@ -0,0 +1,33 @@
|
||||
module runalltests;
|
||||
|
||||
import std.file;
|
||||
import std.path;
|
||||
import std.process;
|
||||
import std.stdio;
|
||||
|
||||
int main(string[] args) {
|
||||
string[] good;
|
||||
string[] bad;
|
||||
|
||||
auto contents = listdir("test", "*.d");
|
||||
foreach(c; contents) {
|
||||
if (system("./tester.sh "~getName(c)~" ll") != 0) {
|
||||
bad ~= c;
|
||||
}
|
||||
else {
|
||||
good ~= c;
|
||||
}
|
||||
}
|
||||
|
||||
int ret = 0;
|
||||
if (bad.length > 0) {
|
||||
writefln(bad.length, '/', contents.length, " tests failed:");
|
||||
foreach(b; bad) {
|
||||
writefln(" ",b);
|
||||
}
|
||||
ret = 1;
|
||||
}
|
||||
|
||||
writefln(good.length, '/', contents.length, " tests passed");
|
||||
return ret;
|
||||
}
|
||||
Reference in New Issue
Block a user