Skip to content

Commit 8e2535c

Browse files
fix test suite and test.cmd
1 parent 2da86b0 commit 8e2535c

12 files changed

+15
-10
lines changed

MiniC.TestRunner/TestRunner.n

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace MiniC.TestRunner
4141

4242
def results =
4343
TestReader
44-
.ReadTests(config.SourceDir, "*.c")
44+
.ReadTests(config.SourceDir, config.SearchPattern)
4545
.AsParallel()
4646
.WithExecutionMode(ParallelExecutionMode.ForceParallelism)
4747
.Select(case =>

Nitra-Mini-C.nsln MiniC.Tests.nsln

File renamed without changes.

Tests/Comparison.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
int main() {
1+
int main() {
22
bool b;
33
b = 1 < 2;
44
b = 1 <= 2;

Tests/EmptyFuncs.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
void f() {
1+
void f() {
22
return;
33
}
44

Tests/FunctionCall.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
void f() {
1+
void f() {
22
return;
33
}
44

Tests/GlobalVars.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
int i;
1+
int i;
22

33
void main() {
44
int j;

Tests/IfElse.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
int main() {
1+
int main() {
22
bool b;
33
b = true;
44
if (b) print_bool(b);

Tests/LocalVars.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
void main() {
1+
void main() {
22
int i;
33
float f;
44
bool b;

Tests/PrintFunctions.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
int main() {
1+
int main() {
22
1 + 2 + (3 - 2);
33
print_int(1);
44
print_int(2 + 3);

Tests/While.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
int main() {
1+
int main() {
22
int i;
33
i = 0;
44
while (i < 5)

Tests/config.xml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-16"?>
2+
<Language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Name="MiniC" Path=".\Nitra-Mini-C\bin\Debug\Nitra_Mini_C.dll">
3+
<DynamicExtensions />
4+
<Libs />
5+
</Language>

test.cmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
MiniC.TestRunner\bin\Debug\MiniC.TestRunner.exe -dir MiniC.TestRunner\Tests -c MiniC.Compiler\bin\Debug\MiniC.Compiler.exe %*
1+
MiniC.TestRunner\bin\Debug\MiniC.TestRunner.exe -dir Tests -p *.test -c MiniC.Compiler\bin\Debug\MiniC.Compiler.exe %*

0 commit comments

Comments
 (0)