Add additional directory depth tests to Vala test case 22

This commit is contained in:
Alistair Thomas 2017-10-03 13:17:58 +01:00 committed by Corentin Noël
parent 1320a98a33
commit 6483a0d846
6 changed files with 22 additions and 11 deletions

View File

@ -0,0 +1,5 @@
public class Subdir.Subdir2.Test : GLib.Object {
construct {
stdout.printf("Test from Subdir/Subdir2/\n");
}
}

View File

@ -1,5 +1,5 @@
public class Subdir.Test : GLib.Object {
construct {
stdout.printf("Test from subdir.\n");
stdout.printf("Test from Subdir/\n");
}
}

View File

@ -0,0 +1,5 @@
public class Subdir2.Test : GLib.Object {
construct {
stdout.printf("Test from Subdir2/\n");
}
}

View File

@ -1,5 +1,5 @@
public class Test : GLib.Object {
construct {
stdout.printf("Test from main directory.\n");
stdout.printf("Test from main directory\n");
}
}

View File

@ -4,7 +4,9 @@ valadeps = [dependency('glib-2.0'), dependency('gobject-2.0')]
valafiles = files(
'prog.vala',
'Test.vala',
'Subdir/Test.vala'
'Subdir/Test.vala',
'Subdir/Subdir2/Test.vala',
'Subdir2/Test.vala',
)
e = executable('multidir_prog', valafiles, dependencies : valadeps)

View File

@ -1,9 +1,8 @@
class MainProg : GLib.Object {
public static int main(string[] args) {
var test1 = new Test ();
var test2 = new Subdir.Test ();
stdout.printf("Vala is working.\n");
return 0;
}
int main() {
var test1 = new Test ();
var test2 = new Subdir.Test ();
var test3 = new Subdir2.Test ();
var test4 = new Subdir.Subdir2.Test ();
stdout.printf("Vala is working.\n");
return 0;
}